Skip to content
Permalink
Browse files

Merge pull request #3381 from nyalldawson/processing_layer

[processing] Create vector files using default dataset/layer options
  • Loading branch information
nyalldawson committed Aug 11, 2016
2 parents b6d0320 + 9bc61e7 commit d0faca16a7e63e8bb0e9382c1b7746e1dfc67e2e
Showing with 1,326 additions and 143 deletions.
  1. +14 −0 python/core/qgsvectorfilewriter.sip
  2. +15 −0 python/plugins/processing/tests/testdata/expected/PolygonDissolveTest_output.gfs
  3. +1 −1 python/plugins/processing/tests/testdata/expected/PolygonDissolveTest_output.gml
  4. +20 −0 python/plugins/processing/tests/testdata/expected/autoincrement_field.gfs
  5. +1 −1 python/plugins/processing/tests/testdata/expected/autoincrement_field.gml
  6. +15 −0 python/plugins/processing/tests/testdata/expected/buffer_lines.gfs
  7. +7 −7 python/plugins/processing/tests/testdata/expected/buffer_lines.gml
  8. +15 −0 python/plugins/processing/tests/testdata/expected/buffer_lines_flat.gfs
  9. +2 −2 python/plugins/processing/tests/testdata/expected/buffer_lines_flat.gml
  10. +15 −0 python/plugins/processing/tests/testdata/expected/buffer_lines_square.gfs
  11. +5 −5 python/plugins/processing/tests/testdata/expected/buffer_lines_square.gml
  12. +31 −0 python/plugins/processing/tests/testdata/expected/buffer_polys.gfs
  13. +9 −9 python/plugins/processing/tests/testdata/expected/buffer_polys.gml
  14. +31 −0 python/plugins/processing/tests/testdata/expected/buffer_polys_bevel.gfs
  15. +1 −1 python/plugins/processing/tests/testdata/expected/buffer_polys_bevel.gml
  16. +31 −0 python/plugins/processing/tests/testdata/expected/buffer_polys_dissolve.gfs
  17. +3 −3 python/plugins/processing/tests/testdata/expected/buffer_polys_dissolve.gml
  18. +31 −0 python/plugins/processing/tests/testdata/expected/buffer_polys_mitre.gfs
  19. +1 −1 python/plugins/processing/tests/testdata/expected/buffer_polys_mitre.gml
  20. +14 −0 python/plugins/processing/tests/testdata/expected/clip_lines_by_multipolygon.gfs
  21. +6 −6 python/plugins/processing/tests/testdata/expected/clip_lines_by_multipolygon.gml
  22. +14 −0 python/plugins/processing/tests/testdata/expected/clip_lines_by_polygon.gfs
  23. +1 −1 python/plugins/processing/tests/testdata/expected/clip_lines_by_polygon.gml
  24. +31 −0 python/plugins/processing/tests/testdata/expected/clip_multipolygons_by_polygons.gfs
  25. +7 −7 python/plugins/processing/tests/testdata/expected/clip_multipolygons_by_polygons.gml
  26. +15 −0 python/plugins/processing/tests/testdata/expected/clip_points_by_multipolygons.gfs
  27. +6 −6 python/plugins/processing/tests/testdata/expected/clip_points_by_multipolygons.gml
  28. +15 −0 python/plugins/processing/tests/testdata/expected/clip_points_by_polygons.gfs
  29. +5 −5 python/plugins/processing/tests/testdata/expected/clip_points_by_polygons.gml
  30. +31 −0 python/plugins/processing/tests/testdata/expected/clip_polys_by_multipolygon.gfs
  31. +9 −9 python/plugins/processing/tests/testdata/expected/clip_polys_by_multipolygon.gml
  32. +30 −0 python/plugins/processing/tests/testdata/expected/dissolve_field.gfs
  33. +18 −18 python/plugins/processing/tests/testdata/expected/dissolve_field.gml
  34. +30 −0 python/plugins/processing/tests/testdata/expected/dissolve_two_fields.gfs
  35. +19 −19 python/plugins/processing/tests/testdata/expected/dissolve_two_fields.gml
  36. +31 −0 python/plugins/processing/tests/testdata/expected/eliminate_largest_area.gfs
  37. +1 −1 python/plugins/processing/tests/testdata/expected/eliminate_largest_area.gml
  38. +31 −0 python/plugins/processing/tests/testdata/expected/eliminate_smallest_area.gfs
  39. +1 −1 python/plugins/processing/tests/testdata/expected/eliminate_smallest_area.gml
  40. +35 −0 python/plugins/processing/tests/testdata/expected/innerRingTouchesOuterRing_output.gfs
  41. +1 −1 python/plugins/processing/tests/testdata/expected/innerRingTouchesOuterRing_output.gml
  42. +15 −0 python/plugins/processing/tests/testdata/expected/line_offset_bevel.gfs
  43. +1 −1 python/plugins/processing/tests/testdata/expected/line_offset_bevel.gml
  44. +15 −0 python/plugins/processing/tests/testdata/expected/line_offset_mitre.gfs
  45. +1 −1 python/plugins/processing/tests/testdata/expected/line_offset_mitre.gml
  46. +15 −0 python/plugins/processing/tests/testdata/expected/line_offset_round_negative.gfs
  47. +2 −2 python/plugins/processing/tests/testdata/expected/line_offset_round_negative.gml
  48. +15 −0 python/plugins/processing/tests/testdata/expected/line_offset_round_positive.gfs
  49. +1 −1 python/plugins/processing/tests/testdata/expected/line_offset_round_positive.gml
  50. +15 −0 python/plugins/processing/tests/testdata/expected/lines_boundary.gfs
  51. +1 −1 python/plugins/processing/tests/testdata/expected/lines_boundary.gml
  52. +15 −0 python/plugins/processing/tests/testdata/expected/lines_bounds.gfs
  53. +1 −1 python/plugins/processing/tests/testdata/expected/lines_bounds.gml
  54. +15 −0 python/plugins/processing/tests/testdata/expected/lines_split_with_lines.gfs
  55. +1 −1 python/plugins/processing/tests/testdata/expected/lines_split_with_lines.gml
  56. +15 −0 python/plugins/processing/tests/testdata/expected/lines_split_with_same_lines.gfs
  57. +1 −1 python/plugins/processing/tests/testdata/expected/lines_split_with_same_lines.gml
  58. +15 −0 python/plugins/processing/tests/testdata/expected/merge_lines.gfs
  59. +3 −3 python/plugins/processing/tests/testdata/expected/merge_lines.gml
  60. +15 −0 python/plugins/processing/tests/testdata/expected/multi_to_single.gfs
  61. +4 −4 python/plugins/processing/tests/testdata/expected/multi_to_single.gml
  62. +15 −0 python/plugins/processing/tests/testdata/expected/multiline_boundary.gfs
  63. +1 −1 python/plugins/processing/tests/testdata/expected/multiline_boundary.gml
  64. +15 −0 python/plugins/processing/tests/testdata/expected/multiline_bounds.gfs
  65. +1 −1 python/plugins/processing/tests/testdata/expected/multiline_bounds.gml
  66. +14 −0 python/plugins/processing/tests/testdata/expected/multiline_offset.gfs
  67. +1 −1 python/plugins/processing/tests/testdata/expected/multiline_offset.gml
  68. +19 −0 python/plugins/processing/tests/testdata/expected/multipoint_bounds.gfs
  69. +1 −1 python/plugins/processing/tests/testdata/expected/multipoint_bounds.gml
  70. +31 −0 python/plugins/processing/tests/testdata/expected/multipoly_boundary.gfs
  71. +1 −1 python/plugins/processing/tests/testdata/expected/multipoly_boundary.gml
  72. +31 −0 python/plugins/processing/tests/testdata/expected/multipoly_bounds.gfs
  73. +1 −1 python/plugins/processing/tests/testdata/expected/multipoly_bounds.gml
  74. +31 −0 python/plugins/processing/tests/testdata/expected/multipolys_densify.gfs
  75. +2 −2 python/plugins/processing/tests/testdata/expected/multipolys_densify.gml
  76. +15 −0 python/plugins/processing/tests/testdata/expected/nullGeometryDissolve_output.gfs
  77. +3 −3 python/plugins/processing/tests/testdata/expected/nullGeometryDissolve_output.gml
  78. +15 −0 python/plugins/processing/tests/testdata/expected/point_bounds.gfs
  79. +1 −1 python/plugins/processing/tests/testdata/expected/point_bounds.gml
  80. +15 −0 python/plugins/processing/tests/testdata/expected/point_on_line.gfs
  81. +1 −1 python/plugins/processing/tests/testdata/expected/point_on_line.gml
  82. +19 −0 python/plugins/processing/tests/testdata/expected/point_on_multipoint.gfs
  83. +1 −1 python/plugins/processing/tests/testdata/expected/point_on_multipoint.gml
  84. +31 −0 python/plugins/processing/tests/testdata/expected/point_on_poly.gfs
  85. +1 −1 python/plugins/processing/tests/testdata/expected/point_on_poly.gml
  86. +31 −0 python/plugins/processing/tests/testdata/expected/poly_boundary.gfs
  87. +1 −1 python/plugins/processing/tests/testdata/expected/poly_boundary.gml
  88. +31 −0 python/plugins/processing/tests/testdata/expected/poly_bounds.gfs
  89. +1 −1 python/plugins/processing/tests/testdata/expected/poly_bounds.gml
  90. +31 −0 python/plugins/processing/tests/testdata/expected/polys_centroid.gfs
  91. +1 −1 python/plugins/processing/tests/testdata/expected/polys_centroid.gml
  92. +31 −0 python/plugins/processing/tests/testdata/expected/polys_deleteholes.gfs
  93. +1 −1 python/plugins/processing/tests/testdata/expected/polys_deleteholes.gml
  94. +31 −0 python/plugins/processing/tests/testdata/expected/polys_to_lines.gfs
  95. +2 −2 python/plugins/processing/tests/testdata/expected/polys_to_lines.gml
  96. +15 −0 python/plugins/processing/tests/testdata/expected/rectanglesovalsdiamondsfixed.gfs
  97. +1 −1 python/plugins/processing/tests/testdata/expected/rectanglesovalsdiamondsfixed.gml
  98. +6 −1 python/plugins/processing/tools/vector.py
  99. +71 −0 src/core/qgsvectorfilewriter.cpp
  100. +17 −0 src/core/qgsvectorfilewriter.h
  101. +24 −0 tests/src/python/test_qgsvectorfilewriter.py
