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

Longitude values beyond a 360-degree range #10

Closed
fitzyjoe opened this issue Jun 25, 2022 · 3 comments
Closed

Longitude values beyond a 360-degree range #10

fitzyjoe opened this issue Jun 25, 2022 · 3 comments

Comments

@fitzyjoe
Copy link

There are longitude values in the range of [-180,360]. While not necessarily illegal, it's strange.

When I tried to run a query in MySQL 8 against the field that is of type POLYGON, I get an error:

A parameter of function st_contains contains a geometry with longitude 180.004972, which is out of range. It must be within (-180.000000, 180.000000].

I know this MySQL problem isn't a concern of this library, but I wanted to at least give others a heads up of the range of values and the problem they might encounter if they load the data.

@PaulWessel
Copy link
Member

It is only strange in a Cartesian GIS world where polygons straddling the date line are broken into two. The Eurasia polygon goes from -17 to 192 in longitude. We are not breaking it up as GMT has no problem handling that as a single geo-polygon.
However, I can imagine adding some more commentary to the README to make it clear that this is a spherical dataset.

@Esteban82
Copy link
Member

This can this be closed, right?

@joa-quim
Copy link
Member

Yes, I think so

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

4 participants