-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msGetInnerList(): fix behaviour for inner ring touching its outer ring (
#5299) Currently the behaviour was undefined if the first point of the inner ring touched its outer ring.
- Loading branch information
Showing
4 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
id,WKT | ||
1,"MULTIPOLYGON(((676881.746 253159.65,676952.5 253142.812,676984.539 253076.568,676992.16 253047.552,676907.575 252978.182,676793.971 252977.057,676763.746 253101.446,676881.746 253159.65),(676881.746 253159.65,676835.762 253108.566,676841.704 253079.649,676870.271 253078.765,676924.143 253120.438,676881.746 253159.65)))" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Content-Type: text/xml; charset=UTF-8 | ||
|
||
<?xml version='1.0' encoding="UTF-8" ?> | ||
<wfs:FeatureCollection | ||
xmlns:ms="http://mapserver.gis.umn.edu/mapserver" | ||
xmlns:wfs="http://www.opengis.net/wfs" | ||
xmlns:gml="http://www.opengis.net/gml" | ||
xmlns:ogc="http://www.opengis.net/ogc" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd | ||
http://mapserver.gis.umn.edu/mapserver http://127.0.0.0.1?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=test5299&OUTPUTFORMAT=XMLSCHEMA"> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates>676763.746000,252977.057000 676992.160000,253159.650000</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<gml:featureMember> | ||
<ms:test5299> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates>676763.746000,252977.057000 676992.160000,253159.650000</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<ms:msGeometry> | ||
<gml:MultiPolygon srsName="EPSG:4326"> | ||
<gml:polygonMember> | ||
<gml:Polygon> | ||
<gml:outerBoundaryIs> | ||
<gml:LinearRing> | ||
<gml:coordinates>676881.746000,253159.650000 676952.500000,253142.812000 676984.539000,253076.568000 676992.160000,253047.552000 676907.575000,252978.182000 676793.971000,252977.057000 676763.746000,253101.446000 676881.746000,253159.650000 </gml:coordinates> | ||
</gml:LinearRing> | ||
</gml:outerBoundaryIs> | ||
<gml:innerBoundaryIs> | ||
<gml:LinearRing> | ||
<gml:coordinates>676881.746000,253159.650000 676835.762000,253108.566000 676841.704000,253079.649000 676870.271000,253078.765000 676924.143000,253120.438000 676881.746000,253159.650000 </gml:coordinates> | ||
</gml:LinearRing> | ||
</gml:innerBoundaryIs> | ||
</gml:Polygon> | ||
</gml:polygonMember> | ||
</gml:MultiPolygon> | ||
</ms:msGeometry> | ||
</ms:test5299> | ||
</gml:featureMember> | ||
</wfs:FeatureCollection> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Test fix for #5299 | ||
# | ||
# REQUIRES: SUPPORTS=WFS INPUT=OGR | ||
# | ||
# Generate dump to gml2 | ||
# RUN_PARMS: wfs_test5299.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=test5299" > [RESULT] | ||
|
||
MAP | ||
NAME test | ||
EXTENT 0 0 10 10 | ||
SIZE 200 200 | ||
|
||
PROJECTION | ||
"init=epsg:4326" | ||
END | ||
|
||
WEB | ||
METADATA | ||
OWS_ONLINERESOURCE "http://127.0.0.0.1" | ||
OWS_SRS "EPSG:4326" | ||
OWS_ENABLE_REQUEST "*" | ||
END | ||
END | ||
|
||
LAYER | ||
NAME test5299 | ||
TYPE POLYGON | ||
STATUS ON | ||
CONNECTIONTYPE OGR | ||
CONNECTION "data/test5299.csv" | ||
|
||
METADATA | ||
"ows_geomtype" "MultiPolygon" | ||
END | ||
|
||
STYLEITEM "AUTO" | ||
CLASS | ||
END | ||
END | ||
END |