@@ -280,6 +280,20 @@ class QgsVectorFileWriter

static bool driverMetadata( const QString& driverName, MetaData& driverMetadata );

/** Returns a list of the default dataset options for a specified driver.
* @param driverName name of OGR driver
* @note added in QGIS 3.0
* @see defaultLayerOptions()
*/
static QStringList defaultDatasetOptions( const QString& driverName );

/** Returns a list of the default layer options for a specified driver.
* @param driverName name of OGR driver
* @note added in QGIS 3.0
* @see defaultDatasetOptions()
*/
static QStringList defaultLayerOptions( const QString& driverName );

protected:
//! @note not available in python bindings
// OGRGeometryH createEmptyGeometry( QgsWkbTypes::Type wkbType );
@@ -0,0 +1,15 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>PolygonDissolveTest_output</Name>
<ElementPath>PolygonDissolveTest_output</ElementPath>
<GeometryType>6</GeometryType>
<SRSName>EPSG:3003</SRSName>
<DatasetSpecificInfo>
<FeatureCount>1</FeatureCount>
<ExtentXMin>1754260.45566</ExtentXMin>
<ExtentXMax>1757399.08743</ExtentXMax>
<ExtentYMin>5078929.55554</ExtentYMin>
<ExtentYMax>5080666.09361</ExtentYMax>
</DatasetSpecificInfo>
</GMLFeatureClass>
</GMLFeatureClassList>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ PolygonDissolveTest_output.xsd"
xsi:schemaLocation=""
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
@@ -0,0 +1,20 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>autoincrement_field</Name>
<ElementPath>autoincrement_field</ElementPath>
<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>AUTO</Name>
<ElementPath>AUTO</ElementPath>
<Type>Integer</Type>
</PropertyDefn>
</GMLFeatureClass>
</GMLFeatureClassList>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ autoincrement_field.xsd"
xsi:schemaLocation=""
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
@@ -0,0 +1,15 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>buffer_lines</Name>
<ElementPath>buffer_lines</ElementPath>
<GeometryType>3</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>7</FeatureCount>
<ExtentXMin>-2.00000</ExtentXMin>
<ExtentXMax>11.98769</ExtentXMax>
<ExtentYMin>-4.00000</ExtentYMin>
<ExtentYMax>5.98769</ExtentYMax>
</DatasetSpecificInfo>
</GMLFeatureClass>
</GMLFeatureClassList>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ buffer_lines.xsd"
xsi:schemaLocation=""
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
@@ -13,32 +13,32 @@

