Completely switch over to gml for processing test data

The different gdal versions have issues with geojson wrt null attribute types
This commit is contained in:
Matthias Kuhn 2016-02-04 15:36:29 +01:00
parent 164090688e
commit 9ad69adc35
23 changed files with 319 additions and 91 deletions

View File

@ -5,7 +5,7 @@ tests:
algorithm: qgis:polygoncentroids # Algorithm name
params: # A list of parameters (only 1 here)
- type: vector # Param is a vector layer
name: polys.geojson # file name
name: polys.gml # file name
results: # A map of results (only one here)
OUTPUT_LAYER:
type: vector # Expected result is a vector layer
@ -17,7 +17,7 @@ tests:
- name: Delete Holes
algorithm: qgis:deleteholes
params:
- name: polys.geojson
- name: polys.gml
type: vector
results:
OUTPUT:
@ -33,10 +33,10 @@ tests:
algorithm: qgis:intersection
params:
INPUT:
name: multipolys.geojson
name: multipolys.gml
type: vector
INPUT2:
name: polys.geojson
name: polys.gml
type: vector
results:
OUTPUT:
@ -46,7 +46,7 @@ tests:
- name: Densify geometries
algorithm: qgis:densifygeometries
params:
- name: multipolys.geojson
- name: multipolys.gml
type: vector
- '4'
results:
@ -57,7 +57,7 @@ tests:
- name: Polygons to Lines
algorithm: qgis:polygonstolines
params:
- name: multipolys.geojson
- name: multipolys.gml
type: vector
results:
OUTPUT:

View File

@ -12,7 +12,7 @@
</gml:boundedBy>
<gml:featureMember>
<ogr:multipolys_densify fid="multipolys_densify.0">
<ogr:multipolys_densify fid="multipolys.0">
<ogr:geometryProperty><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,1 2.0,1.2 2.0,1.4 2.0,1.6 2.0,1.8 2,2 2.2,2.0 2.4,2.0 2.6,2.0 2.8,2.0 3,2 3.0,2.2 3.0,2.4 3.0,2.6 3.0,2.8 3,3 3.2,3.0 3.4,3.0 3.6,3.0 3.8,3.0 4,3 4.0,2.6 4.0,2.2 4.0,1.8 4.0,1.4 4,1 3.6,1.0 3.2,1.0 2.8,1.0 2.4,1.0 2,1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogr:geometryProperty>
<ogr:Bname>Test</ogr:Bname>
<ogr:Bintval>1</ogr:Bintval>
@ -20,12 +20,12 @@
</ogr:multipolys_densify>
</gml:featureMember>
<gml:featureMember>
<ogr:multipolys_densify fid="multipolys_densify.1">
<ogr:multipolys_densify fid="multipolys.1">
<ogr:geometryProperty><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>7,-1 7.2,-1.0 7.4,-1.0 7.6,-1.0 7.8,-1.0 8,-1 8.0,-0.2 8.0,0.6 8.0,1.4 8.0,2.2 8,3 7.8,3.0 7.6,3.0 7.4,3.0 7.2,3.0 7,3 7.0,2.2 7.0,1.4 7.0,0.6 7.0,-0.2 7,-1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>7,6 7.0,5.8 7.0,5.6 7.0,5.4 7.0,5.2 7,5 7.0,4.8 7.0,4.6 7.0,4.4 7.0,4.2 7,4 7.2,4.0 7.4,4.0 7.6,4.0 7.8,4.0 8,4 8.2,4.2 8.4,4.4 8.6,4.6 8.8,4.8 9,5 9.0,5.2 9.0,5.4 9.0,5.6 9.0,5.8 9,6 8.6,6.0 8.2,6.0 7.8,6.0 7.4,6.0 7,6</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogr:geometryProperty>
</ogr:multipolys_densify>
</gml:featureMember>
<gml:featureMember>
<ogr:multipolys_densify fid="multipolys_densify.2">
<ogr:multipolys_densify fid="multipolys.2">
<ogr:geometryProperty><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0,0 0.0,0.2 0.0,0.4 0.0,0.6 0.0,0.8 0,1 0.2,1.0 0.4,1.0 0.6,1.0 0.8,1.0 1,1 1.0,0.8 1.0,0.6 1.0,0.4 1.0,0.2 1,0 0.8,0.0 0.6,0.0 0.4,0.0 0.2,0.0 0,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogr:geometryProperty>
<ogr:Bname>Test</ogr:Bname>
<ogr:Bintval>2</ogr:Bintval>
@ -33,7 +33,7 @@
</ogr:multipolys_densify>
</gml:featureMember>
<gml:featureMember>
<ogr:multipolys_densify fid="multipolys_densify.3">
<ogr:multipolys_densify fid="multipolys.3">
<ogr:Bname>Test</ogr:Bname>
<ogr:Bintval>3</ogr:Bintval>
<ogr:Bfloatval>0</ogr:Bfloatval>

