omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
719 stars 157 forks source link

Add support for additional coordinate systems. #109

Open daveb1034 opened 8 years ago

daveb1034 commented 8 years ago

I am currently working on a project that requires the data and any tiles to be served in World Mercator EPSG:3395. I have a copy of the equations need to achieve this and was planning on adding this ability. However adding coordinate systems one at a time is not the most efficient way. Before I start on this I was interested in hearing your perspective and how you see this moving forward.

I have thought about the use of gdal bindings as a possible way to add the support but this is a bit beyond my knowledge of go at the moment. I have found this project gdal bindings that could provide a way of calling ogr project for each geometry.

Thanks in advance

Dave

daveb1034 commented 8 years ago

I have added support for the EPSG 3395 calculations from long,lat to x,y on my fork. I still need to update writer.go to test for the additional srid.

Still not entirely convinced this is the best way. I think the transform method for geometries in geos is prob the long term solution. Although not sure how much of an impact this will have on speed of the import if every point needs to be transformed first.

Is this the way you planned to proceed?