Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
278 additions
and
2 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
44 changes: 44 additions & 0 deletions
44
python/plugins/processing/tests/testdata/custom/grass7/v_rectify.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,44 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://ogr.maptools.org/ v_rectify.xsd" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:gml="http://www.opengis.net/gml"> | ||
<gml:boundedBy> | ||
<gml:Box> | ||
<gml:coord><gml:X>-204.115</gml:X><gml:Y>12.198</gml:Y></gml:coord> | ||
<gml:coord><gml:X>-84.78</gml:X><gml:Y>124.318</gml:Y></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:v_rectify fid="v_rectify.0"> | ||
<ogr:geometryProperty><gml:Point><gml:coordinates>-204.115,12.198</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>1</ogr:id> | ||
<ogr:local_x>-204.115</ogr:local_x> | ||
<ogr:local_y>12.198</ogr:local_y> | ||
<ogr:utm37n_x>433392.793</ogr:utm37n_x> | ||
<ogr:utm37n_y>3823100.684</ogr:utm37n_y> | ||
</ogr:v_rectify> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:v_rectify fid="v_rectify.1"> | ||
<ogr:geometryProperty><gml:Point><gml:coordinates>-84.78,124.318</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>2</ogr:id> | ||
<ogr:local_x>-84.780</ogr:local_x> | ||
<ogr:local_y>124.318</ogr:local_y> | ||
<ogr:utm37n_x>433389.825</ogr:utm37n_x> | ||
<ogr:utm37n_y>3823061.376</ogr:utm37n_y> | ||
</ogr:v_rectify> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:v_rectify fid="v_rectify.2"> | ||
<ogr:geometryProperty><gml:Point><gml:coordinates>-87.466,84.973</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>3</ogr:id> | ||
<ogr:local_x>-87.466</ogr:local_x> | ||
<ogr:local_y>84.973</ogr:local_y> | ||
<ogr:utm37n_x>433272.705</ogr:utm37n_x> | ||
<ogr:utm37n_y>3822989.470</ogr:utm37n_y> | ||
</ogr:v_rectify> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
62 changes: 62 additions & 0 deletions
62
python/plugins/processing/tests/testdata/custom/grass7/v_rectify.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,62 @@ | ||
<?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" elementFormDefault="qualified" version="1.0"> | ||
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> | ||
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/> | ||
<xs:complexType name="FeatureCollectionType"> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureCollectionType"> | ||
<xs:attribute name="lockId" type="xs:string" use="optional"/> | ||
<xs:attribute name="scope" type="xs:string" use="optional"/> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
<xs:element name="v_rectify" type="ogr:v_rectify_Type" substitutionGroup="gml:_Feature"/> | ||
<xs:complexType name="v_rectify_Type"> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureType"> | ||
<xs:sequence> | ||
<xs:element name="geometryProperty" type="gml:PointPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/> | ||
<xs:element name="id" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:long"> | ||
<xs:totalDigits value="10"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="local_x" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="11"/> | ||
<xs:fractionDigits value="3"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="local_y" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="11"/> | ||
<xs:fractionDigits value="3"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="utm37n_x" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="11"/> | ||
<xs:fractionDigits value="3"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="utm37n_y" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="11"/> | ||
<xs:fractionDigits value="3"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:schema> |
4 changes: 4 additions & 0 deletions
4
python/plugins/processing/tests/testdata/custom/grass7/v_rectify_local_utm37n.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,4 @@ | ||
-637.240 580.860 432843.854 3823560.989 1 | ||
-962.079 1086.419 432522.788 3824068.656 1 | ||
-1369.031 837.071 432114.226 3823822.337 1 | ||
-1877.673 775.273 431605.364 3823764.216 1 |
47 changes: 47 additions & 0 deletions
47
python/plugins/processing/tests/testdata/expected/grass7/v_rectify.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,47 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://ogr.maptools.org/ v_rectify.xsd" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:gml="http://www.opengis.net/gml"> | ||
<gml:boundedBy> | ||
<gml:Box> | ||
<gml:coord><gml:X>433272.7051863243</gml:X><gml:Y>3822989.469869608</gml:Y></gml:coord> | ||
<gml:coord><gml:X>433392.7925092813</gml:X><gml:Y>3823100.684332959</gml:Y></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:outputbe49290dc4954e58b8b9bd6ae1936a08 fid="v_rectify.0"> | ||
<ogr:geometryProperty><gml:Point><gml:coordinates>433272.705186324,3822989.46986961</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:cat>1</ogr:cat> | ||
<ogr:id>1</ogr:id> | ||
<ogr:local_x>-204.115</ogr:local_x> | ||
<ogr:local_y>12.198</ogr:local_y> | ||
<ogr:utm37n_x>433392.793</ogr:utm37n_x> | ||
<ogr:utm37n_y>3823100.684</ogr:utm37n_y> | ||
</ogr:outputbe49290dc4954e58b8b9bd6ae1936a08> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:outputbe49290dc4954e58b8b9bd6ae1936a08 fid="v_rectify.1"> | ||
<ogr:geometryProperty><gml:Point><gml:coordinates>433392.792509281,3823100.68433296</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:cat>2</ogr:cat> | ||
<ogr:id>2</ogr:id> | ||
<ogr:local_x>-84.78</ogr:local_x> | ||
<ogr:local_y>124.318</ogr:local_y> | ||
<ogr:utm37n_x>433389.825</ogr:utm37n_x> | ||
<ogr:utm37n_y>3823061.376</ogr:utm37n_y> | ||
</ogr:outputbe49290dc4954e58b8b9bd6ae1936a08> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:outputbe49290dc4954e58b8b9bd6ae1936a08 fid="v_rectify.2"> | ||
<ogr:geometryProperty><gml:Point><gml:coordinates>433389.82521185,3823061.37592775</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:cat>3</ogr:cat> | ||
<ogr:id>3</ogr:id> | ||
<ogr:local_x>-87.466</ogr:local_x> | ||
<ogr:local_y>84.973</ogr:local_y> | ||
<ogr:utm37n_x>433272.705</ogr:utm37n_x> | ||
<ogr:utm37n_y>3822989.47</ogr:utm37n_y> | ||
</ogr:outputbe49290dc4954e58b8b9bd6ae1936a08> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
61 changes: 61 additions & 0 deletions
61
python/plugins/processing/tests/testdata/expected/grass7/v_rectify.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,61 @@ | ||
<?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" elementFormDefault="qualified" version="1.0"> | ||
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> | ||
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/> | ||
<xs:complexType name="FeatureCollectionType"> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureCollectionType"> | ||
<xs:attribute name="lockId" type="xs:string" use="optional"/> | ||
<xs:attribute name="scope" type="xs:string" use="optional"/> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
<xs:element name="outputbe49290dc4954e58b8b9bd6ae1936a08" type="ogr:outputbe49290dc4954e58b8b9bd6ae1936a08_Type" substitutionGroup="gml:_Feature"/> | ||
<xs:complexType name="outputbe49290dc4954e58b8b9bd6ae1936a08_Type"> | ||
<xs:complexContent> | ||
<xs:extension base="gml:AbstractFeatureType"> | ||
<xs:sequence> | ||
<xs:element name="geometryProperty" type="gml:PointPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/> | ||
<xs:element name="cat" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:integer"> | ||
<xs:totalDigits value="16"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="id" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:integer"> | ||
<xs:totalDigits value="16"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="local_x" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="local_y" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="utm37n_x" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="utm37n_y" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:schema> |
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