View File

@ -19,7 +19,7 @@
<xs:element name="Bname" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255"/>
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

View File

@ -12,7 +12,7 @@
</gml:boundedBy>
<gml:featureMember>
<ogr:polys_centroid fid="polys_centroid.0">
<ogr:polys_centroid fid="polys.0">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0.653846153846154,1.11538461538462</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:name>aaaaa</ogr:name>
<ogr:intval>33</ogr:intval>
@ -20,7 +20,7 @@
</ogr:polys_centroid>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_centroid fid="polys_centroid.1">
<ogr:polys_centroid fid="polys.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5.0,4.33333333333333</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:name>Aaaaa</ogr:name>
<ogr:intval>-33</ogr:intval>
@ -28,21 +28,21 @@
</ogr:polys_centroid>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_centroid fid="polys_centroid.2">
<ogr:polys_centroid fid="polys.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2.5,5.5</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:name>bbaaa</ogr:name>
<ogr:floatval>0.123</ogr:floatval>
</ogr:polys_centroid>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_centroid fid="polys_centroid.3">
<ogr:polys_centroid fid="polys.3">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:name>ASDF</ogr:name>
<ogr:intval>0</ogr:intval>
</ogr:polys_centroid>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_centroid fid="polys_centroid.4">
<ogr:polys_centroid fid="polys.4">
<ogr:intval>120</ogr:intval>
<ogr:floatval>-100291.43213</ogr:floatval>
</ogr:polys_centroid>

View File

@ -19,7 +19,7 @@
<xs:element name="name" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255"/>
<xs:maxLength value="5"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

View File

@ -12,7 +12,7 @@
</gml:boundedBy>
<gml:featureMember>
<ogr:polys_deleteholes fid="polys_deleteholes.0">
<ogr:polys_deleteholes fid="polys.0">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-1 2,-1 2,2 3,2 3,3 -1,3 -1,-1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:name>aaaaa</ogr:name>
<ogr:intval>33</ogr:intval>
@ -20,7 +20,7 @@
</ogr:polys_deleteholes>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_deleteholes fid="polys_deleteholes.1">
<ogr:polys_deleteholes fid="polys.1">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,5 4,4 6,4 5,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:name>Aaaaa</ogr:name>
<ogr:intval>-33</ogr:intval>
@ -28,21 +28,21 @@
</ogr:polys_deleteholes>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_deleteholes fid="polys_deleteholes.2">
<ogr:polys_deleteholes fid="polys.2">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,5 2,6 3,6 3,5 2,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:name>bbaaa</ogr:name>
<ogr:floatval>0.123</ogr:floatval>
</ogr:polys_deleteholes>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_deleteholes fid="polys_deleteholes.3">
<ogr:polys_deleteholes fid="polys.3">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6,1 10,1 10,-3 6,-3 6,1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:name>ASDF</ogr:name>
<ogr:intval>0</ogr:intval>
</ogr:polys_deleteholes>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_deleteholes fid="polys_deleteholes.4">
<ogr:polys_deleteholes fid="polys.4">
<ogr:intval>120</ogr:intval>
<ogr:floatval>-100291.43213</ogr:floatval>
</ogr:polys_deleteholes>