<gml:featureMember>
<ogr:buffer_lines fid="lines.0">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8,3 8.034074173710932,3.258819045102521 8.133974596215561,3.5 8.292893218813452,3.707106781186547 10.292893218813452,5.707106781186548 10.546009500260457,5.891006524188368 10.843565534959772,5.987688340595138 11.156434465040231,5.987688340595137 11.453990499739549,5.891006524188367 11.707106781186548,5.707106781186548 11.891006524188368,5.453990499739547 11.987688340595138,5.156434465040232 11.987688340595138,4.843565534959771 11.891006524188368,4.546009500260455 11.70710678118655,4.292893218813454 10.0,2.585786437626905 10,2 9.951056516295154,1.690983005625053 9.809016994374948,1.412214747707527 9.587785252292472,1.190983005625053 9.309016994374948,1.048943483704846 9,1 6,1 5.690983005625051,1.048943483704847 5.412214747707526,1.190983005625053 5.190983005625052,1.412214747707528 5.048943483704846,1.690983005625053 5,2 5.048943483704846,2.309016994374947 5.190983005625052,2.587785252292472 5.412214747707526,2.809016994374947 5.690983005625051,2.951056516295153 6,3 8,3</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8,3 8.034074173710932,3.258819045102521 8.133974596215561,3.5 8.292893218813452,3.707106781186547 10.292893218813452,5.707106781186548 10.546009500260455,5.891006524188368 10.843565534959771,5.987688340595138 11.156434465040231,5.987688340595137 11.453990499739547,5.891006524188367 11.707106781186548,5.707106781186548 11.891006524188368,5.453990499739547 11.987688340595138,5.156434465040232 11.987688340595138,4.843565534959771 11.891006524188368,4.546009500260455 11.70710678118655,4.292893218813454 10.0,2.585786437626905 10,2 9.951056516295154,1.690983005625053 9.809016994374947,1.412214747707527 9.587785252292473,1.190983005625053 9.309016994374947,1.048943483704846 9,1 6,1 5.690983005625051,1.048943483704847 5.412214747707526,1.190983005625053 5.190983005625052,1.412214747707528 5.048943483704846,1.690983005625053 5,2 5.048943483704846,2.309016994374947 5.190983005625052,2.587785252292472 5.412214747707526,2.809016994374947 5.690983005625051,2.951056516295153 6.0,3.0 8,3</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
</ogr:buffer_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:buffer_lines fid="lines.1">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1,0 1.309016994374949,-0.048943483704847 1.587785252292474,-0.190983005625053 1.809016994374948,-0.412214747707527 1.951056516295154,-0.690983005625053 2,-1 1.951056516295154,-1.309016994374947 1.809016994374948,-1.587785252292472 1.587785252292474,-1.809016994374947 1.309016994374949,-1.951056516295153 1,-2 -1,-2 -1.309016994374949,-1.951056516295153 -1.587785252292474,-1.809016994374947 -1.809016994374948,-1.587785252292472 -1.951056516295154,-1.309016994374947 -2,-1 -1.951056516295154,-0.690983005625053 -1.809016994374948,-0.412214747707528 -1.587785252292474,-0.190983005625053 -1.309016994374949,-0.048943483704847 -1,0 1,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1,0 1.309016994374949,-0.048943483704847 1.587785252292474,-0.190983005625053 1.809016994374948,-0.412214747707527 1.951056516295154,-0.690983005625053 2.0,-1.0 1.951056516295154,-1.309016994374947 1.809016994374948,-1.587785252292472 1.587785252292474,-1.809016994374947 1.309016994374949,-1.951056516295153 1.0,-2.0 -1,-2 -1.309016994374949,-1.951056516295153 -1.587785252292474,-1.809016994374947 -1.809016994374948,-1.587785252292472 -1.951056516295154,-1.309016994374947 -2.0,-1.0 -1.951056516295154,-0.690983005625053 -1.809016994374948,-0.412214747707528 -1.587785252292474,-0.190983005625053 -1.309016994374949,-0.048943483704847 -1.0,0.0 1,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
</ogr:buffer_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:buffer_lines fid="lines.2">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1,2 1.048943483704846,2.309016994374947 1.190983005625053,2.587785252292473 1.412214747707527,2.809016994374947 1.690983005625053,2.951056516295154 2,3 2.048943483704847,3.309016994374949 2.190983005625053,3.587785252292474 2.412214747707528,3.809016994374948 2.690983005625053,3.951056516295154 3,4 3.309016994374947,3.951056516295154 3.587785252292472,3.809016994374948 3.809016994374947,3.587785252292474 3.951056516295153,3.309016994374949 4,3 4,2 3.951056516295154,1.690983005625053 3.809016994374947,1.412214747707527 3.587785252292473,1.190983005625053 3.309016994374947,1.048943483704846 3,1 3,0 2.951056516295153,-0.309016994374949 2.809016994374947,-0.587785252292474 2.587785252292472,-0.809016994374948 2.309016994374947,-0.951056516295154 2,-1 1.690983005625053,-0.951056516295154 1.412214747707528,-0.809016994374948 1.190983005625054,-0.587785252292475 1.048943483704847,-0.309016994374949 1,0 1,2</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1,2 1.048943483704846,2.309016994374947 1.190983005625053,2.587785252292473 1.412214747707527,2.809016994374947 1.690983005625053,2.951056516295154 2,3 2.048943483704847,3.309016994374949 2.190983005625053,3.587785252292474 2.412214747707528,3.809016994374948 2.690983005625053,3.951056516295154 3,4 3.309016994374947,3.951056516295154 3.587785252292472,3.809016994374948 3.809016994374947,3.587785252292474 3.951056516295153,3.309016994374949 4.0,3.0 4,2 3.951056516295154,1.690983005625053 3.809016994374947,1.412214747707527 3.587785252292473,1.190983005625053 3.309016994374947,1.048943483704846 3,1 3,0 2.951056516295153,-0.309016994374949 2.809016994374947,-0.587785252292474 2.587785252292472,-0.809016994374948 2.309016994374947,-0.951056516295154 2.0,-1.0 1.690983005625053,-0.951056516295154 1.412214747707528,-0.809016994374948 1.190983005625054,-0.587785252292475 1.048943483704847,-0.309016994374949 1.0,-0.0 1,2</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
</ogr:buffer_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:buffer_lines fid="lines.3">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,2 5.309016994374948,1.951056516295153 5.587785252292474,1.809016994374947 5.809016994374947,1.587785252292473 5.951056516295154,1.309016994374947 6,1 5.951056516295154,0.690983005625053 5.809016994374948,0.412214747707528 5.587785252292474,0.190983005625054 5.309016994374949,0.048943483704847 5,0 3,0 2.690983005625051,0.048943483704847 2.412214747707526,0.190983005625053 2.190983005625052,0.412214747707528 2.048943483704846,0.690983005625053 2,1 2.048943483704846,1.309016994374947 2.190983005625052,1.587785252292472 2.412214747707526,1.809016994374947 2.690983005625051,1.951056516295153 3,2 5,2</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,2 5.309016994374948,1.951056516295153 5.587785252292474,1.809016994374947 5.809016994374947,1.587785252292473 5.951056516295154,1.309016994374947 6.0,1.0 5.951056516295154,0.690983005625053 5.809016994374948,0.412214747707528 5.587785252292474,0.190983005625054 5.309016994374949,0.048943483704847 5.0,0.0 3,0 2.690983005625051,0.048943483704847 2.412214747707526,0.190983005625053 2.190983005625052,0.412214747707528 2.048943483704846,0.690983005625053 2.0,1.0 2.048943483704846,1.309016994374947 2.190983005625052,1.587785252292472 2.412214747707526,1.809016994374947 2.690983005625051,1.951056516295153 3.0,2.0 5,2</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
</ogr:buffer_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:buffer_lines fid="lines.4">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>10,-2 10.309016994374948,-2.048943483704847 10.587785252292472,-2.190983005625053 10.809016994374948,-2.412214747707528 10.951056516295154,-2.690983005625053 11,-3 10.951056516295154,-3.309016994374947 10.809016994374948,-3.587785252292472 10.587785252292475,-3.809016994374947 10.30901699437495,-3.951056516295153 10,-4 7,-4 6.690983005625051,-3.951056516295153 6.412214747707526,-3.809016994374947 6.190983005625052,-3.587785252292472 6.048943483704846,-3.309016994374947 6,-3 6.048943483704846,-2.690983005625053 6.190983005625052,-2.412214747707528 6.412214747707526,-2.190983005625053 6.690983005625051,-2.048943483704847 7,-2 10,-2</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>10,-2 10.309016994374948,-2.048943483704847 10.587785252292473,-2.190983005625053 10.809016994374948,-2.412214747707528 10.951056516295154,-2.690983005625053 11,-3 10.951056516295154,-3.309016994374947 10.809016994374948,-3.587785252292472 10.587785252292475,-3.809016994374947 10.30901699437495,-3.951056516295153 10.0,-4.0 7,-4 6.690983005625051,-3.951056516295153 6.412214747707526,-3.809016994374947 6.190983005625052,-3.587785252292472 6.048943483704846,-3.309016994374947 6,-3 6.048943483704846,-2.690983005625053 6.190983005625052,-2.412214747707528 6.412214747707526,-2.190983005625053 6.690983005625051,-2.048943483704847 7.0,-2.0 10,-2</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
</ogr:buffer_lines>
</gml:featureMember>
<gml:featureMember>
<ogr:buffer_lines fid="lines.5">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>9.292893218813452,1.707106781186547 9.546009500260457,1.891006524188368 9.843565534959772,1.987688340595138 10.156434465040231,1.987688340595138 10.453990499739549,1.891006524188368 10.707106781186548,1.707106781186547 10.891006524188368,1.453990499739547 10.987688340595138,1.156434465040232 10.987688340595138,0.84356553495977 10.891006524188368,0.546009500260455 10.70710678118655,0.292893218813454 6.707106781186548,-3.707106781186547 6.453990499739546,-3.891006524188368 6.15643446504023,-3.987688340595138 5.843565534959769,-3.987688340595138 5.546009500260453,-3.891006524188368 5.292893218813452,-3.707106781186547 5.108993475811633,-3.453990499739548 5.012311659404863,-3.156434465040232 5.012311659404862,-2.843565534959771 5.108993475811631,-2.546009500260455 5.29289321881345,-2.292893218813454 9.292893218813452,1.707106781186547</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>9.292893218813452,1.707106781186547 9.546009500260455,1.891006524188368 9.843565534959771,1.987688340595138 10.156434465040231,1.987688340595138 10.453990499739547,1.891006524188368 10.707106781186548,1.707106781186547 10.891006524188368,1.453990499739547 10.987688340595138,1.156434465040232 10.987688340595138,0.84356553495977 10.891006524188368,0.546009500260455 10.70710678118655,0.292893218813454 6.707106781186548,-3.707106781186547 6.453990499739546,-3.891006524188368 6.15643446504023,-3.987688340595138 5.843565534959769,-3.987688340595138 5.546009500260453,-3.891006524188368 5.292893218813452,-3.707106781186547 5.108993475811633,-3.453990499739548 5.012311659404863,-3.156434465040232 5.012311659404862,-2.843565534959771 5.108993475811631,-2.546009500260455 5.29289321881345,-2.292893218813454 9.292893218813452,1.707106781186547</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
</ogr:buffer_lines>
</gml:featureMember>
<gml:featureMember>
@@ -0,0 +1,15 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>buffer_lines_flat</Name>
<ElementPath>buffer_lines_flat</ElementPath>
<GeometryType>3</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>7</FeatureCount>
<ExtentXMin>-1.00000</ExtentXMin>
<ExtentXMax>11.70711</ExtentXMax>
<ExtentYMin>-4.00000</ExtentYMin>
<ExtentYMax>5.70711</ExtentYMax>
</DatasetSpecificInfo>
</GMLFeatureClass>
</GMLFeatureClassList>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ buffer_lines_flat.xsd"
xsi:schemaLocation=""
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
@@ -13,7 +13,7 @@

