Opened 13 years ago

Last modified 13 years ago

#3538 new bug

Save layer as "GeoJSON" loosed projection information

Reported by: springmeyer Owned by:
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Vectors Version: 1.6.0
Keywords: Cc: tristen@…
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

If you export vector data from QGIS using Layer > Save layer as... and choose GeoJSON as a format the data is exported without a "crs" property.

In my case my data (originally a shapefile) is in Google Mercator, and I chose "Original CRS". I also tested with data in WGS 84 and tried setting the output CRS to something custom, BC Albers, but still no projection definition was written. I confirmed this by looking through the outputted geojson with a text editor and also by calling ogrinfo -so -al <json> and seeing that ogr wrongly reports WGS84 (as assume this is the case because this is the default according to the GeoJSON spec).

I am running QGIS 1.6 on OS X

Change History (1)

comment:1 by springmeyer, 13 years ago

Cc: tristen@… added
Platform: DebianAll
Note: See TracTickets for help on using tickets.