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

DOC: update note for is_valid #1944

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

DOC: update note for is_valid #1944

wants to merge 1 commit into from

Conversation

mwtoews
Copy link
Member

@mwtoews mwtoews commented Nov 28, 2023

The is_valid property is more complicated than the manual suggests. For instance, there are invalid LineString and LinearRing types. See other docs for PostGIS on the topic.

For more info from GEOS, see ValidationError.cpp messages (and their enums from TopologyValidationError.h), and IsValidOpTest.cpp for examples of valid/invalid geometries.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7024601812

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 88.019%

Totals Coverage Status
Change from base Build 6898857040: 0.3%
Covered Lines: 2586
Relevant Lines: 2938

💛 - Coveralls

Comment on lines +1013 to +1014
The validity test is meaningful only for `Polygons`, `LinearRings`,
and some `LineStrings`. Other geometry types always return ``True``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the reference to MultiPolygon here?

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

Successfully merging this pull request may close these issues.

None yet

3 participants