Skip to content
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

Axis order #152

Closed
denevers opened this issue Feb 19, 2018 · 10 comments
Closed

Axis order #152

denevers opened this issue Feb 19, 2018 · 10 comments

Comments

@denevers
Copy link
Contributor

question: I see in BRGM examples this geometry

"gsp:asWKT":"POINT(2.3597603712661 49.9506859240222)"

which is long, lat if this is in France

OGC 11-052r4 req 12 says that "Coordinate tuple within geo:wtkLiteral shall be interpreted using the axis order defined in the spatial reference system". I assume the example above is EPSG:4326. Has this been overruled or is this EPSG:CRS84 ? I know GeoJson is limited to 4326 and sticks to long,lat,

Sorry if this has been discussed elsewhere (sorry, there is so much simultaneous on this github, it's hard to track)

@afeliachi
Copy link
Contributor

Eric,
Thank you for noting this. I used the wkt geometries as the the gis tools/SGBD provide them, in a X Y axis order, even when its specific that the coordinate system is WGS84. (EPSG:4326).
The mapping libraries am used to, consume the geometries with a long, lat order. I admit that this is why I've never questioned if the coordinate order is conform to OGC requirements or not.

@denevers
Copy link
Contributor Author

I wished you'd told me it was decided to follow geojson convention ("always" x,y). Although I understand the issue of axis order (abscisse first is just a mathematical convention)

@lieberjosh
Copy link

lieberjosh commented Feb 22, 2018 via email

@dblodgett-usgs
Copy link
Contributor

There are not many things in this world that fill me with rage... but this, this is one of them.

Since the WKT standard allows use of any CRS, we need to specify one. When I implement it in the other demo files I will. @afeliachi -- can you add CRS84 to your examples or switch the order and put 4326 on them?

@terryidol
Copy link

terryidol commented Feb 23, 2018 via email

@afeliachi
Copy link
Contributor

@dblodgett-usgs: will do.

@dblodgett-usgs
Copy link
Contributor

For the record... r-spatial/sf#653

@dblodgett-usgs
Copy link
Contributor

Also, not that according to: https://www.w3.org/2015/spatial/wiki/Coordinate_Reference_Systems under GeoSPARQL,

In the WKT representation of geometry, GeoSPARQL uses the concept of a default CRS: “The URI http://www.opengis.net/def/crs/OGC/1.3/CRS84 shall be assumed as the spatial reference system for geo:wktLiterals that do not specify an explicit spatial reference system URI.”

So what @afeliachi did is technically sound? Should we still add http://www.opengis.net/def/crs/OGC/1.3/CRS84 to our gsp:wktLiterals? I did not do it for #159 and the package I'm using (see comment above) also emits lon/lat axis order for EPSG:4326.

@lieberjosh
Copy link

lieberjosh commented Feb 27, 2018 via email

@afeliachi
Copy link
Contributor

@dblodgett-usgs @lieberjosh thank you. I misread the Req. 11 in the WKT specification and I was going to edit the wktLiterals. With @sgrellet with decided to consider them under CRS84, thus no modification is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants