-
-
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.
OGR: add a "wfs_use_default_extent_for_getfeature" "yes" LAYER.METADATA
When this is defined and a WFS request has no BBOX filter, do not use the MAP.EXTENT as a default BBX filter, which can hurt performance and is useless if MAP.EXTENT covers the whole layer. CREDITS: Funded by: Regione Toscana - Settore Sistema Informativo Territoriale ed Ambientale (CIG: 644544015A)
- Loading branch information
Showing
8 changed files
with
141 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
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
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
38 changes: 38 additions & 0 deletions
38
msautotest/wxs/expected/wfs_ogr_native_sql_06_disable_default_extent_for_getfeature.xml
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,38 @@ | ||
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://localhost/path/to/wfs_simple?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=towns_disable_default_extent_for_getfeature&OUTPUTFORMAT=XMLSCHEMA"> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:32632"> | ||
<gml:coordinates>643513.360000,4896928.190000 643513.360000,4896928.190000</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<!-- WARNING: FeatureId item 'ID' not found in typename 'towns_disable_default_extent_for_getfeature'. --> | ||
<gml:featureMember> | ||
<ms:towns_disable_default_extent_for_getfeature> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:32632"> | ||
<gml:coordinates>643513.360000,4896928.190000 643513.360000,4896928.190000</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<ms:msGeometry> | ||
<gml:Point srsName="EPSG:32632"> | ||
<gml:coordinates>643513.360000,4896928.190000</gml:coordinates> | ||
</gml:Point> | ||
</ms:msGeometry> | ||
<ms:name>Fanano</ms:name> | ||
<ms:peoples>2910</ms:peoples> | ||
<ms:localcounc>1</ms:localcounc> | ||
<ms:county>0</ms:county> | ||
<ms:region>0</ms:region> | ||
</ms:towns_disable_default_extent_for_getfeature> | ||
</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,38 @@ | ||
Content-Type: text/xml; subtype=gml/2.1.2; charset=UTF-8 | ||
|
||
<?xml version='1.0' encoding="UTF-8" ?> | ||
<wfs:FeatureCollection | ||
xmlns:ms="http://mapserver.gis.umn.edu/mapserver" | ||
xmlns:gml="http://www.opengis.net/gml" | ||
xmlns:wfs="http://www.opengis.net/wfs/2.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver http://localhost/path/to/wfs_simple?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&TYPENAME=towns_disable_default_extent_for_getfeature&OUTPUTFORMAT=XMLSCHEMA http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd" | ||
timeStamp="" numberMatched="unknown" numberReturned="1" | ||
next="http://localhost/path/to/wfs_simple?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=towns_disable_default_extent_for_getfeature&OUTPUTFORMAT=GML2&COUNT=1&STARTINDEX=1"> | ||
<wfs:boundedBy> | ||
<gml:Box srsName="urn:ogc:def:crs:EPSG::32632"> | ||
<gml:coordinates>672130.72000,4902785.47000 672130.72000,4902785.47000</gml:coordinates> | ||
</gml:Box> | ||
</wfs:boundedBy> | ||
<!-- WARNING: FeatureId item 'ID' not found in typename 'towns_disable_default_extent_for_getfeature'. --> | ||
<wfs:member> | ||
<ms:towns_disable_default_extent_for_getfeature> | ||
<gml:boundedBy> | ||
<gml:Box srsName="urn:ogc:def:crs:EPSG::32632"> | ||
<gml:coordinates>672130.72000,4902785.47000 672130.72000,4902785.47000</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<ms:msGeometry> | ||
<gml:Point srsName="urn:ogc:def:crs:EPSG::32632"> | ||
<gml:coordinates>672130.72000,4902785.47000</gml:coordinates> | ||
</gml:Point> | ||
</ms:msGeometry> | ||
<ms:name>Grizzana Morandi</ms:name> | ||
<ms:peoples>3694</ms:peoples> | ||
<ms:localcounc>1</ms:localcounc> | ||
<ms:county>0</ms:county> | ||
<ms:region>0</ms:region> | ||
</ms:towns_disable_default_extent_for_getfeature> | ||
</wfs:member> | ||
</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