Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
466 stars 160 forks source link

Geospatial Schemas Documentation Coordinates order. #127

Closed pandaGaume closed 1 year ago

pandaGaume commented 2 years ago

Documentation state that Location based informations are from GeoJson. Example from the Geospatial Schemas DTDL documentation is

{
    "location": {
        "type": "Point",
        "coordinates": [ 47.643742, -122.128014 ]
    }
}

This set coordinates as [latitude, longitude] (which is Microsoft building 16 at redmond) when GeoJson MUST be [longitude, latitude]. Might be clarified in a way or another.

rido-min commented 2 years ago

@briancr-ms do you know the answer to this question?

briancr-ms commented 2 years ago

It's a bug in the example. I didn't read the GeoJSON spec closely enough to appreciate that the coordinate order is longitude, latitude before writing the example.

rido-min commented 1 year ago

@pandaGaume thanks for the clarification, the sample has been updated and no longer indicates the sample geopoint referes to any specific location.

can you close this issue?

pandaGaume commented 1 year ago

thank's for the support