-
-
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.
Remove obsolete python alg, add unit tests
- Loading branch information
1 parent
3c4fb26
commit ca75e8c
Showing
9 changed files
with
654 additions
and
159 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
176 changes: 176 additions & 0 deletions
176
python/plugins/processing/tests/testdata/expected/merged_points.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,176 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://ogr.maptools.org/ merged_points.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:Z>0</gml:Z></gml:coord> | ||
<gml:coord><gml:X>8</gml:X><gml:Y>3</gml:Y><gml:Z>5</gml:Z></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:merged_points fid="points.0"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>1,1,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>1</ogr:id> | ||
<ogr:id2>2</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.1"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3,3,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>2</ogr:id> | ||
<ogr:id2>1</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2,2,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>3</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.3"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5,2,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>4</ogr:id> | ||
<ogr:id2>2</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.4"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4,1,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>5</ogr:id> | ||
<ogr:id2>1</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.5"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-5,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>6</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.6"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>7</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.7"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7,-1,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>8</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.8"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-1,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>9</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/points.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/points.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.0"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>1,1,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>1</ogr:id> | ||
<ogr:id2>2</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.1"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3,3,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>2</ogr:id> | ||
<ogr:id2>1</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2,2,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>3</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.3"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5,2,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>4</ogr:id> | ||
<ogr:id2>2</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.4"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4,1,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>5</ogr:id> | ||
<ogr:id2>1</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.5"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-5,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>6</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.6"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>7</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.7"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7,-1,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>8</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:merged_points fid="points.8"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-1,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>9</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
<ogr:layer>custom/pointszm.shp</ogr:layer> | ||
<ogr:path>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/pointszm.shp</ogr:path> | ||
</ogr:merged_points> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
Oops, something went wrong.