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

No definition for entire world #243

Open
mapprehension opened this issue Jul 25, 2024 · 3 comments
Open

No definition for entire world #243

mapprehension opened this issue Jul 25, 2024 · 3 comments

Comments

@mapprehension
Copy link

The spec does not state how to denote the entire world. None of the supported geometry_types suffice if the CRS is spheroidal and the edge type is spherical. With a planar edge type, a hacky, conventional way to specify the whole world is to give a ((-180, 90), (-180, -90), (180, -90), (180, 90), (-180, 90)) bounding box, but this is not a reasonable method for a spherical edge type because there is no boundary on the sphere, and two of those “lines” —the poles — are merely points. If you want to carve out a tiny region (such as a 1 m x 1m plot of ocean) and then use a polygon that excludes just that region, then you would have nearly the entire earth, and in the limit, you would have the entire earth, but this is awkward and ad hoc, which means it would be hard for systems to recognize during ingestion.

@paleolimbot
Copy link
Collaborator

Could the bounding box be omitted in the case?

@mapprehension
Copy link
Author

I don’t mean the bbox attribute. I mean that there is no polygon (or any other geometry_type or combination of geometry_types) that represents the entire earth in the spheroidal topology. In the flat-earth topology, it is common to use a bounding box polygon (again, not talking about the bbox attribute) to represent the entire globe. That would be a nonsensical representation on the globe.

@paleolimbot
Copy link
Collaborator

paleolimbot commented Jul 26, 2024

Ah, sorry. I believe that's a limitation of WKB. @edzer has been trying to formalize this! I tend to prefer POLYGON ((-180 -90, 0 -90, 180 -90, 180 0, 180 90, 0 90, -180 90, -180 0, -180 -90)) because I found that S2 had some problems with edges larger than a quarter of the sphere. S2's internal representation is POLYGON ((0 -90, 0 -90)), although I forget if it knows that it's a full polygon on ingest or whether you have to detect that specific case.

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

2 participants