migurski/TileStache — pull request #143 by jwass (2013-07-28 01:33:58+00:00)
Title: Add option to allow spherical mercator in GeoJSON

Introduce an optional boolean flag 'project_geojson' for the VecTiles provider
that allows geometries to remain in spherical mercator rather than project
them to 4326. Defaults to false and does affect already existing config
files.

In the project I work on, we have an iphone app rendering GeoJSON-formatted vector tiles, where the coordinates are already in spherical mercator. This commit saves the database from projecting to lat/lon and the phone re-projecting back to spherical mercator.

In the future I can try to add this option to the MultiProvider, allowing it to override this flag on the individual layers. It's more difficult as it would have to pass down the option to the individual layers at init time. I haven't tried to tackle it yet before getting feedback on this.