Opened 4 years ago

Closed 4 years ago

#26266 closed Bug (fixed)

Cannot output primary keys with the geojson serializer

Reported by: Claude Paroz Owned by: nobody
Component: GIS Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The primary key field is currently excluded from the serialized fields because it appears elsewhere (first level) with standard serializers.

The output structure is different for the GeoJSON serializer, so the primary key should be present in the properties member in the structure of each feature.

Change History (3)

comment:1 Changed 4 years ago by Claude Paroz

Has patch: set

comment:2 Changed 4 years ago by Tim Graham

Triage Stage: AcceptedReady for checkin

comment:3 Changed 4 years ago by Claude Paroz <claude@…>

Resolution: fixed
Status: newclosed

In c5517b9e:

Fixed #26266 -- Output the primary key in the GeoJSON serializer properties

Thanks Tim Graham for the review.

Note: See TracTickets for help on using tickets.
Back to Top