View File

@ -19,7 +19,7 @@
<xs:element name="name" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255"/>
<xs:maxLength value="5"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

View File

@ -12,7 +12,7 @@
</gml:boundedBy>
<gml:featureMember>
<ogr:polys_to_lines fid="polys_to_lines.0">
<ogr:polys_to_lines fid="multipolys.0">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>2,1 2,2 3,2 3,3 4,3 4,1 2,1</gml:coordinates></gml:LineString></ogr:geometryProperty>
<ogr:Bname>Test</ogr:Bname>
<ogr:Bintval>1</ogr:Bintval>
@ -20,17 +20,17 @@
</ogr:polys_to_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_to_lines fid="polys_to_lines.1">
<ogr:polys_to_lines fid="multipolys.1">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>7,-1 8,-1 8,3 7,3 7,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
</ogr:polys_to_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_to_lines fid="polys_to_lines.2">
<ogr:polys_to_lines fid="multipolys.1">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>7,6 7,5 7,4 8,4 9,5 9,6 7,6</gml:coordinates></gml:LineString></ogr:geometryProperty>
</ogr:polys_to_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:polys_to_lines fid="polys_to_lines.3">
<ogr:polys_to_lines fid="multipolys.2">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>0,0 0,1 1,1 1,0 0,0</gml:coordinates></gml:LineString></ogr:geometryProperty>
<ogr:Bname>Test</ogr:Bname>
<ogr:Bintval>2</ogr:Bintval>

View File

@ -19,7 +19,7 @@
<xs:element name="Bname" nillable="true" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255"/>
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

View File

@ -1,11 +0,0 @@
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ 6.0, 2.0 ], [ 9.0, 2.0 ], [ 9.0, 3.0 ], [ 11.0, 5.0 ] ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ -1.0, -1.0 ], [ 1.0, -1.0 ] ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ 2.0, 0.0 ], [ 2.0, 2.0 ], [ 3.0, 2.0 ], [ 3.0, 3.0 ] ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ 3.0, 1.0 ], [ 5.0, 1.0 ] ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ 7.0, -3.0 ], [ 10.0, -3.0 ] ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ 6.0, -3.0 ], [ 10.0, 1.0 ] ] } }
]
}

View File

@ -0,0 +1,16 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>lines</Name>
<ElementPath>lines</ElementPath>
<!--LINESTRING-->
<GeometryType>2</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>6</FeatureCount>
<ExtentXMin>-1.00000</ExtentXMin>
<ExtentXMax>11.00000</ExtentXMax>
<ExtentYMin>-3.00000</ExtentYMin>
<ExtentYMax>5.00000</ExtentYMax>
</DatasetSpecificInfo>
</GMLFeatureClass>
</GMLFeatureClassList>

View File

@ -0,0 +1,44 @@
<?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>-1</gml:X><gml:Y>-3</gml:Y></gml:coord>
<gml:coord><gml:X>11</gml:X><gml:Y>5</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogr:lines fid="lines.0">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>6,2 9,2 9,3 11,5</gml:coordinates></gml:LineString></ogr:geometryProperty>
</ogr:lines>
</gml:featureMember>
<gml:featureMember>
<ogr:lines fid="lines.1">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1,-1 1,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
</ogr:lines>
</gml:featureMember>
<gml:featureMember>
<ogr:lines fid="lines.2">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>2,0 2,2 3,2 3,3</gml:coordinates></gml:LineString></ogr:geometryProperty>
</ogr:lines>
</gml:featureMember>
<gml:featureMember>
<ogr:lines fid="lines.3">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>3,1 5,1</gml:coordinates></gml:LineString></ogr:geometryProperty>
</ogr:lines>
</gml:featureMember>
<gml:featureMember>
<ogr:lines fid="lines.4">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>7,-3 10,-3</gml:coordinates></gml:LineString></ogr:geometryProperty>
</ogr:lines>
</gml:featureMember>
<gml:featureMember>
<ogr:lines fid="lines.5">
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>6,-3 10,1</gml:coordinates></gml:LineString></ogr:geometryProperty>
</ogr:lines>
</gml:featureMember>
</ogr:FeatureCollection>

