forked from MapServer/MapServer
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WFS Client Test (MapServer#6909)
and fix memory leak related to CURL headers.
- Loading branch information
1 parent
1df4a96
commit ecdfaa0
Showing
4 changed files
with
118 additions
and
9 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?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://localhost/wfsclient?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=continents&OUTPUTFORMAT=XMLSCHEMA"> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates>-86.923950,46.381596 -60.381756,65.176476</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<gml:featureMember> | ||
<ms:continents> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates>-60.393715,46.381596 -60.381756,46.394154</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<ms:msGeometry> | ||
<gml:Polygon srsName="EPSG:4326"> | ||
<gml:outerBoundaryIs> | ||
<gml:LinearRing> | ||
<gml:coordinates>-60.393715,46.386185 -60.387363,46.393707 -60.382725,46.394154 -60.381756,46.391628 -60.390778,46.381596 -60.393715,46.386185 </gml:coordinates> | ||
</gml:LinearRing> | ||
</gml:outerBoundaryIs> | ||
</gml:Polygon> | ||
</ms:msGeometry> | ||
</ms:continents> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ms:continents> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates>-86.923950,65.167961 -86.892601,65.176476</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<ms:msGeometry> | ||
<gml:Polygon srsName="EPSG:4326"> | ||
<gml:outerBoundaryIs> | ||
<gml:LinearRing> | ||
<gml:coordinates>-86.903679,65.171326 -86.896553,65.171494 -86.892601,65.169724 -86.905548,65.167961 -86.923950,65.173294 -86.921654,65.176186 -86.906311,65.176476 -86.903679,65.171326 </gml:coordinates> | ||
</gml:LinearRing> | ||
</gml:outerBoundaryIs> | ||
</gml:Polygon> | ||
</ms:msGeometry> | ||
</ms:continents> | ||
</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,54 @@ | ||
# | ||
# Test WFS 1.0.0 Client | ||
# | ||
# REQUIRES: OUTPUT=PNG SUPPORTS=WFS_CLIENT SUPPORTS=WFS | ||
# GetFeature | ||
# RUN_PARMS: wfs_client_100.xml [MAPSERV] -conf ../etc/mapserv.conf QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=continents" > [RESULT_DEMIME] | ||
|
||
MAP | ||
NAME WFS_CLIENT_TEST_100 | ||
STATUS ON | ||
SIZE 400 300 | ||
EXTENT -180 -90 180 90 | ||
UNITS DD | ||
PROJECTION | ||
"init=epsg:4326" | ||
END | ||
SYMBOLSET etc/symbols.sym | ||
FONTSET etc/fonts.txt | ||
|
||
WEB | ||
IMAGEPATH "./tmp" | ||
METADATA | ||
"ows_updatesequence" "123" | ||
"wfs_title" "Test WFS 1.0.0 client" | ||
"wfs_srs" "EPSG:4326" | ||
"ows_enable_request" "*" | ||
"ows_onlineresource" "http://localhost/wfsclient?" | ||
END | ||
END | ||
|
||
LAYER | ||
NAME "continents" | ||
TYPE POLYGON | ||
STATUS ON | ||
CONNECTION "https://demo.mapserver.org/cgi-bin/wfs?" | ||
CONNECTIONTYPE WFS | ||
METADATA | ||
"wfs_typename" "continents" | ||
"wfs_version" "1.0.0" | ||
"wfs_connectiontimeout" "60" | ||
"wfs_maxfeatures" "2" | ||
END | ||
PROJECTION | ||
"init=epsg:4326" | ||
END | ||
CLASS | ||
NAME "Continents" | ||
STYLE | ||
COLOR 255 128 128 | ||
OUTLINECOLOR 96 96 96 | ||
END | ||
END | ||
END # Layer | ||
END |
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