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

Geography polygon allows invalid coordinates #130

Open
svycka opened this issue Jan 22, 2016 · 1 comment
Open

Geography polygon allows invalid coordinates #130

svycka opened this issue Jan 22, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@svycka
Copy link

svycka commented Jan 22, 2016

for example geography point does not allow incorrect coordinates. example:

POINT(10000 10000)

would throw CrEOF\Spatial\Exception\InvalidValueException with message:

Invalid longitude value "10000", must be in range -180 to 180.

but in geography polygon case it allows 10000 as coordinate. example polygon:

POLYGON((10000 55.168750449796,1000 1000,10000 55.168750449796))

this should be valid geometry polygon, but not a geography polygon otherwise what's the point of geography polygon?

@djlambert djlambert added the bug label Jan 22, 2016
@djlambert
Copy link
Member

Yes that should also throw an exception.

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

No branches or pull requests

3 participants