-
Notifications
You must be signed in to change notification settings - Fork 45
Description
I have the following use case:
I have a database with features that have an id field in the properties (called poiId).
I have mobile clients that expect this field to be populated.
I would like the ability to transition from the field in the properties to the top level id.
So I would like to have a way to have the id in both places, then update the mobile clients to use the new top level id, and then retire the id inside the properties.
When I define the factory to look at a field inside properties for the id it will not emit it when serializing and will remove it from attributes table when deserializing.
Is there a way to tell the json converter to keep the id in the properties, serialize it and also serialize the top level id?
Is there a way to set the ID of an IFeature or IUnique?
Basically remove the following if:
https://github.com/NetTopologySuite/NetTopologySuite.IO.GeoJSON/blob/28502d559a1c27b291e1a7ead06888edadd5d1f4/src/NetTopologySuite.IO.GeoJSON4STJ/Converters/StjAttributesTableConverter.cs#LL43C53-L43C53
Or make an option in the converter to turn it off...?
Thanks!