-
Notifications
You must be signed in to change notification settings - Fork 4
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
Should GeoObject 'id' be a GUID instead of an integer #29
Comments
I also think we should consider the type of integer and the limits associated with that. |
You're right! That 1st ID property was a mistake. That should not be there. The only id prop is the 'uid' prop that is in the GeoJSON properties object. This also addresses your concern about using an integer because the 'uid' prop is a string id. I'll change this. |
Removed: 8b75307 |
@justinlewis I think we need to reopen this issue. My interpretation of the GeoJSON spec Feature Object https://tools.ietf.org/html/rfc7946#section-3.2 is that we should have an id. Text: |
That will work. We can move the current 'uid' prop out of properties up to the top level and rename it to 'id'. As the spec said in your quote above this would be good practice. One reason for caution with using the text based uid is that we've had issues with MapboxGL when those top level ID's are not integers. But since we don't want to bind a spec to a specific technology this is less of a valid concern. I thought you might be interested to know this for your efforts ahead. So, just to be clear. We will move the uid her: To here and rename it to 'id' like this: { |
@justinlewis What was the issue on Mapbox with using top level ID's that are not integers? Could you kindly explain. It would save us a lot of trouble while working with it |
@ekigamba - I can't remember what our exact implementation issues where but it related to the way vector tiles are handled within MapboxGL. Data ingested into MapboxGL whether GeoJSON or Vector Tiles are stored in MapboxGL as Vector Tiles. That means GeoJSON is parsed into a VT format. A quick search uncovered these tickets but I'm sure there are more tickets than just what I listed here: mapbox/mapbox-gl-js#2716 I agree with @craigappl that it's likely a good idea to have that unique id in the top level. However, the current spec enables you to create a temporary integer id to maintain simple state for presentation purposes. But I realize that isn't the best approach for defining a standard. |
Thanks @justinlewis |
From 3 Dec GeoWidget Call: |
I also need that featureId but I still couldn't find any workaround. Are there any developments to solve this issue? Mapbox and frontend have different featureIds which made me crazy not to able to solve this issue |
I'm reviewing the spec and see that there's an ID that's generated which is defined as an integer. Should this be a GUID?
https://github.com/terraframe/common-geo-registry-specification/blob/master/1.0/registry-interface/rest-api.yaml#L425
Searching in the properties, I see the "uid". Maybe this is an issue of my understanding. How do you define this id?
The RESTful document cites a UID https://georegistry.geoprism.net:8443/registry/getGeoObject?uid=fc07a3f5-0696-32b1-a4cc-38df1f000507
The text was updated successfully, but these errors were encountered: