-
-
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.
- Loading branch information
1 parent
ae42bf4
commit 5a802b5
Showing
6 changed files
with
276 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
python/plugins/processing/tests/testdata/expected/mean_coordinates_unique_grouped.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,38 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://ogr.maptools.org/ mean_coordinates_unique_grouped.xsd" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:gml="http://www.opengis.net/gml"> | ||
<gml:boundedBy> | ||
<gml:Box> | ||
<gml:coord><gml:X>3</gml:X><gml:Y>-1.2</gml:Y></gml:coord> | ||
<gml:coord><gml:X>3.5</gml:X><gml:Y>2</gml:Y></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped fid="mean_coordinates_unique_grouped.0"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.0,1.5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>3.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>1.500000000000000</ogr:MEAN_Y> | ||
<ogr:id2>2</ogr:id2> | ||
</ogr:mean_coordinates_unique_grouped> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped fid="mean_coordinates_unique_grouped.1"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.4,-1.2</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>3.400000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>-1.200000000000000</ogr:MEAN_Y> | ||
<ogr:id2>0</ogr:id2> | ||
</ogr:mean_coordinates_unique_grouped> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped fid="mean_coordinates_unique_grouped.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.5,2.0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>3.500000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>2.000000000000000</ogr:MEAN_Y> | ||
<ogr:id2>1</ogr:id2> | ||
</ogr:mean_coordinates_unique_grouped> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
46 changes: 46 additions & 0 deletions
46
python/plugins/processing/tests/testdata/expected/mean_coordinates_unique_grouped.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,46 @@ | ||
<?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="mean_coordinates_unique_grouped" type="ogr:mean_coordinates_unique_grouped_Type" substitutionGroup="gml:_Feature"/> | ||
<xs:complexType name="mean_coordinates_unique_grouped_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="MEAN_X" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="25"/> | ||
<xs:fractionDigits value="15"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="MEAN_Y" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="25"/> | ||
<xs:fractionDigits value="15"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="id2" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:integer"> | ||
<xs:totalDigits value="10"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:schema> |
86 changes: 86 additions & 0 deletions
86
python/plugins/processing/tests/testdata/expected/mean_coordinates_unique_grouped_2.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,86 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://ogr.maptools.org/ mean_coordinates_unique_grouped_2.xsd" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:gml="http://www.opengis.net/gml"> | ||
<gml:boundedBy> | ||
<gml:Box> | ||
<gml:coord><gml:X>0</gml:X><gml:Y>-5</gml:Y></gml:coord> | ||
<gml:coord><gml:X>8</gml:X><gml:Y>3</gml:Y></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.0"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3,3</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>3.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>3.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>2</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.1"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2,2</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>2.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>2.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>3</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5,2</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>5.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>2.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>4</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.3"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4,1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>4.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>1.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>5</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.4"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>0.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>-5.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>6</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.5"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>8.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>-1.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>7</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.6"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7,-1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>7.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>-1.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>8</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.7"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>0.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>-1.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>9</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:mean_coordinates_unique_grouped_2 fid="mean_coordinates_unique_grouped_2.8"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>1,1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>1.000000000000000</ogr:MEAN_X> | ||
<ogr:MEAN_Y>1.000000000000000</ogr:MEAN_Y> | ||
<ogr:id>1</ogr:id> | ||
</ogr:mean_coordinates_unique_grouped_2> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
46 changes: 46 additions & 0 deletions
46
python/plugins/processing/tests/testdata/expected/mean_coordinates_unique_grouped_2.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,46 @@ | ||
<?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="mean_coordinates_unique_grouped_2" type="ogr:mean_coordinates_unique_grouped_2_Type" substitutionGroup="gml:_Feature"/> | ||
<xs:complexType name="mean_coordinates_unique_grouped_2_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="MEAN_X" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="25"/> | ||
<xs:fractionDigits value="15"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="MEAN_Y" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="25"/> | ||
<xs:fractionDigits value="15"/> | ||
</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="10"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:schema> |
21 changes: 21 additions & 0 deletions
21
python/plugins/processing/tests/testdata/expected/unique_coordinates_weight.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,21 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://ogr.maptools.org/ unique_coordinates_weight.xsd" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:gml="http://www.opengis.net/gml"> | ||
<gml:boundedBy> | ||
<gml:Box> | ||
<gml:coord><gml:X>3.666666666666667</gml:X><gml:Y>-0.6222222222222222</gml:Y></gml:coord> | ||
<gml:coord><gml:X>3.666666666666667</gml:X><gml:Y>-0.6222222222222222</gml:Y></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:unique_coordinates_weight fid="unique_coordinates_weight.0"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3.66666666666667,-0.622222222222222</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:MEAN_X>3.666666666666667</ogr:MEAN_X> | ||
<ogr:MEAN_Y>-0.622222222222222</ogr:MEAN_Y> | ||
</ogr:unique_coordinates_weight> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
39 changes: 39 additions & 0 deletions
39
python/plugins/processing/tests/testdata/expected/unique_coordinates_weight.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,39 @@ | ||
<?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="unique_coordinates_weight" type="ogr:unique_coordinates_weight_Type" substitutionGroup="gml:_Feature"/> | ||
<xs:complexType name="unique_coordinates_weight_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="MEAN_X" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="25"/> | ||
<xs:fractionDigits value="15"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="MEAN_Y" nillable="true" minOccurs="0" maxOccurs="1"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:decimal"> | ||
<xs:totalDigits value="25"/> | ||
<xs:fractionDigits value="15"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
</xs:schema> |