-
-
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.
* [processing] qgis regular points test * [processing] qgis shape buffer variable tests * [processing] qgis create grid lines test * [processing] qgis convert geometry test * [processing] qgis extract by location test * [processing] qgis add field test * [processing] trying to fix travis failing * [processing] trying to fix travis failing/2 * trying to fix travis failing/3 * [processing] Add new default option "ProjectCrs" to ParameterCrs * [processing] RegularPoints tests shouldn't rely on iface * [processing] Fix regular points test * [processing] RandmPointsExtent new CRS parameter * [processing] qgis random point in extent test * [processing] qgis random point in extent test/2 * [processing] remove qgis random point in extent test * no output random points in extent test * remove useless output
- Loading branch information
Showing
27 changed files
with
3,626 additions
and
9 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
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
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
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
26 changes: 26 additions & 0 deletions
26
python/plugins/processing/tests/testdata/expected/add_field.gfs
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,26 @@ | ||
<GMLFeatureClassList> | ||
<GMLFeatureClass> | ||
<Name>add_field</Name> | ||
<ElementPath>add_field</ElementPath> | ||
<!--POINT--> | ||
<GeometryType>1</GeometryType> | ||
<SRSName>EPSG:4326</SRSName> | ||
<DatasetSpecificInfo> | ||
<FeatureCount>9</FeatureCount> | ||
<ExtentXMin>0.00000</ExtentXMin> | ||
<ExtentXMax>8.00000</ExtentXMax> | ||
<ExtentYMin>-5.00000</ExtentYMin> | ||
<ExtentYMax>3.00000</ExtentYMax> | ||
</DatasetSpecificInfo> | ||
<PropertyDefn> | ||
<Name>id</Name> | ||
<ElementPath>id</ElementPath> | ||
<Type>Integer</Type> | ||
</PropertyDefn> | ||
<PropertyDefn> | ||
<Name>id2</Name> | ||
<ElementPath>id2</ElementPath> | ||
<Type>Integer</Type> | ||
</PropertyDefn> | ||
</GMLFeatureClass> | ||
</GMLFeatureClassList> |
77 changes: 77 additions & 0 deletions
77
python/plugins/processing/tests/testdata/expected/add_field.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,77 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="" | ||
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:add_field fid="points.0"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>1,1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>1</ogr:id> | ||
<ogr:id2>2</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_field fid="points.1"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3,3</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>2</ogr:id> | ||
<ogr:id2>1</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_field fid="points.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2,2</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>3</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_field fid="points.3"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5,2</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>4</ogr:id> | ||
<ogr:id2>2</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_field fid="points.4"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4,1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>5</ogr:id> | ||
<ogr:id2>1</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_field fid="points.5"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>6</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_field fid="points.6"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>7</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_field fid="points.7"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7,-1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>8</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_field fid="points.8"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-1</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:id>9</ogr:id> | ||
<ogr:id2>0</ogr:id2> | ||
</ogr:add_field> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
21 changes: 21 additions & 0 deletions
21
python/plugins/processing/tests/testdata/expected/buffer_diamond.gfs
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 @@ | ||
<GMLFeatureClassList> | ||
<GMLFeatureClass> | ||
<Name>buffer_diamond</Name> | ||
<ElementPath>buffer_diamond</ElementPath> | ||
<!--POLYGON--> | ||
<GeometryType>3</GeometryType> | ||
<SRSName>EPSG:4326</SRSName> | ||
<DatasetSpecificInfo> | ||
<FeatureCount>10</FeatureCount> | ||
<ExtentXMin>-2.92606</ExtentXMin> | ||
<ExtentXMax>12.09096</ExtentXMax> | ||
<ExtentYMin>-5.61064</ExtentYMin> | ||
<ExtentYMax>8.22553</ExtentYMax> | ||
</DatasetSpecificInfo> | ||
<PropertyDefn> | ||
<Name>id</Name> | ||
<ElementPath>id</ElementPath> | ||
<Type>Integer</Type> | ||
</PropertyDefn> | ||
</GMLFeatureClass> | ||
</GMLFeatureClassList> |
74 changes: 74 additions & 0 deletions
74
python/plugins/processing/tests/testdata/expected/buffer_diamond.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,74 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ogr:FeatureCollection | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="" | ||
xmlns:ogr="http://ogr.maptools.org/" | ||
xmlns:gml="http://www.opengis.net/gml"> | ||
<gml:boundedBy> | ||
<gml:Box> | ||
<gml:coord><gml:X>-2.926063829787234</gml:X><gml:Y>-5.61063829787234</gml:Y></gml:coord> | ||
<gml:coord><gml:X>12.09095744680851</gml:X><gml:Y>8.225531914893619</gml:Y></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.0"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-0.426063829787234,-0.30744680851064 -2.92606382978723,2.19255319148936 -0.426063829787234,4.69255319148936 2.07393617021277,2.19255319148936 -0.426063829787234,-0.30744680851064</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>5</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.1"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1.45053191489362,-0.53085106382979 -1.04946808510638,1.96914893617021 1.45053191489362,4.46914893617021 3.95053191489362,1.96914893617021 1.45053191489362,-0.53085106382979</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>5</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.2"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1.40585106382979,-1.69255319148936 -1.09414893617021,0.807446808510639 1.40585106382979,3.30744680851064 3.90585106382979,0.807446808510639 1.40585106382979,-1.69255319148936</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>5</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.3"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0.199468085106383,-2.9436170212766 -2.30053191489362,-0.443617021276596 0.199468085106383,2.0563829787234 2.69946808510638,-0.443617021276596 0.199468085106383,-2.9436170212766</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>5</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.4"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.63989361702128,-1.68404255319149 1.63989361702128,0.315957446808511 3.63989361702128,2.31595744680851 5.63989361702128,0.315957446808511 3.63989361702128,-1.68404255319149</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>4</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.5"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>4.28776595744681,-1.32340425531915 3.78776595744681,-0.823404255319149 4.28776595744681,-0.323404255319149 4.78776595744681,-0.823404255319149 4.28776595744681,-1.32340425531915</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>1</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.6"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.04734042553191,-1.92978723404255 3.04734042553191,0.070212765957447 5.04734042553191,2.07021276595745 7.04734042553191,0.070212765957447 5.04734042553191,-1.92978723404255</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>4</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.7"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6.90159574468085,-2.09468085106383 4.40159574468085,0.40531914893617 6.90159574468085,2.90531914893617 9.40159574468085,0.40531914893617 6.90159574468085,-2.09468085106383</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>5</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.8"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>9.09095744680851,-5.61063829787234 6.09095744680851,-2.61063829787234 9.09095744680851,0.38936170212766 12.0909574468085,-2.61063829787234 9.09095744680851,-5.61063829787234</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>6</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:buffer_diamond fid="points_wighted.9"> | ||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.04734042553191,0.22553191489362 1.04734042553191,4.22553191489362 5.04734042553191,8.22553191489362 9.04734042553191,4.22553191489362 5.04734042553191,0.22553191489362</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty> | ||
<ogr:id>8</ogr:id> | ||
</ogr:buffer_diamond> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
21 changes: 21 additions & 0 deletions
21
python/plugins/processing/tests/testdata/expected/buffer_ovals.gfs
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 @@ | ||
<GMLFeatureClassList> | ||
<GMLFeatureClass> | ||
<Name>buffer_ovals</Name> | ||
<ElementPath>buffer_ovals</ElementPath> | ||
<!--POLYGON--> | ||
<GeometryType>3</GeometryType> | ||
<SRSName>EPSG:4326</SRSName> | ||
<DatasetSpecificInfo> | ||
<FeatureCount>10</FeatureCount> | ||
<ExtentXMin>-2.92606</ExtentXMin> | ||
<ExtentXMax>12.09096</ExtentXMax> | ||
<ExtentYMin>-5.61064</ExtentYMin> | ||
<ExtentYMax>8.22553</ExtentYMax> | ||
</DatasetSpecificInfo> | ||
<PropertyDefn> | ||
<Name>id</Name> | ||
<ElementPath>id</ElementPath> | ||
<Type>Integer</Type> | ||
</PropertyDefn> | ||
</GMLFeatureClass> | ||
</GMLFeatureClassList> |
Oops, something went wrong.