-
-
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] Add geometry info should add z/m values (fix #14659)
- Loading branch information
1 parent
49459c8
commit 90aebd1
Showing
7 changed files
with
228 additions
and
8 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
30 changes: 30 additions & 0 deletions
30
python/plugins/processing/tests/testdata/expected/add_geometry_pointz.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,30 @@ | ||
<GMLFeatureClassList> | ||
<GMLFeatureClass> | ||
<Name>add_geometry_pointz</Name> | ||
<ElementPath>add_geometry_pointz</ElementPath> | ||
<GeometryType>-2147483647</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>xcoord</Name> | ||
<ElementPath>xcoord</ElementPath> | ||
<Type>Integer</Type> | ||
</PropertyDefn> | ||
<PropertyDefn> | ||
<Name>ycoord</Name> | ||
<ElementPath>ycoord</ElementPath> | ||
<Type>Integer</Type> | ||
</PropertyDefn> | ||
<PropertyDefn> | ||
<Name>zcoord</Name> | ||
<ElementPath>zcoord</ElementPath> | ||
<Type>Integer</Type> | ||
</PropertyDefn> | ||
</GMLFeatureClass> | ||
</GMLFeatureClassList> |
86 changes: 86 additions & 0 deletions
86
python/plugins/processing/tests/testdata/expected/add_geometry_pointz.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="" | ||
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>7</gml:Z></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.0"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>1,1,3</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>1</ogr:xcoord> | ||
<ogr:ycoord>1</ogr:ycoord> | ||
<ogr:zcoord>3</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.1"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3,3,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>3</ogr:xcoord> | ||
<ogr:ycoord>3</ogr:ycoord> | ||
<ogr:zcoord>0</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2,2,2</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>2</ogr:xcoord> | ||
<ogr:ycoord>2</ogr:ycoord> | ||
<ogr:zcoord>2</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.3"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5,2,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>5</ogr:xcoord> | ||
<ogr:ycoord>2</ogr:ycoord> | ||
<ogr:zcoord>0</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.4"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4,1,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>4</ogr:xcoord> | ||
<ogr:ycoord>1</ogr:ycoord> | ||
<ogr:zcoord>0</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.5"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-5,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>0</ogr:xcoord> | ||
<ogr:ycoord>-5</ogr:ycoord> | ||
<ogr:zcoord>5</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.6"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1,7</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>8</ogr:xcoord> | ||
<ogr:ycoord>-1</ogr:ycoord> | ||
<ogr:zcoord>7</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.7"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7,-1,6</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>7</ogr:xcoord> | ||
<ogr:ycoord>-1</ogr:ycoord> | ||
<ogr:zcoord>6</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:add_geometry_pointz fid="points.8"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-1,4</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
<ogr:xcoord>0</ogr:xcoord> | ||
<ogr:ycoord>-1</ogr:ycoord> | ||
<ogr:zcoord>4</ogr:zcoord> | ||
</ogr:add_geometry_pointz> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
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,15 @@ | ||
<GMLFeatureClassList> | ||
<GMLFeatureClass> | ||
<Name>pointsz</Name> | ||
<ElementPath>pointsz</ElementPath> | ||
<GeometryType>-2147483647</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> | ||
</GMLFeatureClass> | ||
</GMLFeatureClassList> |
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,59 @@ | ||
<?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:Z>0</gml:Z></gml:coord> | ||
<gml:coord><gml:X>8</gml:X><gml:Y>3</gml:Y><gml:Z>7</gml:Z></gml:coord> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
|
||
<gml:featureMember> | ||
<ogr:pointsz fid="points.0"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>1,1,3</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:pointsz fid="points.1"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3,3,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:pointsz fid="points.2"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2,2,2</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:pointsz fid="points.3"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5,2,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:pointsz fid="points.4"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4,1,0</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:pointsz fid="points.5"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-5,5</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:pointsz fid="points.6"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1,7</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:pointsz fid="points.7"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7,-1,6</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<ogr:pointsz fid="points.8"> | ||
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-1,4</gml:coordinates></gml:Point></ogr:geometryProperty> | ||
</ogr:pointsz> | ||
</gml:featureMember> | ||
</ogr:FeatureCollection> |
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