View File

@ -1,10 +0,0 @@
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "Bname": "Test", "Bintval": 1, "Bfloatval": 0.123 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 2.0, 1.0 ], [ 2.0, 2.0 ], [ 3.0, 2.0 ], [ 3.0, 3.0 ], [ 4.0, 3.0 ], [ 4.0, 1.0 ], [ 2.0, 1.0 ] ] ] ] } },
{ "type": "Feature", "properties": { "Bname": null, "Bintval": null, "Bfloatval": null }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 7.0, -1.0 ], [ 8.0, -1.0 ], [ 8.0, 3.0 ], [ 7.0, 3.0 ], [ 7.0, -1.0 ] ] ], [ [ [ 7.0, 6.0 ], [ 7.0, 5.0 ], [ 7.0, 4.0 ], [ 8.0, 4.0 ], [ 9.0, 5.0 ], [ 9.0, 6.0 ], [ 7.0, 6.0 ] ] ] ] } },
{ "type": "Feature", "properties": { "Bname": "Test", "Bintval": 2, "Bfloatval": -0.123 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 0.0, 0.0 ], [ 0.0, 1.0 ], [ 1.0, 1.0 ], [ 1.0, 0.0 ], [ 0.0, 0.0 ] ] ] ] } },
{ "type": "Feature", "properties": { "Bname": "Test", "Bintval": 3, "Bfloatval": 0 }, "geometry": null }
]
}

View File

@ -0,0 +1,32 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>multipolys</Name>
<ElementPath>multipolys</ElementPath>
<!--MULTIPOLYGON-->
<GeometryType>6</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>4</FeatureCount>
<ExtentXMin>0.00000</ExtentXMin>
<ExtentXMax>9.00000</ExtentXMax>
<ExtentYMin>-1.00000</ExtentYMin>
<ExtentYMax>6.00000</ExtentYMax>
</DatasetSpecificInfo>
<PropertyDefn>
<Name>Bname</Name>
<ElementPath>Bname</ElementPath>
<Type>String</Type>
<Width>4</Width>
</PropertyDefn>
<PropertyDefn>
<Name>Bintval</Name>
<ElementPath>Bintval</ElementPath>
<Type>Integer</Type>
</PropertyDefn>
<PropertyDefn>
<Name>Bfloatval</Name>
<ElementPath>Bfloatval</ElementPath>
<Type>Real</Type>
</PropertyDefn>
</GMLFeatureClass>
</GMLFeatureClassList>

View File

@ -0,0 +1,42 @@
<?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>-1</gml:Y></gml:coord>
<gml:coord><gml:X>9</gml:X><gml:Y>6</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogr:multipolys fid="multipolys.0">
<ogr:geometryProperty><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,1 2,2 3,2 3,3 4,3 4,1 2,1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogr:geometryProperty>
<ogr:Bname>Test</ogr:Bname>
<ogr:Bintval>1</ogr:Bintval>
<ogr:Bfloatval>0.123</ogr:Bfloatval>
</ogr:multipolys>
</gml:featureMember>
<gml:featureMember>
<ogr:multipolys fid="multipolys.1">
<ogr:geometryProperty><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>7,-1 8,-1 8,3 7,3 7,-1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>7,6 7,5 7,4 8,4 9,5 9,6 7,6</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogr:geometryProperty>
</ogr:multipolys>
</gml:featureMember>
<gml:featureMember>
<ogr:multipolys fid="multipolys.2">
<ogr:geometryProperty><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0,0 0,1 1,1 1,0 0,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogr:geometryProperty>
<ogr:Bname>Test</ogr:Bname>
<ogr:Bintval>2</ogr:Bintval>
<ogr:Bfloatval>-0.123</ogr:Bfloatval>
</ogr:multipolys>
</gml:featureMember>
<gml:featureMember>
<ogr:multipolys fid="multipolys.3">
<ogr:Bname>Test</ogr:Bname>
<ogr:Bintval>3</ogr:Bintval>
<ogr:Bfloatval>0</ogr:Bfloatval>
</ogr:multipolys>
</gml:featureMember>
</ogr:FeatureCollection>