<gml:featureMember>
<ogr:buffer_lines_flat fid="lines.0">
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8,3 8.034074173710932,3.258819045102521 8.133974596215561,3.5 8.292893218813452,3.707106781186547 10.292893218813452,5.707106781186548 11.707106781186548,4.292893218813452 10.0,2.585786437626905 10,2 9.951056516295154,1.690983005625053 9.809016994374948,1.412214747707527 9.587785252292472,1.190983005625053 9.309016994374948,1.048943483704846 9,1 6,1 6,3 8,3</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8,3 8.034074173710932,3.258819045102521 8.133974596215561,3.5 8.292893218813452,3.707106781186547 10.292893218813452,5.707106781186548 11.707106781186548,4.292893218813452 10.0,2.585786437626905 10,2 9.951056516295154,1.690983005625053 9.809016994374947,1.412214747707527 9.587785252292473,1.190983005625053 9.309016994374947,1.048943483704846 9,1 6,1 6,3 8,3</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
</ogr:buffer_lines_flat>
</gml:featureMember>
<gml:featureMember>
@@ -0,0 +1,15 @@
<GMLFeatureClassList>
<GMLFeatureClass>
<Name>buffer_lines_square</Name>
<ElementPath>buffer_lines_square</ElementPath>
<GeometryType>3</GeometryType>
<SRSName>EPSG:4326</SRSName>
<DatasetSpecificInfo>
<FeatureCount>7</FeatureCount>
<ExtentXMin>-2.00000</ExtentXMin>
<ExtentXMax>12.41421</ExtentXMax>
<ExtentYMin>-4.41421</ExtentYMin>
<ExtentYMax>6.41421</ExtentYMax>
</DatasetSpecificInfo>
</GMLFeatureClass>
</GMLFeatureClassList>

0 comments on commit d0faca1

Please sign in to comment.
You can’t perform that action at this time.