[QGIS-trac] [Quantum GIS] #3374: Lose "id" field when saving vector in GeoJSON

Quantum GIS qgis at qgis.org
Wed Dec 29 13:02:49 EST 2010


#3374: Lose "id" field when saving vector in GeoJSON
------------------------------------------------+---------------------------
   Reporter:  alexbruy                          |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  Data Provider                     |            Version:               
   Keywords:  vector, geojson                   |   Platform_version:               
   Platform:  All                               |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 When saving vector in GeojSON with "id" field this field is removed from
 output file. To reproduce:

 1. open any vector in GeojSON format with "id" field (sample layer
 attached)

 2. save this layer with "Save as..." from context menu in GeojSON format

 3. Open created file and find that "id" field is removed

 [http://geojson.org/geojson-spec.html GeojSON specification] says that "If
 a feature has a commonly used identifier, that identifier should be
 included as a member of the feature object with the name "id"."

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3374>
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