View File

@ -1,14 +0,0 @@
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 1.0, 1.0 ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 3.0, 3.0 ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 2.0, 2.0 ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 5.0, 2.0 ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 4.0, 1.0 ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 0.0, -5.0 ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 8.0, -1.0 ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 7.0, -1.0 ] } },
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 0.0, -1.0 ] } }
]
}

View File

@ -0,0 +1,16 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>points</Name>
<ElementPath>points</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>
</GMLFeatureClass>
</GMLFeatureClassList>

View File

@ -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:coord>
<gml:coord><gml:X>8</gml:X><gml:Y>3</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogr:points fid="points.0">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>1,1</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
<gml:featureMember>
<ogr:points fid="points.1">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>3,3</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
<gml:featureMember>
<ogr:points fid="points.2">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2,2</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
<gml:featureMember>
<ogr:points fid="points.3">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5,2</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
<gml:featureMember>
<ogr:points fid="points.4">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4,1</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
<gml:featureMember>
<ogr:points fid="points.5">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-5</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
<gml:featureMember>
<ogr:points fid="points.6">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
<gml:featureMember>
<ogr:points fid="points.7">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>7,-1</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
<gml:featureMember>
<ogr:points fid="points.8">
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0,-1</gml:coordinates></gml:Point></ogr:geometryProperty>
</ogr:points>
</gml:featureMember>
</ogr:FeatureCollection>

View File

@ -1,11 +0,0 @@
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "name": "aaaaa", "intval": 33, "floatval": 44.123456 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -1.0, -1.0 ], [ 2.0, -1.0 ], [ 2.0, 2.0 ], [ 3.0, 2.0 ], [ 3.0, 3.0 ], [ -1.0, 3.0 ], [ -1.0, -1.0 ] ] ] } },
{ "type": "Feature", "properties": { "name": "Aaaaa", "intval": -33, "floatval": 0}, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.0, 5.0 ], [ 4.0, 4.0 ], [ 6.0, 4.0 ], [ 5.0, 5.0 ] ] ] } },
{ "type": "Feature", "properties": { "name": "bbaaa", "intval": null, "floatval": 0.123 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 2.0, 5.0 ], [ 2.0, 6.0 ], [ 3.0, 6.0 ], [ 3.0, 5.0 ], [ 2.0, 5.0 ] ] ] } },
{ "type": "Feature", "properties": { "name": "ASDF", "intval": 0, "floatval": null }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 6.0, 1.0 ], [ 10.0, 1.0 ], [ 10.0, -3.0 ], [ 6.0, -3.0 ], [ 6.0, 1.0 ] ], [ [ 7.0, 0.0 ], [ 9.0, 0.0 ], [ 9.0, -2.0 ], [ 7.0, -2.0 ], [ 7.0, 0.0 ] ] ] } },
{ "type": "Feature", "properties": { "name": null, "intval": 120, "floatval": -100291.43213 }, "geometry": null }
]
}

View File

