@@ -842,7 +842,7 @@ def testWFSGetOnlyFeaturesInViewExtent(self):
842
842
assert vl .isValid ()
843
843
self .assertEqual (vl .wkbType (), QgsWKBTypes .Point )
844
844
845
- last_url = sanitize (endpoint , '?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=my:typename&MAXFEATURES=2&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=60,-70,80,-60' )
845
+ last_url = sanitize (endpoint , '?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=my:typename&MAXFEATURES=2&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=60,-70,80,-60,urn:ogc:def:crs:EPSG::4326 ' )
846
846
with open (last_url , 'wb' ) as f :
847
847
f .write ("""
848
848
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs"
@@ -883,7 +883,7 @@ def testWFSGetOnlyFeaturesInViewExtent(self):
883
883
self .assertEqual (values , [2 ])
884
884
885
885
# Move to a neighbouring area, and reach the download limit
886
- last_url = sanitize (endpoint , '?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=my:typename&MAXFEATURES=2&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=65,-70,90,-60' )
886
+ last_url = sanitize (endpoint , '?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=my:typename&MAXFEATURES=2&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=65,-70,90,-60,urn:ogc:def:crs:EPSG::4326 ' )
887
887
with open (last_url , 'wb' ) as f :
888
888
f .write ("""
889
889
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs"
@@ -908,7 +908,7 @@ def testWFSGetOnlyFeaturesInViewExtent(self):
908
908
self .assertEqual (values , [2 , 3 ])
909
909
910
910
# Zoom-in again, and bring more features
911
- last_url = sanitize (endpoint , '?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=my:typename&MAXFEATURES=2&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=66,-69,89,-61' )
911
+ last_url = sanitize (endpoint , '?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=my:typename&MAXFEATURES=2&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=66,-69,89,-61,urn:ogc:def:crs:EPSG::4326 ' )
912
912
with open (last_url , 'wb' ) as f :
913
913
f .write ("""
914
914
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs"
@@ -1823,7 +1823,7 @@ def testWrongCapabilityExtent(self):
1823
1823
assert vl .isValid ()
1824
1824
1825
1825
# First request that will be attempted
1826
- with open (sanitize (endpoint , """?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=my:typename&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=-0.125,-0.125,1.125,1.125""" ), 'wb' ) as f :
1826
+ with open (sanitize (endpoint , """?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=my:typename&SRSNAME=urn:ogc:def:crs:EPSG::4326&BBOX=-0.125,-0.125,1.125,1.125,urn:ogc:def:crs:EPSG::4326 """ ), 'wb' ) as f :
1827
1827
f .write ("""
1828
1828
<wfs:FeatureCollection
1829
1829
xmlns:wfs="http://www.opengis.net/wfs/2.0"
@@ -1868,7 +1868,7 @@ def testGeomedia(self):
1868
1868
<Name>my:typename</Name>
1869
1869
<Title>Title</Title>
1870
1870
<Abstract>Abstract</Abstract>
1871
- <DefaultCRS>urn:ogc:def:crs: EPSG: :32631</DefaultCRS>
1871
+ <DefaultCRS>EPSG:32631</DefaultCRS>
1872
1872
<ows:WGS84BoundingBox>
1873
1873
<ows:LowerCorner>0 40</ows:LowerCorner>
1874
1874
<ows:UpperCorner>15 50</ows:UpperCorner>
@@ -1895,7 +1895,7 @@ def testGeomedia(self):
1895
1895
</xsd:schema>
1896
1896
""" .encode ('UTF-8' ))
1897
1897
1898
- with open (sanitize (endpoint , """?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=my:typename&SRSNAME=urn:ogc:def:crs: EPSG: :32631""" ), 'wb' ) as f :
1898
+ with open (sanitize (endpoint , """?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=my:typename&SRSNAME=EPSG:32631""" ), 'wb' ) as f :
1899
1899
f .write ("""
1900
1900
<wfs:FeatureCollection
1901
1901
xmlns:wfs="http://www.opengis.net/wfs/2.0"
@@ -1904,7 +1904,7 @@ def testGeomedia(self):
1904
1904
<wfs:member>
1905
1905
<my:typename gml:id="typename.0">
1906
1906
<my:intfield>1</my:intfield>
1907
- <my:geometryProperty><gml:Polygon srsName="urn:ogc:def:crs: EPSG: :32631" gml:id="typename.geom.0"><gml:exterior><gml:LinearRing><gml:posList>500000 4500000 500000 4510000 510000 4510000 510000 4500000 500000 4500000</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></my:geometryProperty>
1907
+ <my:geometryProperty><gml:Polygon srsName="EPSG:32631" gml:id="typename.geom.0"><gml:exterior><gml:LinearRing><gml:posList>500000 4500000 500000 4510000 510000 4510000 510000 4500000 500000 4500000</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></my:geometryProperty>
1908
1908
</my:typename>
1909
1909
</wfs:member>
1910
1910
</wfs:FeatureCollection>""" .encode ('UTF-8' ))
0 commit comments