-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests for reloading output of the GDAL rasterize algorithms
- Loading branch information
1 parent
c04d1ce
commit 3b79323
Showing
3 changed files
with
142 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
17 changes: 17 additions & 0 deletions
17
python/plugins/processing/tests/testdata/rasterize_zones.gml
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,17 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
gml:id="aFeatureCollection" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://ogr.maptools.org/ rasterize_zones.xsd" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:gml="http://www.opengis.net/gml/3.2"> | ||
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326"><gml:lowerCorner>45.79297234061 18.6828584793171</gml:lowerCorner><gml:upperCorner>45.7978887285699 18.6908476097518</gml:upperCorner></gml:Envelope></gml:boundedBy> | ||
|
||
<ogr:featureMember> | ||
<ogr:rasterize_zones gml:id="rasterize_zones.0"> | ||
<gml:boundedBy><gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326"><gml:lowerCorner>45.79297234061 18.6828584793171</gml:lowerCorner><gml:upperCorner>45.7978887285699 18.6908476097518</gml:upperCorner></gml:Envelope></gml:boundedBy> | ||
<ogr:geometryProperty><gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326" gml:id="rasterize_zones.geom.0"><gml:exterior><gml:LinearRing><gml:posList>45.7978272737204 18.6828584793171 45.7978887285699 18.6908476097518 45.79297234061 18.6907861549023 45.7931567051585 18.682981389016 45.7978272737204 18.6828584793171</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogr:geometryProperty> | ||
<ogr:value>100.000000</ogr:value> | ||
</ogr:rasterize_zones> | ||
</ogr:featureMember> | ||
</ogr:FeatureCollection> |
55 changes: 55 additions & 0 deletions
55
python/plugins/processing/tests/testdata/rasterize_zones.xsd
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,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema | ||
targetNamespace="http://ogr.maptools.org/" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:gml="http://www.opengis.net/gml/3.2" | ||
xmlns:gmlsf="http://www.opengis.net/gmlsf/2.0" | ||
elementFormDefault="qualified" | ||
version="1.0"> | ||
<xs:annotation> | ||
<xs:appinfo source="http://schemas.opengis.net/gmlsfProfile/2.0/gmlsfLevels.xsd"> | ||
<gmlsf:ComplianceLevel>0</gmlsf:ComplianceLevel> | ||
</xs:appinfo> | ||
</xs:annotation> | ||
<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/> | ||
<xs:import namespace="http://www.opengis.net/gmlsf/2.0" schemaLocation="http://schemas.opengis.net/gmlsfProfile/2.0/gmlsfLevels.xsd"/> | ||
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:AbstractFeature"/> | ||
<xs:complexType name="FeatureCollectionType"> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureType"> | ||
<xs:sequence minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element name="featureMember"> | ||
<xs:complexType> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureMemberType"> | ||
<xs:sequence> | ||
<xs:element ref="gml:AbstractFeature"/> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
<xs:element name="rasterize_zones" type="ogr:rasterize_zones_Type" substitutionGroup="gml:AbstractFeature"/> | ||
<xs:complexType name="rasterize_zones_Type"> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureType"> | ||
<xs:sequence> | ||
<xs:element name="geometryProperty" type="gml:SurfacePropertyType" nillable="true" minOccurs="0" maxOccurs="1"/> <!-- restricted to Polygon --><!-- srsName="urn:ogc:def:crs:EPSG::4326" --> | ||
<xs:element name="value" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="11"/> | ||
<xs:fractionDigits value="6"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:schema> |