Skip to main content
Question

OGC valid polygon


According to OGC SFS (Implementation Standard for Geographic information - Simple feature access - Part 1: Common architecture, version 1.2.1) in a valid polygon "No two Rings in the boundary cross and the Rings in the boundary of a Polygon may intersect at a Point but only as a tangent". So the POLYGON ((0 0, 0 10, 10 10, 10 0, 5 0, 3 3, 5 6, 7 3, 5 0, 0 0)) seems to be OGC valid. Why GeometryValidator treats it as invalid?

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • October 3, 2014
Hi,

 

 

Because the boundary is a twisted and closed LineString; the Polygon does not consist of two Rings - an exterior Ring and an interior Ring.

 

This is valid.

 

POLYGON ((0 0,0 10,10 10,10 0,0 0),(5 0,3 3,5 6,7 3,5 0))

 

 

Takashi

  • Author
  • October 3, 2014
Thank you very much for your quick response!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings