-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix server WFS TYPENAME filter in describeFeatureType
Fixes #20198 with tests
- Loading branch information
Showing
9 changed files
with
861 additions
and
603 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
1,121 changes: 534 additions & 587 deletions
1,121
tests/testdata/qgis_server/test_project_wms_grouped_layers.qgs
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
tests/testdata/qgis_server/wfs_describeFeatureType_1_0_0_typename_as_areas_1_0_0.txt
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-Length: 1840 | ||
Content-Type: text/xml; charset=utf-8 | ||
|
||
<schema xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.qgis.org/gml" xmlns:qgs="http://www.qgis.org/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | ||
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> | ||
<element type="qgs:as_areasType" name="as_areas" substitutionGroup="gml:_Feature"/> | ||
<complexType name="as_areasType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:MultiPolygonPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="int" name="gid"/> | ||
<element type="string" name="datum"/> | ||
<element type="string" name="bearbeiter"/> | ||
<element type="string" name="veranstaltung"/> | ||
<element type="string" name="beschriftung"/> | ||
<element type="string" name="name"/> | ||
<element type="string" name="flaechentyp"/> | ||
<element type="string" name="farbe"/> | ||
<element type="string" name="schraff_width"/> | ||
<element type="string" name="schraff_width_prt"/> | ||
<element type="string" name="schraff_size"/> | ||
<element type="string" name="schraff_size_prt"/> | ||
<element type="string" name="schraff_winkel"/> | ||
<element type="string" name="umrissfarbe"/> | ||
<element type="string" name="umrisstyp"/> | ||
<element type="string" name="umrissstaerke"/> | ||
<element type="string" name="umrissstaerke_prt"/> | ||
<element type="decimal" name="umfang"/> | ||
<element type="decimal" name="flaeche"/> | ||
<element type="string" name="bemerkung"/> | ||
<element type="string" name="last_change"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
</schema> |
112 changes: 112 additions & 0 deletions
112
tests/testdata/qgis_server/wfs_describeFeatureType_1_0_0_typename_empty_1_0_0.txt
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,112 @@ | ||
Content-Length: 4894 | ||
Content-Type: text/xml; charset=utf-8 | ||
|
||
<schema xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.qgis.org/gml" xmlns:qgs="http://www.qgis.org/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | ||
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> | ||
<element type="qgs:as_areasType" name="as_areas" substitutionGroup="gml:_Feature"/> | ||
<complexType name="as_areasType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:MultiPolygonPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="int" name="gid"/> | ||
<element type="string" name="datum"/> | ||
<element type="string" name="bearbeiter"/> | ||
<element type="string" name="veranstaltung"/> | ||
<element type="string" name="beschriftung"/> | ||
<element type="string" name="name"/> | ||
<element type="string" name="flaechentyp"/> | ||
<element type="string" name="farbe"/> | ||
<element type="string" name="schraff_width"/> | ||
<element type="string" name="schraff_width_prt"/> | ||
<element type="string" name="schraff_size"/> | ||
<element type="string" name="schraff_size_prt"/> | ||
<element type="string" name="schraff_winkel"/> | ||
<element type="string" name="umrissfarbe"/> | ||
<element type="string" name="umrisstyp"/> | ||
<element type="string" name="umrissstaerke"/> | ||
<element type="string" name="umrissstaerke_prt"/> | ||
<element type="decimal" name="umfang"/> | ||
<element type="decimal" name="flaeche"/> | ||
<element type="string" name="bemerkung"/> | ||
<element type="string" name="last_change"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
<element type="qgs:as_symbolsType" name="as_symbols" substitutionGroup="gml:_Feature"/> | ||
<complexType name="as_symbolsType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:PointPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="int" name="gid"/> | ||
<element type="string" name="datum"/> | ||
<element type="string" name="bearbeiter"/> | ||
<element type="string" name="veranstaltung"/> | ||
<element type="string" name="beschriftung"/> | ||
<element type="string" name="name"/> | ||
<element type="string" name="form"/> | ||
<element type="string" name="groesse"/> | ||
<element type="string" name="groesse_red"/> | ||
<element type="string" name="winkel"/> | ||
<element type="string" name="farbe"/> | ||
<element type="string" name="bemerkung"/> | ||
<element type="string" name="last_change"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
<element type="qgs:cdb_labelsType" name="cdb_labels" substitutionGroup="gml:_Feature"/> | ||
<complexType name="cdb_labelsType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:PointPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="decimal" name="AREA"/> | ||
<element type="decimal" name="PERIMETER"/> | ||
<element type="int" name="STADTTEILE"/> | ||
<element type="int" name="STADTTEI_1"/> | ||
<element type="int" name="S_A_"/> | ||
<element type="int" name="S_A_ID"/> | ||
<element type="string" name="O_NAME"/> | ||
<element type="string" name="ORTSTEIL"/> | ||
<element type="string" name="STADTTEIL"/> | ||
<element type="string" name="OT_SCHL"/> | ||
<element type="string" name="GEM_SCHL"/> | ||
<element type="decimal" name="ZVS"/> | ||
<element type="string" name="NAME"/> | ||
<element type="string" name="PLZ"/> | ||
<element type="string" name="KERNSTADT_"/> | ||
<element type="string" name="ORTSRATSBE"/> | ||
<element type="decimal" name="PLG_KITA"/> | ||
<element type="decimal" name="PLG_BERATU"/> | ||
<element type="decimal" name="PLG_JUFOE"/> | ||
<element type="decimal" name="VERFLECHTU"/> | ||
<element type="decimal" name="FUNKTIONSB"/> | ||
<element type="string" name="T_DATUM"/> | ||
<element type="string" name="Impfbez_Nr"/> | ||
<element type="string" name="Impfzentru"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
<element type="qgs:cdb_linesType" name="cdb_lines" substitutionGroup="gml:_Feature"/> | ||
<complexType name="cdb_linesType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:PolygonPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="int" name="id"/> | ||
<element type="string" name="typ"/> | ||
<element type="string" name="name"/> | ||
<element type="string" name="ortsrat"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
</schema> |
6 changes: 6 additions & 0 deletions
6
tests/testdata/qgis_server/wfs_describeFeatureType_1_0_0_typename_wrong_1_0_0.txt
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,6 @@ | ||
Content-Length: 422 | ||
Content-Type: text/xml; charset=utf-8 | ||
|
||
<schema xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.qgis.org/gml" xmlns:qgs="http://www.qgis.org/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | ||
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> | ||
</schema> |
38 changes: 38 additions & 0 deletions
38
tests/testdata/qgis_server/wfs_describeFeatureType_1_1_0_typename_as_areas.txt
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-Length: 1841 | ||
Content-Type: text/xml; charset=utf-8 | ||
|
||
<schema xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.qgis.org/gml" xmlns:qgs="http://www.qgis.org/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | ||
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/> | ||
<element type="qgs:as_areasType" name="as_areas" substitutionGroup="gml:_Feature"/> | ||
<complexType name="as_areasType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:MultiPolygonPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="int" name="gid"/> | ||
<element type="string" name="datum"/> | ||
<element type="string" name="bearbeiter"/> | ||
<element type="string" name="veranstaltung"/> | ||
<element type="string" name="beschriftung"/> | ||
<element type="string" name="name"/> | ||
<element type="string" name="flaechentyp"/> | ||
<element type="string" name="farbe"/> | ||
<element type="string" name="schraff_width"/> | ||
<element type="string" name="schraff_width_prt"/> | ||
<element type="string" name="schraff_size"/> | ||
<element type="string" name="schraff_size_prt"/> | ||
<element type="string" name="schraff_winkel"/> | ||
<element type="string" name="umrissfarbe"/> | ||
<element type="string" name="umrisstyp"/> | ||
<element type="string" name="umrissstaerke"/> | ||
<element type="string" name="umrissstaerke_prt"/> | ||
<element type="decimal" name="umfang"/> | ||
<element type="decimal" name="flaeche"/> | ||
<element type="string" name="bemerkung"/> | ||
<element type="string" name="last_change"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
</schema> |
112 changes: 112 additions & 0 deletions
112
tests/testdata/qgis_server/wfs_describeFeatureType_1_1_0_typename_empty.txt
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,112 @@ | ||
Content-Length: 4895 | ||
Content-Type: text/xml; charset=utf-8 | ||
|
||
<schema xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.qgis.org/gml" xmlns:qgs="http://www.qgis.org/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | ||
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/> | ||
<element type="qgs:as_areasType" name="as_areas" substitutionGroup="gml:_Feature"/> | ||
<complexType name="as_areasType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:MultiPolygonPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="int" name="gid"/> | ||
<element type="string" name="datum"/> | ||
<element type="string" name="bearbeiter"/> | ||
<element type="string" name="veranstaltung"/> | ||
<element type="string" name="beschriftung"/> | ||
<element type="string" name="name"/> | ||
<element type="string" name="flaechentyp"/> | ||
<element type="string" name="farbe"/> | ||
<element type="string" name="schraff_width"/> | ||
<element type="string" name="schraff_width_prt"/> | ||
<element type="string" name="schraff_size"/> | ||
<element type="string" name="schraff_size_prt"/> | ||
<element type="string" name="schraff_winkel"/> | ||
<element type="string" name="umrissfarbe"/> | ||
<element type="string" name="umrisstyp"/> | ||
<element type="string" name="umrissstaerke"/> | ||
<element type="string" name="umrissstaerke_prt"/> | ||
<element type="decimal" name="umfang"/> | ||
<element type="decimal" name="flaeche"/> | ||
<element type="string" name="bemerkung"/> | ||
<element type="string" name="last_change"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
<element type="qgs:as_symbolsType" name="as_symbols" substitutionGroup="gml:_Feature"/> | ||
<complexType name="as_symbolsType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:PointPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="int" name="gid"/> | ||
<element type="string" name="datum"/> | ||
<element type="string" name="bearbeiter"/> | ||
<element type="string" name="veranstaltung"/> | ||
<element type="string" name="beschriftung"/> | ||
<element type="string" name="name"/> | ||
<element type="string" name="form"/> | ||
<element type="string" name="groesse"/> | ||
<element type="string" name="groesse_red"/> | ||
<element type="string" name="winkel"/> | ||
<element type="string" name="farbe"/> | ||
<element type="string" name="bemerkung"/> | ||
<element type="string" name="last_change"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
<element type="qgs:cdb_labelsType" name="cdb_labels" substitutionGroup="gml:_Feature"/> | ||
<complexType name="cdb_labelsType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:PointPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="decimal" name="AREA"/> | ||
<element type="decimal" name="PERIMETER"/> | ||
<element type="int" name="STADTTEILE"/> | ||
<element type="int" name="STADTTEI_1"/> | ||
<element type="int" name="S_A_"/> | ||
<element type="int" name="S_A_ID"/> | ||
<element type="string" name="O_NAME"/> | ||
<element type="string" name="ORTSTEIL"/> | ||
<element type="string" name="STADTTEIL"/> | ||
<element type="string" name="OT_SCHL"/> | ||
<element type="string" name="GEM_SCHL"/> | ||
<element type="decimal" name="ZVS"/> | ||
<element type="string" name="NAME"/> | ||
<element type="string" name="PLZ"/> | ||
<element type="string" name="KERNSTADT_"/> | ||
<element type="string" name="ORTSRATSBE"/> | ||
<element type="decimal" name="PLG_KITA"/> | ||
<element type="decimal" name="PLG_BERATU"/> | ||
<element type="decimal" name="PLG_JUFOE"/> | ||
<element type="decimal" name="VERFLECHTU"/> | ||
<element type="decimal" name="FUNKTIONSB"/> | ||
<element type="string" name="T_DATUM"/> | ||
<element type="string" name="Impfbez_Nr"/> | ||
<element type="string" name="Impfzentru"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
<element type="qgs:cdb_linesType" name="cdb_lines" substitutionGroup="gml:_Feature"/> | ||
<complexType name="cdb_linesType"> | ||
<complexContent> | ||
<extension base="gml:AbstractFeatureType"> | ||
<sequence> | ||
<element maxOccurs="1" type="gml:PolygonPropertyType" minOccurs="0" name="geometry"/> | ||
<element type="long" name="fid"/> | ||
<element type="int" name="id"/> | ||
<element type="string" name="typ"/> | ||
<element type="string" name="name"/> | ||
<element type="string" name="ortsrat"/> | ||
</sequence> | ||
</extension> | ||
</complexContent> | ||
</complexType> | ||
</schema> |
6 changes: 6 additions & 0 deletions
6
tests/testdata/qgis_server/wfs_describeFeatureType_1_1_0_typename_wrong.txt
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,6 @@ | ||
Content-Length: 423 | ||
Content-Type: text/xml; charset=utf-8 | ||
|
||
<schema xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.qgis.org/gml" xmlns:qgs="http://www.qgis.org/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | ||
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/> | ||
</schema> |