I've got a KML file which I need converted to a web mercator projection. This file will go into Tilemill. What are some good open source tools to convert files to the web mercator projection?
[GIS] How to convert to web mercator projection using an open source tool
coordinate systemopen-source-gisweb-mercator
Best Answer
Firstly, it's not necessary to project the data to webmercator, since tilemill can project on the fly. But if you have a large dataset, then it helps to have data in WebMercator.
You should note that according to the KML standard, the KML data can only be in WGS84 Latlong, i.e. EPSG:4326.
Hence we'll have to project this data to some other format. If you KML has data of only one type, (i.e. either points, Polygons etc) with the same fields, then I'll suggest that you project this KML to a shapefile.
You can use ogr2ogr from the Gdal toolset to project your KML with the following command:
As Andre Jooste has warned in a comment below,