-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow migrating from id inside properties to top level id (in STJ) #120
Comments
The only reason I can think of why anyone should ever need to change For all other use cases, I recommend leaving that value alone (which you can just spell as "
There is no way to tell the converter to take a single value that lives in one place and use it in two places for the output. However, I also don't know of anything that's stopping you from taking one value and copying it to two places so that you can have it written out in those two different places in the output...? If you do not change
I don't know what "set the ID of an
If you need the ability to specifically ensure that a particular instance of an object implements the |
I see, thanks for the detailed explanation. |
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
orIUnique
?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!
The text was updated successfully, but these errors were encountered: