[QGIS-trac] [Quantum GIS] #3538: Save layer as "GeoJSON" loosed projection information

Quantum GIS qgis at qgis.org
Wed Mar 2 09:43:28 EST 2011


#3538: Save layer as "GeoJSON" loosed projection information
------------------------------------------------+---------------------------
   Reporter:  springmeyer                       |              Owner:               
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  Vectors                           |            Version:  1.6.0        
   Keywords:                                    |   Platform_version:               
   Platform:  Debian                            |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 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

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3538>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list