@ -0,0 +1,32 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>polys</Name>
<ElementPath>polys</ElementPath>
<!--POLYGON-->
<GeometryType>3</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>5</FeatureCount>
<ExtentXMin>-1.00000</ExtentXMin>
<ExtentXMax>10.00000</ExtentXMax>
<ExtentYMin>-3.00000</ExtentYMin>
<ExtentYMax>6.00000</ExtentYMax>
</DatasetSpecificInfo>
<PropertyDefn>
<Name>name</Name>
<ElementPath>name</ElementPath>
<Type>String</Type>
<Width>5</Width>
</PropertyDefn>
<PropertyDefn>
<Name>intval</Name>
<ElementPath>intval</ElementPath>
<Type>Integer</Type>
</PropertyDefn>
<PropertyDefn>
<Name>floatval</Name>
<ElementPath>floatval</ElementPath>
<Type>Real</Type>
</PropertyDefn>
</GMLFeatureClass>
</GMLFeatureClassList>

View File

@ -0,0 +1,50 @@
<?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>-1</gml:X><gml:Y>-3</gml:Y></gml:coord>
<gml:coord><gml:X>10</gml:X><gml:Y>6</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogr:polys fid="polys.0">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-1 2,-1 2,2 3,2 3,3 -1,3 -1,-1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:name>aaaaa</ogr:name>
<ogr:intval>33</ogr:intval>
<ogr:floatval>44.123456</ogr:floatval>
</ogr:polys>
</gml:featureMember>
<gml:featureMember>
<ogr:polys fid="polys.1">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,5 4,4 6,4 5,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:name>Aaaaa</ogr:name>
<ogr:intval>-33</ogr:intval>
<ogr:floatval>0</ogr:floatval>
</ogr:polys>
</gml:featureMember>
<gml:featureMember>
<ogr:polys fid="polys.2">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,5 2,6 3,6 3,5 2,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:name>bbaaa</ogr:name>
<ogr:floatval>0.123</ogr:floatval>
</ogr:polys>
</gml:featureMember>
<gml:featureMember>
<ogr:polys fid="polys.3">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6,1 10,1 10,-3 6,-3 6,1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>7,0 9,0 9,-2 7,-2 7,0</gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:name>ASDF</ogr:name>
<ogr:intval>0</ogr:intval>
</ogr:polys>
</gml:featureMember>
<gml:featureMember>
<ogr:polys fid="polys.4">
<ogr:intval>120</ogr:intval>
<ogr:floatval>-100291.43213</ogr:floatval>
</ogr:polys>
</gml:featureMember>
</ogr:FeatureCollection>

View File

@ -1,17 +0,0 @@
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 10.000000 }, "geometry": { "type": "Point", "coordinates": [ -106.094580700419201, 44.685942900561074 ] } },
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 20.000000 }, "geometry": { "type": "Point", "coordinates": [ -103.653199878342306, 38.349643906274352 ] } },
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 11.000000 }, "geometry": { "type": "Point", "coordinates": [ -96.34517815752406, 39.124986363274637 ] } },
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 8.000000 }, "geometry": { "type": "Point", "coordinates": [ -105.451296424714954, 32.551432912590492 ] } },
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 7.000000 }, "geometry": { "type": "Point", "coordinates": [ -94.894024856130642, 31.572614178387987 ] } },
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 12.000000 }, "geometry": { "type": "Point", "coordinates": [ -90.619673239996786, 43.238130023878028 ] } },
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 8.000000 }, "geometry": { "type": "Point", "coordinates": [ -115.661487025731759, 40.315711973329016 ] } },
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 12.000000 }, "geometry": { "type": "Point", "coordinates": [ -87.699554898385514, 27.532978543036723 ] } },
{ "type": "Feature", "properties": { "Name": "Dam", "Value": 13.000000 }, "geometry": { "type": "Point", "coordinates": [ -113.833518242459832, 28.7528527646054 ] } },
{ "type": "Feature", "properties": { "Name": "Lake", "Value": 8.000000 }, "geometry": { "type": "Point", "coordinates": [ -101.100289079924366, 27.074241571062291 ] } }
]
}