-
Notifications
You must be signed in to change notification settings - Fork 33
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
GeoShape box format unclear #101
Comments
related to schemaorg/schemaorg#1538 |
@ashepherd I'd like to work with you on this to update this gist example to test some of these approaches.. Currently that will frame correctly: But I can't frame out the spatial elements in your examples above. So I'd like to resolve that with you on this issue. |
hmm, https://schema.org/GeoShape documentation has: they say 'latitude/longitude' pair, which would appear to imply Y X coordinate ordering. The given documentation apparently allows The documentation for sdo:GeoCoordinates asserts that lat and long should use WGS84 spheroid. It would be logical to propagate this to the convention for points in sdo:GeoShape note discussion at schemaorg/schemaorg#1538 |
Looking at https://schema.org/box
Lower and upper must be referring to numerical values. i.e. min and max values. So {minX minY "point"}{space character}{maxX maxY "point"}. This fits well with many geo software stack formats. Point doesn't seem to be defined, but https://schema.org/latitude is stated as
https://schema.org/longitude is similarily
And as @smrgeoinfo mentioned, https://schema.org/GeoShape is
So I think we can safely say that both "minX minY maxX maxY" and "minX,minY maxX,maxY" should be acceptable formats for box. For human readability it would probably be better to use the later although it would have been much nicer to use spaces between elements with fixed numbers of things (lon and lat forming a point, for example) and commas between elements when you can have an arbitrary number of them (N coordinates forming a shape, for example.) But I guess it is too late? |
Rereading, I think @ashepherd suggests Google may be using minY minX maxY maxX. That would be awkwardly different from tons of software systems out there that use lon (X) lat (Y) rather than lat lon. |
@ahayes yes-- it certainly looks like google is doing Y, X not X, Y
|
@smrgeoinfo @ahayes if there's more about geospatial that we want to change, can we create a new issue for that and link to this discussion from there? I think if we can update our guidelines to specify that Google Dataset search only display an in-set map when you follow their (unconventional, and not well-documented) format, that would help our adopters in the short-term. But I think you both have raised some good points for more inspection if you like? |
MagIC is describing boxes with spaces (latMin lonMin latMax lonMax): Google dataset search does not display the box. Only a single marker: |
Some updates-- Google dataset search displays bounding boxes encoded as two points, lower left (SW) then upper right (NE); points are encoded as decimal degrees lat long (Y X), presented as a space delimited list. e.g. This works in Google Dataset Search to display the bbox in the search result: doesn't display a bounding box in Google dataset search: GeoRSS The original schema.org design was apparently adopted from GeoRSS (see this github discussion). The OGC GeoRSS spec states: "A bounding box is a rectangular region, often used to define the extents of a map or a rough area of interest. A box SHALL contain two space separate latitude-longitude coordinate pairs, with each pair separated by whitespace. The first pair defines the lower left corner of the box and the second pair defines the upper right corner of the box. example: GeoJSON spec for position states "A position is an [JSON] array of numbers. There MUST be two or more elements. The first two elements are longitude and latitude, or easting and northing, precisely in that order and using decimal numbers."... for bbox: "The value of the bbox member MUST be an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point." THIS is opposite of Google order. WKT: from OGC Spec 18-010r7: Requirement: The WKT representation of a shall be: EXAMPLE 1 Geographic bounding box enveloping offshore Netherlands: BBOX[51.43,2.54,55.77,6.40] EXAMPLE 2 Geographic bounding box enveloping offshore New Zealand and crossing the 180° meridian: BBOX[-55.95,160.60,-25.88,-171.20] WKT : (from MS Bing docs) "The coordinates in a WKT shape are ordered as “longitude latitude” which is important to remember as this is the opposite convention used by Bing Maps. " SO-- the Microsoft statement is not consistent with the OGC Spec, but Bing Maps apparently is. Google dataset search is consistent with OGC Spec 18-010r7 (WKT) and with OGC spec 17-002r1 (GeoRSS). |
@njarboe -- very interesting. The point located on the map is not in any of the lat long locations in the data. Closest are the corners of box 4: 24.5 95.6 24.6 95.7 |
My conclusion: This might not work in the southern hemisphere. I couldn't find anything in Google Data search that showed a map south of the equator... |
@njarboe that's interesting. Looking at the shadow DOM, the map is defined using a div with an attribute of:
|
Here is the link to the MagIC page for this contribution that has the schema.org header, if you want to see our full schema.org current layout. https://www2.earthref.org/MagIC/doi/10.1038/S41561-019-0443-2 @ashepherd That is a bit strange as 23.5466 is not in the our schema.org header for that data contribution. |
@njarboe Google calculating a centroid maybe? @smrgeoinfo Sadly, OGC can't even agree across their specs. WMS and related web services specify bounding boxes as min_x min_y max_x max_y. Same idea with SW/NE corners but X Y rather than Y X. This is also how browsers handle screen coordinates so it makes some sense given the web focus. I don't see any reason why it wouldn't work in the southern hemisphere unless Google was sloppy on their implementation. Other places that more commonly break in various implementations are boxes near/enclosing a pole or spanning 180 longitude. They pose a problem for people trying to come up with bounding boxes to type in too. |
Which is why the lower-left/upper-right approach is best, as it is unambiguous. Re OGC confusion - yeah, OGC is a bottom-up organization, and the coordinating layer was not very effective 20 years ago. |
Oh, yeah! Well it turns boxes into circles at the poles- may be unambiguous but is also totally inaccurate! It makes drawing a box that is a box that crosses the pole impossible.
…Sent from my iPhone
On Nov 3, 2020, at 4:39 PM, Simon Cox ***@***.***> wrote:
Other places that more commonly break in various implementations are boxes near/enclosing a pole or spanning 180 longitude.
Which is why the lower-left/upper-right approach is best, as it is unambiguous.
Re OGC confusion - yeah, OGC is a bottom-up organization, and the coordinating layer was not very effective 20 years ago.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Haha - yeah you are right @rduerr . I was only thinking about the 180 meridian. Is there a good rule for bounding-box whose edges are meridians and parallels, that accommodates pole-crossing? |
Nope… its that meridians and parallels that is the problem! Nothing less than a full polygon will do...
… On Nov 3, 2020, at 6:48 PM, Simon Cox ***@***.***> wrote:
Haha - yeah you are right @rduerr <https://github.com/rduerr> . I was only thinking about the 180 meridian.
Is there a good rule for bounding-box whose edges are meridians and parallels, that accommodates pole-crossing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#101 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AALZFPGXPG2A2OBN3PEA3XLSOCXHDANCNFSM4MTXAKGQ>.
|
In that case it looks like 'bounding box' just can't be used for polar-crossing data. Yeah - I know that looks blunt, but this standard style of bounding box is so common and so useful everywhere else, I don't think a change to accommodate polar people is at all practical. . |
Yeah… I am just grousing about how the entire non-polar world makes decisions about things like data (and a whole host of other issues) which will come back to bite them when they realize that the poles are actually part of the Earth, the parts that are changing most rapidly and that those changes are likely to make most citizens in the world mighty unhappy (think fires, floods, sea level rise, etc.). Instead of working on the simple cases first, lets start with the most accurate cases and work down from there! Yeah, I know… Too late for that…. [sigh…]
… On Nov 4, 2020, at 4:44 PM, Simon Cox ***@***.***> wrote:
In that case it looks like 'bounding box' just can't be used for polar-crossing data.
Bounding boxes have edges that are meridians and parallels by definition.
If this doesn't apply, then your use-case is out of scope.
Yeah - I know that looks blunt, but this standard style of bounding box is so common and so useful everywhere else, I don't think a change to accommodate polar people is at all practical. .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#101 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AALZFPDKMWTOTXHGKOFCTNLSOHRNBANCNFSM4MTXAKGQ>.
|
I found a couple datasets in google data search that show bounding boxes in southern hemisphere and added to the list above. My empirical conclusion is that Google dataset search will plot a box:
(X is longitude, Y is latitude) If you're in a polar region, use a polygon to delimit the extent; Google dataset search won't display the GeoShape. I'm updating the text in #104 to align with these observations. |
These bounding box issues seem important, but we don't yet seem to have reached full conclusions on what to recommend. Especially given the polar BB discussion. And there is no PR yet with a proposed ADR and revisions yet, So, I am punting this to v1.3, but speak up if you'd like to finish it off now. |
@rduerr in practice what are the 'bounding box' requirements for polar regions? Is it just the triangle with a pole as one vertex, a parallel as the opposite side, and two meridians? The classic bbox requires four numbers - usually lower-left, upper right. (50, 170) , (90, -130) is the triangle that would catch most of Alaska and crosses the 180 meridian. |
@rduerr @dr-shorthair in PR #104, suggestion is "For bounding boxes that include the north or south pole, schema:box will not work. Recommended practice is to use a schema:polygon to describe spatial location extents that include the poles. " |
Notes from 8/26/2021 meeting: The strategy used by UN with Ocean InfoHub:
References:
|
Merged in #104 |
The following NCEI dataset at the Google Dataset Search shows an "Area Covered" section with a map plot of the GeoShape
box
field.Dataset: https://data.nodc.noaa.gov/cgi-bin/iso?id=gov.noaa.ngdc.mgg.dem:11503
It appears they use the format for GeoShape box of "{south} {west} {north} {east}", and our guidelines specify the use of comma.
As an example of Area Covered not appearing for a Dataset using commas, see:
https://www.bco-dmo.org/dataset/753124
Compare using the Google Structured Data Testing Tool:
Credit: @atmickle
The text was updated successfully, but these errors were encountered: