-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
WFS returns incomplete geometry when inner ring touches outer ring #5299
Comments
Has anyone encountered this problem and know how to fix it? |
Perhaps a geometry from an shapefile created using arcgis ? I suspect the issue is with the arcgis shapefile. Andrea.
|
Found in http://toblerity.org/shapely/manual.html, an inner ring touching the outer ring at at most one point is OK, and ST_IsValid() on this geometry confirms it. So I guess that the msGetInnerList() function used to distinguish inner from outer rings should be improved to deal with that use case. Currently it must work only for inner rings that are strictly inside the outer ring |
It is ok, but is definited differently is the shapefile come from an esri product or from a OGC product. Infact for esri this kind of situation is resolved defining in the geometry of the feature (in the shapefile) a self-intersecting external ring. Something is explained in this command of postgis (see the "esri flag"). http://postgis.net/docs/manual-2.2/ST_IsValidDetail.html
|
Thank you for your answers. |
Has anyone an idea how to fix it? |
Have you tried an Update table set geometry=st_makevalid(geometry) where ? Il 29 ago 2016 9:58 AM, "priskahaller" notifications@github.com ha
|
It seems (from looking at msGetInnerList()) that everything that is not an outer ring will be an inner ring. There is no test procedure for inner rings. But the test procedure for outer rings msIsOuterRing() is probably not suitable to distinguish the special case which causes problems here. |
@aperi2007: All geometries are valid |
MapServer#5299) Currently the behaviour was undefined if the first point of the inner ring touched its outer ring.
MapServer#5299) Currently the behaviour was undefined if the first point of the inner ring touched its outer ring.
Fixed in branch-7-0 and in master |
Great, thank you! |
@rouault: When is the next mapserver package release (that incudes this bug fix) planned? |
Inner ring is missing in WFS GetFeature result, when geometries of inner and outer ring touch.
WKT-Geometry in PostGIS with inner ring:
WFS GetFeature request returns outer ring only:
Mapserver Version: 6.4.2
PostGIS Version: 2.2.2 r14797
The text was updated successfully, but these errors were encountered: