mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[FEATURE][processing] Add overlay option to GridLine and GridPolygon
This commit is contained in:
parent
1f3c67f8e3
commit
01cd784ee7
@ -54,6 +54,8 @@ class GridLine(GeoAlgorithm):
|
||||
EXTENT = 'EXTENT'
|
||||
HSPACING = 'HSPACING'
|
||||
VSPACING = 'VSPACING'
|
||||
HOVERLAY = 'HOVERLAY'
|
||||
VOVERLAY = 'VOVERLAY'
|
||||
CRS = 'CRS'
|
||||
OUTPUT = 'OUTPUT'
|
||||
|
||||
@ -71,6 +73,10 @@ class GridLine(GeoAlgorithm):
|
||||
self.tr('Horizontal spacing'), 0.0, 1000000000.0, default=0.0001))
|
||||
self.addParameter(ParameterNumber(self.VSPACING,
|
||||
self.tr('Vertical spacing'), 0.0, 1000000000.0, default=0.0001))
|
||||
self.addParameter(ParameterNumber(self.HOVERLAY,
|
||||
self.tr('Horizontal overlay'), 0.0, 1000000000.0, default=0.0))
|
||||
self.addParameter(ParameterNumber(self.VOVERLAY,
|
||||
self.tr('Vertical overlay'), 0.0, 1000000000.0, default=0.0))
|
||||
self.addParameter(ParameterCrs(self.CRS, 'Grid CRS', 'EPSG:4326'))
|
||||
|
||||
self.addOutput(OutputVector(self.OUTPUT, self.tr('Grid'), datatype=[dataobjects.TYPE_VECTOR_LINE]))
|
||||
@ -79,6 +85,8 @@ class GridLine(GeoAlgorithm):
|
||||
extent = self.getParameterValue(self.EXTENT).split(',')
|
||||
hSpacing = self.getParameterValue(self.HSPACING)
|
||||
vSpacing = self.getParameterValue(self.VSPACING)
|
||||
hOverlay = self.getParameterValue(self.HOVERLAY)
|
||||
vOverlay = self.getParameterValue(self.VOVERLAY)
|
||||
crs = QgsCoordinateReferenceSystem(self.getParameterValue(self.CRS))
|
||||
|
||||
bbox = QgsRectangle(float(extent[0]), float(extent[2]),
|
||||
@ -91,6 +99,10 @@ class GridLine(GeoAlgorithm):
|
||||
raise GeoAlgorithmExecutionException(
|
||||
self.tr('Invalid grid spacing: %s/%s' % (hSpacing, vSpacing)))
|
||||
|
||||
if hSpacing <= hOverlay or vSpacing <= vOverlay:
|
||||
raise GeoAlgorithmExecutionException(
|
||||
self.tr('Invalid overlay: %s/%s' % (hOverlay, vOverlay)))
|
||||
|
||||
if width < hSpacing:
|
||||
raise GeoAlgorithmExecutionException(
|
||||
self.tr('Horizontal spacing is too small for the covered area'))
|
||||
@ -110,6 +122,16 @@ class GridLine(GeoAlgorithm):
|
||||
writer = self.getOutputFromName(self.OUTPUT).getVectorWriter(fields,
|
||||
QgsWkbTypes.LineString, crs)
|
||||
|
||||
if hOverlay > 0:
|
||||
hSpace = [hSpacing - hOverlay, hOverlay]
|
||||
else:
|
||||
hSpace = [hSpacing, hSpacing]
|
||||
|
||||
if vOverlay > 0:
|
||||
vSpace = [vSpacing - vOverlay, vOverlay]
|
||||
else:
|
||||
vSpace = [vSpacing, vSpacing]
|
||||
|
||||
feat = QgsFeature()
|
||||
feat.initAttributes(len(fields))
|
||||
|
||||
@ -133,7 +155,7 @@ class GridLine(GeoAlgorithm):
|
||||
id,
|
||||
y])
|
||||
writer.addFeature(feat)
|
||||
y = y - vSpacing
|
||||
y = y - vSpace[count % 2]
|
||||
id += 1
|
||||
count += 1
|
||||
if int(math.fmod(count, count_update)) == 0:
|
||||
@ -160,7 +182,7 @@ class GridLine(GeoAlgorithm):
|
||||
id,
|
||||
x])
|
||||
writer.addFeature(feat)
|
||||
x = x + hSpacing
|
||||
x = x + hSpace[count % 2]
|
||||
id += 1
|
||||
count += 1
|
||||
if int(math.fmod(count, count_update)) == 0:
|
||||
|
@ -48,6 +48,8 @@ class GridPolygon(GeoAlgorithm):
|
||||
EXTENT = 'EXTENT'
|
||||
HSPACING = 'HSPACING'
|
||||
VSPACING = 'VSPACING'
|
||||
HOVERLAY = 'HOVERLAY'
|
||||
VOVERLAY = 'VOVERLAY'
|
||||
CRS = 'CRS'
|
||||
OUTPUT = 'OUTPUT'
|
||||
|
||||
@ -71,6 +73,10 @@ class GridPolygon(GeoAlgorithm):
|
||||
self.tr('Horizontal spacing'), 0.0, 1000000000.0, 0.0001))
|
||||
self.addParameter(ParameterNumber(self.VSPACING,
|
||||
self.tr('Vertical spacing'), 0.0, 1000000000.0, 0.0001))
|
||||
self.addParameter(ParameterNumber(self.HOVERLAY,
|
||||
self.tr('Horizontal overlay'), 0.0, 1000000000.0, 0.0))
|
||||
self.addParameter(ParameterNumber(self.VOVERLAY,
|
||||
self.tr('Vertical overlay'), 0.0, 1000000000.0, 0.0))
|
||||
self.addParameter(ParameterCrs(self.CRS, 'Grid CRS', 'EPSG:4326'))
|
||||
|
||||
self.addOutput(OutputVector(self.OUTPUT, self.tr('Grid'), datatype=[dataobjects.TYPE_VECTOR_POLYGON]))
|
||||
@ -80,6 +86,8 @@ class GridPolygon(GeoAlgorithm):
|
||||
extent = self.getParameterValue(self.EXTENT).split(',')
|
||||
hSpacing = self.getParameterValue(self.HSPACING)
|
||||
vSpacing = self.getParameterValue(self.VSPACING)
|
||||
hOverlay = self.getParameterValue(self.HOVERLAY)
|
||||
vOverlay = self.getParameterValue(self.VOVERLAY)
|
||||
crs = QgsCoordinateReferenceSystem(self.getParameterValue(self.CRS))
|
||||
|
||||
bbox = QgsRectangle(float(extent[0]), float(extent[2]),
|
||||
@ -98,6 +106,10 @@ class GridPolygon(GeoAlgorithm):
|
||||
raise GeoAlgorithmExecutionException(
|
||||
self.tr('Horizontal spacing is too small for the covered area'))
|
||||
|
||||
if hSpacing <= hOverlay or vSpacing <= vOverlay:
|
||||
raise GeoAlgorithmExecutionException(
|
||||
self.tr('Invalid overlay: %s/%s' % (hOverlay, vOverlay)))
|
||||
|
||||
if height < vSpacing:
|
||||
raise GeoAlgorithmExecutionException(
|
||||
self.tr('Vertical spacing is too small for the covered area'))
|
||||
@ -114,22 +126,23 @@ class GridPolygon(GeoAlgorithm):
|
||||
|
||||
if idx == 0:
|
||||
self._rectangleGrid(
|
||||
writer, width, height, originX, originY, hSpacing, vSpacing, feedback)
|
||||
writer, width, height, originX, originY, hSpacing, vSpacing, hOverlay, vOverlay, feedback)
|
||||
elif idx == 1:
|
||||
self._diamondGrid(
|
||||
writer, width, height, originX, originY, hSpacing, vSpacing, feedback)
|
||||
writer, width, height, originX, originY, hSpacing, vSpacing, hOverlay, vOverlay, feedback)
|
||||
elif idx == 2:
|
||||
self._hexagonGrid(
|
||||
writer, width, height, originX, originY, hSpacing, vSpacing, feedback)
|
||||
writer, width, height, originX, originY, hSpacing, vSpacing, hOverlay, vOverlay, feedback)
|
||||
|
||||
del writer
|
||||
|
||||
def _rectangleGrid(self, writer, width, height, originX, originY,
|
||||
hSpacing, vSpacing, feedback):
|
||||
hSpacing, vSpacing, hOverlay, vOverlay, feedback):
|
||||
ft = QgsFeature()
|
||||
|
||||
columns = int(math.ceil(float(width) / hSpacing))
|
||||
rows = int(math.ceil(float(height) / vSpacing))
|
||||
columns = int(math.ceil(float(width) / (hSpacing-hOverlay)))
|
||||
rows = int(math.ceil(float(height) / (vSpacing-vOverlay)))
|
||||
|
||||
cells = rows * columns
|
||||
count_update = cells * 0.05
|
||||
|
||||
@ -137,14 +150,12 @@ class GridPolygon(GeoAlgorithm):
|
||||
count = 0
|
||||
|
||||
for col in range(columns):
|
||||
# (column + 1) and (row + 1) calculation is used to maintain
|
||||
# topology between adjacent shapes and avoid overlaps/holes
|
||||
# due to rounding errors
|
||||
x1 = originX + (col * hSpacing)
|
||||
x2 = originX + ((col + 1) * hSpacing)
|
||||
x1 = originX + (col * hSpacing - col * hOverlay)
|
||||
x2 = x1 + hSpacing
|
||||
|
||||
for row in range(rows):
|
||||
y1 = originY - (row * vSpacing)
|
||||
y2 = originY - ((row + 1) * vSpacing)
|
||||
y1 = originY - (row * vSpacing - row * vOverlay)
|
||||
y2 = y1 - vSpacing
|
||||
|
||||
polyline = []
|
||||
polyline.append(QgsPoint(x1, y1))
|
||||
@ -156,20 +167,24 @@ class GridPolygon(GeoAlgorithm):
|
||||
ft.setGeometry(QgsGeometry.fromPolygon([polyline]))
|
||||
ft.setAttributes([x1, y1, x2, y2, id])
|
||||
writer.addFeature(ft)
|
||||
|
||||
id += 1
|
||||
count += 1
|
||||
if int(math.fmod(count, count_update)) == 0:
|
||||
feedback.setProgress(int(count / cells * 100))
|
||||
|
||||
def _diamondGrid(self, writer, width, height, originX, originY,
|
||||
hSpacing, vSpacing, feedback):
|
||||
hSpacing, vSpacing, hOverlay, vOverlay, feedback):
|
||||
ft = QgsFeature()
|
||||
|
||||
halfHSpacing = hSpacing / 2
|
||||
halfVSpacing = vSpacing / 2
|
||||
|
||||
columns = int(math.ceil(float(width) / halfHSpacing))
|
||||
rows = int(math.ceil(float(height) / vSpacing))
|
||||
halfHOverlay = hOverlay / 2
|
||||
halfVOverlay = vOverlay / 2
|
||||
|
||||
columns = int(math.ceil(float(width) / (halfHSpacing - halfHOverlay)))
|
||||
rows = int(math.ceil(float(height) / (vSpacing - halfVOverlay)))
|
||||
|
||||
cells = rows * columns
|
||||
count_update = cells * 0.05
|
||||
@ -178,19 +193,21 @@ class GridPolygon(GeoAlgorithm):
|
||||
count = 0
|
||||
|
||||
for col in range(columns):
|
||||
x1 = originX + ((col + 0) * halfHSpacing)
|
||||
x2 = originX + ((col + 1) * halfHSpacing)
|
||||
x3 = originX + ((col + 2) * halfHSpacing)
|
||||
x = originX - (col * halfHOverlay)
|
||||
x1 = x + ((col + 0) * halfHSpacing)
|
||||
x2 = x + ((col + 1) * halfHSpacing)
|
||||
x3 = x + ((col + 2) * halfHSpacing)
|
||||
|
||||
for row in range(rows):
|
||||
y = originY + (row * halfVOverlay)
|
||||
if (col % 2) == 0:
|
||||
y1 = originY - (((row * 2) + 0) * halfVSpacing)
|
||||
y2 = originY - (((row * 2) + 1) * halfVSpacing)
|
||||
y3 = originY - (((row * 2) + 2) * halfVSpacing)
|
||||
y1 = y - (((row * 2) + 0) * halfVSpacing)
|
||||
y2 = y - (((row * 2) + 1) * halfVSpacing)
|
||||
y3 = y - (((row * 2) + 2) * halfVSpacing)
|
||||
else:
|
||||
y1 = originY - (((row * 2) + 1) * halfVSpacing)
|
||||
y2 = originY - (((row * 2) + 2) * halfVSpacing)
|
||||
y3 = originY - (((row * 2) + 3) * halfVSpacing)
|
||||
y1 = y - (((row * 2) + 1) * halfVSpacing)
|
||||
y2 = y - (((row * 2) + 2) * halfVSpacing)
|
||||
y3 = y - (((row * 2) + 3) * halfVSpacing)
|
||||
|
||||
polyline = []
|
||||
polyline.append(QgsPoint(x1, y2))
|
||||
@ -208,7 +225,7 @@ class GridPolygon(GeoAlgorithm):
|
||||
feedback.setProgress(int(count / cells * 100))
|
||||
|
||||
def _hexagonGrid(self, writer, width, height, originX, originY,
|
||||
hSpacing, vSpacing, feedback):
|
||||
hSpacing, vSpacing, hOverlay, vOverlay, feedback):
|
||||
ft = QgsFeature()
|
||||
|
||||
# To preserve symmetry, hspacing is fixed relative to vspacing
|
||||
@ -216,10 +233,18 @@ class GridPolygon(GeoAlgorithm):
|
||||
xVertexHi = 0.577350269189626 * vSpacing
|
||||
hSpacing = xVertexLo + xVertexHi
|
||||
|
||||
halfVSpacing = vSpacing / 2
|
||||
hOverlay = hSpacing - hOverlay
|
||||
if hOverlay < 0:
|
||||
raise GeoAlgorithmExecutionException(
|
||||
self.tr('To preserve symmetry, hspacing is fixed relative to vspacing\n \
|
||||
hspacing is fixed at: %s and hoverlay is fixed at: %s\n \
|
||||
hoverlay cannot be negative. Increase hoverlay.' % (hSpacing, hOverlay)))
|
||||
|
||||
columns = int(math.ceil(float(width) / hSpacing))
|
||||
rows = int(math.ceil(float(height) / vSpacing))
|
||||
halfHSpacing = hSpacing / 2.0
|
||||
halfVSpacing = vSpacing / 2.0
|
||||
|
||||
columns = int(math.ceil(float(width) / hOverlay))
|
||||
rows = int(math.ceil(float(height) / (vSpacing - vOverlay)))
|
||||
|
||||
cells = rows * columns
|
||||
count_update = cells * 0.05
|
||||
@ -231,20 +256,20 @@ class GridPolygon(GeoAlgorithm):
|
||||
# (column + 1) and (row + 1) calculation is used to maintain
|
||||
# topology between adjacent shapes and avoid overlaps/holes
|
||||
# due to rounding errors
|
||||
x1 = originX + (col * hSpacing) # far left
|
||||
x2 = x1 + (xVertexHi - xVertexLo) # left
|
||||
x3 = originX + ((col + 1) * hSpacing) # right
|
||||
x4 = x3 + (xVertexHi - xVertexLo) # far right
|
||||
x1 = originX + (col * hOverlay) # far left
|
||||
x2 = x1 + (xVertexHi - xVertexLo) # left
|
||||
x3 = originX + (col * hOverlay) + hSpacing # right
|
||||
x4 = x3 + (xVertexHi - xVertexLo) # far right
|
||||
|
||||
for row in range(rows):
|
||||
if (col % 2) == 0:
|
||||
y1 = originY - (((row * 2) + 0) * halfVSpacing) # hi
|
||||
y2 = originY - (((row * 2) + 1) * halfVSpacing) # mid
|
||||
y3 = originY - (((row * 2) + 2) * halfVSpacing) # lo
|
||||
y1 = originY + (row * vOverlay) - (((row * 2) + 0) * halfVSpacing) # hi
|
||||
y2 = originY + (row * vOverlay) - (((row * 2) + 1) * halfVSpacing) # mid
|
||||
y3 = originY + (row * vOverlay) - (((row * 2) + 2) * halfVSpacing) # lo
|
||||
else:
|
||||
y1 = originY - (((row * 2) + 1) * halfVSpacing) # hi
|
||||
y2 = originY - (((row * 2) + 2) * halfVSpacing) # mid
|
||||
y3 = originY - (((row * 2) + 3) * halfVSpacing) # lo
|
||||
y1 = originY + (row * vOverlay) - (((row * 2) + 1) * halfVSpacing) # hi
|
||||
y2 = originY + (row * vOverlay) - (((row * 2) + 2) * halfVSpacing) # mid
|
||||
y3 = originY + (row * vOverlay) - (((row * 2) + 3) * halfVSpacing) # lo
|
||||
|
||||
polyline = []
|
||||
polyline.append(QgsPoint(x1, y2))
|
||||
|
41
python/plugins/processing/tests/testdata/expected/grid_diamond_overlay.gfs
vendored
Normal file
41
python/plugins/processing/tests/testdata/expected/grid_diamond_overlay.gfs
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
<GMLFeatureClassList>
|
||||
<GMLFeatureClass>
|
||||
<Name>grid_diamond_overlay</Name>
|
||||
<ElementPath>grid_diamond_overlay</ElementPath>
|
||||
<!--POLYGON-->
|
||||
<GeometryType>3</GeometryType>
|
||||
<SRSName>EPSG:4326</SRSName>
|
||||
<DatasetSpecificInfo>
|
||||
<FeatureCount>45</FeatureCount>
|
||||
<ExtentXMin>-1.00000</ExtentXMin>
|
||||
<ExtentXMax>16.00000</ExtentXMax>
|
||||
<ExtentYMin>-8.00000</ExtentYMin>
|
||||
<ExtentYMax>6.50000</ExtentYMax>
|
||||
</DatasetSpecificInfo>
|
||||
<PropertyDefn>
|
||||
<Name>left</Name>
|
||||
<ElementPath>left</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>top</Name>
|
||||
<ElementPath>top</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>right</Name>
|
||||
<ElementPath>right</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>bottom</Name>
|
||||
<ElementPath>bottom</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>id</Name>
|
||||
<ElementPath>id</ElementPath>
|
||||
<Type>Integer</Type>
|
||||
</PropertyDefn>
|
||||
</GMLFeatureClass>
|
||||
</GMLFeatureClassList>
|
464
python/plugins/processing/tests/testdata/expected/grid_diamond_overlay.gml
vendored
Normal file
464
python/plugins/processing/tests/testdata/expected/grid_diamond_overlay.gml
vendored
Normal file
@ -0,0 +1,464 @@
|
||||
<?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>-8</gml:Y></gml:coord>
|
||||
<gml:coord><gml:X>16</gml:X><gml:Y>6.5</gml:Y></gml:coord>
|
||||
</gml:Box>
|
||||
</gml:boundedBy>
|
||||
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.0">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,5 1.5,6.5 4,5 1.5,3.5 -1,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>1</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.1">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.0,2.5 1.5,4.0 4.0,2.5 1.5,1.0 -1.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>4.0000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.0000000000000000</ogr:bottom>
|
||||
<ogr:id>2</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.2">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,0 1.5,1.5 4,0 1.5,-1.5 -1,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>1.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>3</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.3">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.0,-2.5 1.5,-1.0 4.0,-2.5 1.5,-4.0 -1.0,-2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.0000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>4</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.4">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-5 1.5,-3.5 4,-5 1.5,-6.5 -1,-5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>5</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.5">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0.5,3.5 3,5 5.5,3.5 3,2 0.5,3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>0.5000000000000000</ogr:left>
|
||||
<ogr:top>5.0000000000000000</ogr:top>
|
||||
<ogr:right>5.5000000000000000</ogr:right>
|
||||
<ogr:bottom>2.0000000000000000</ogr:bottom>
|
||||
<ogr:id>6</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.6">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0.5,1.0 3.0,2.5 5.5,1.0 3.0,-0.5 0.5,1.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>0.5000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>5.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>7</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.7">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0.5,-1.5 3,0 5.5,-1.5 3,-3 0.5,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>0.5000000000000000</ogr:left>
|
||||
<ogr:top>0.0000000000000000</ogr:top>
|
||||
<ogr:right>5.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-3.0000000000000000</ogr:bottom>
|
||||
<ogr:id>8</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.8">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0.5,-4.0 3.0,-2.5 5.5,-4.0 3.0,-5.5 0.5,-4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>0.5000000000000000</ogr:left>
|
||||
<ogr:top>-2.5000000000000000</ogr:top>
|
||||
<ogr:right>5.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-5.5000000000000000</ogr:bottom>
|
||||
<ogr:id>9</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.9">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0.5,-6.5 3,-5 5.5,-6.5 3,-8 0.5,-6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>0.5000000000000000</ogr:left>
|
||||
<ogr:top>-5.0000000000000000</ogr:top>
|
||||
<ogr:right>5.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-8.0000000000000000</ogr:bottom>
|
||||
<ogr:id>10</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.10">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,5 4.5,6.5 7,5 4.5,3.5 2,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>11</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.11">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2.0,2.5 4.5,4.0 7.0,2.5 4.5,1.0 2.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>4.0000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.0000000000000000</ogr:bottom>
|
||||
<ogr:id>12</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.12">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,0 4.5,1.5 7,0 4.5,-1.5 2,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>1.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>13</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.13">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2.0,-2.5 4.5,-1.0 7.0,-2.5 4.5,-4.0 2.0,-2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.0000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>14</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.14">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2,-5 4.5,-3.5 7,-5 4.5,-6.5 2,-5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>15</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.15">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.5,3.5 6,5 8.5,3.5 6,2 3.5,3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>3.5000000000000000</ogr:left>
|
||||
<ogr:top>5.0000000000000000</ogr:top>
|
||||
<ogr:right>8.5000000000000000</ogr:right>
|
||||
<ogr:bottom>2.0000000000000000</ogr:bottom>
|
||||
<ogr:id>16</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.16">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.5,1.0 6.0,2.5 8.5,1.0 6.0,-0.5 3.5,1.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>3.5000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>8.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>17</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.17">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.5,-1.5 6,0 8.5,-1.5 6,-3 3.5,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>3.5000000000000000</ogr:left>
|
||||
<ogr:top>0.0000000000000000</ogr:top>
|
||||
<ogr:right>8.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-3.0000000000000000</ogr:bottom>
|
||||
<ogr:id>18</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.18">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.5,-4.0 6.0,-2.5 8.5,-4.0 6.0,-5.5 3.5,-4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>3.5000000000000000</ogr:left>
|
||||
<ogr:top>-2.5000000000000000</ogr:top>
|
||||
<ogr:right>8.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-5.5000000000000000</ogr:bottom>
|
||||
<ogr:id>19</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.19">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.5,-6.5 6,-5 8.5,-6.5 6,-8 3.5,-6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>3.5000000000000000</ogr:left>
|
||||
<ogr:top>-5.0000000000000000</ogr:top>
|
||||
<ogr:right>8.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-8.0000000000000000</ogr:bottom>
|
||||
<ogr:id>20</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.20">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,5 7.5,6.5 10,5 7.5,3.5 5,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>21</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.21">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.0,2.5 7.5,4.0 10.0,2.5 7.5,1.0 5.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>4.0000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.0000000000000000</ogr:bottom>
|
||||
<ogr:id>22</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.22">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,0 7.5,1.5 10,0 7.5,-1.5 5,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>1.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>23</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.23">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.0,-2.5 7.5,-1.0 10.0,-2.5 7.5,-4.0 5.0,-2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.0000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>24</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.24">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,-5 7.5,-3.5 10,-5 7.5,-6.5 5,-5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>25</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.25">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6.5,3.5 9,5 11.5,3.5 9,2 6.5,3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>6.5000000000000000</ogr:left>
|
||||
<ogr:top>5.0000000000000000</ogr:top>
|
||||
<ogr:right>11.5000000000000000</ogr:right>
|
||||
<ogr:bottom>2.0000000000000000</ogr:bottom>
|
||||
<ogr:id>26</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.26">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6.5,1.0 9.0,2.5 11.5,1.0 9.0,-0.5 6.5,1.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>6.5000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>11.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>27</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.27">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6.5,-1.5 9,0 11.5,-1.5 9,-3 6.5,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>6.5000000000000000</ogr:left>
|
||||
<ogr:top>0.0000000000000000</ogr:top>
|
||||
<ogr:right>11.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-3.0000000000000000</ogr:bottom>
|
||||
<ogr:id>28</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.28">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6.5,-4.0 9.0,-2.5 11.5,-4.0 9.0,-5.5 6.5,-4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>6.5000000000000000</ogr:left>
|
||||
<ogr:top>-2.5000000000000000</ogr:top>
|
||||
<ogr:right>11.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-5.5000000000000000</ogr:bottom>
|
||||
<ogr:id>29</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.29">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6.5,-6.5 9,-5 11.5,-6.5 9,-8 6.5,-6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>6.5000000000000000</ogr:left>
|
||||
<ogr:top>-5.0000000000000000</ogr:top>
|
||||
<ogr:right>11.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-8.0000000000000000</ogr:bottom>
|
||||
<ogr:id>30</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.30">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8,5 10.5,6.5 13,5 10.5,3.5 8,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>31</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.31">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.0,2.5 10.5,4.0 13.0,2.5 10.5,1.0 8.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>4.0000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.0000000000000000</ogr:bottom>
|
||||
<ogr:id>32</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.32">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8,0 10.5,1.5 13,0 10.5,-1.5 8,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>1.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>33</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.33">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.0,-2.5 10.5,-1.0 13.0,-2.5 10.5,-4.0 8.0,-2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.0000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>34</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.34">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8,-5 10.5,-3.5 13,-5 10.5,-6.5 8,-5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>35</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.35">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>9.5,3.5 12,5 14.5,3.5 12,2 9.5,3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>9.5000000000000000</ogr:left>
|
||||
<ogr:top>5.0000000000000000</ogr:top>
|
||||
<ogr:right>14.5000000000000000</ogr:right>
|
||||
<ogr:bottom>2.0000000000000000</ogr:bottom>
|
||||
<ogr:id>36</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.36">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>9.5,1.0 12.0,2.5 14.5,1.0 12.0,-0.5 9.5,1.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>9.5000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>14.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>37</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.37">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>9.5,-1.5 12,0 14.5,-1.5 12,-3 9.5,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>9.5000000000000000</ogr:left>
|
||||
<ogr:top>0.0000000000000000</ogr:top>
|
||||
<ogr:right>14.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-3.0000000000000000</ogr:bottom>
|
||||
<ogr:id>38</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.38">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>9.5,-4.0 12.0,-2.5 14.5,-4.0 12.0,-5.5 9.5,-4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>9.5000000000000000</ogr:left>
|
||||
<ogr:top>-2.5000000000000000</ogr:top>
|
||||
<ogr:right>14.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-5.5000000000000000</ogr:bottom>
|
||||
<ogr:id>39</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.39">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>9.5,-6.5 12,-5 14.5,-6.5 12,-8 9.5,-6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>9.5000000000000000</ogr:left>
|
||||
<ogr:top>-5.0000000000000000</ogr:top>
|
||||
<ogr:right>14.5000000000000000</ogr:right>
|
||||
<ogr:bottom>-8.0000000000000000</ogr:bottom>
|
||||
<ogr:id>40</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.40">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11,5 13.5,6.5 16,5 13.5,3.5 11,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>41</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.41">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11.0,2.5 13.5,4.0 16.0,2.5 13.5,1.0 11.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>4.0000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.0000000000000000</ogr:bottom>
|
||||
<ogr:id>42</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.42">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11,0 13.5,1.5 16,0 13.5,-1.5 11,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>1.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>43</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.43">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11.0,-2.5 13.5,-1.0 16.0,-2.5 13.5,-4.0 11.0,-2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.0000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>44</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_diamond_overlay fid="grid_diamond_overlay.44">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11,-5 13.5,-3.5 16,-5 13.5,-6.5 11,-5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>45</ogr:id>
|
||||
</ogr:grid_diamond_overlay>
|
||||
</gml:featureMember>
|
||||
</ogr:FeatureCollection>
|
41
python/plugins/processing/tests/testdata/expected/grid_hexagon_overlay.gfs
vendored
Normal file
41
python/plugins/processing/tests/testdata/expected/grid_hexagon_overlay.gfs
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
<GMLFeatureClassList>
|
||||
<GMLFeatureClass>
|
||||
<Name>grid_hexagon_overlay</Name>
|
||||
<ElementPath>grid_hexagon_overlay</ElementPath>
|
||||
<!--POLYGON-->
|
||||
<GeometryType>3</GeometryType>
|
||||
<SRSName>EPSG:4326</SRSName>
|
||||
<DatasetSpecificInfo>
|
||||
<FeatureCount>18</FeatureCount>
|
||||
<ExtentXMin>-1.00000</ExtentXMin>
|
||||
<ExtentXMax>16.42414</ExtentXMax>
|
||||
<ExtentYMin>-9.00000</ExtentYMin>
|
||||
<ExtentYMax>6.50000</ExtentYMax>
|
||||
</DatasetSpecificInfo>
|
||||
<PropertyDefn>
|
||||
<Name>left</Name>
|
||||
<ElementPath>left</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>top</Name>
|
||||
<ElementPath>top</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>right</Name>
|
||||
<ElementPath>right</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>bottom</Name>
|
||||
<ElementPath>bottom</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>id</Name>
|
||||
<ElementPath>id</ElementPath>
|
||||
<Type>Integer</Type>
|
||||
</PropertyDefn>
|
||||
</GMLFeatureClass>
|
||||
</GMLFeatureClassList>
|
194
python/plugins/processing/tests/testdata/expected/grid_hexagon_overlay.gml
vendored
Normal file
194
python/plugins/processing/tests/testdata/expected/grid_hexagon_overlay.gml
vendored
Normal file
@ -0,0 +1,194 @@
|
||||
<?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>-9</gml:Y></gml:coord>
|
||||
<gml:coord><gml:X>16.42413778650723</gml:X><gml:Y>6.5</gml:Y></gml:coord>
|
||||
</gml:Box>
|
||||
</gml:boundedBy>
|
||||
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.0">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,4 0.443375672974065,6.5 3.33012701892219,6.5 4.77350269189626,4.0 3.33012701892219,1.5 0.443375672974065,1.5 -1,4</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>4.7735026918962600</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>1</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.1">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,0 0.443375672974065,2.5 3.33012701892219,2.5 4.77350269189626,0.0 3.33012701892219,-2.5 0.443375672974065,-2.5 -1,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>4.7735026918962600</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>2</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.2">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-4 0.443375672974065,-1.5 3.33012701892219,-1.5 4.77350269189626,-4.0 3.33012701892219,-6.5 0.443375672974065,-6.5 -1,-4</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>4.7735026918962600</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>3</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.3">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1.33012701892219,1.5 2.77350269189626,4.0 5.66025403784439,4.0 7.10362971081845,1.5 5.66025403784439,-1.0 2.77350269189626,-1.0 1.33012701892219,1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>1.3301270189221945</ogr:left>
|
||||
<ogr:top>4.0000000000000000</ogr:top>
|
||||
<ogr:right>7.1036297108184545</ogr:right>
|
||||
<ogr:bottom>-1.0000000000000000</ogr:bottom>
|
||||
<ogr:id>4</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.4">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1.33012701892219,-2.5 2.77350269189626,0.0 5.66025403784439,0.0 7.10362971081845,-2.5 5.66025403784439,-5.0 2.77350269189626,-5.0 1.33012701892219,-2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>1.3301270189221945</ogr:left>
|
||||
<ogr:top>0.0000000000000000</ogr:top>
|
||||
<ogr:right>7.1036297108184545</ogr:right>
|
||||
<ogr:bottom>-5.0000000000000000</ogr:bottom>
|
||||
<ogr:id>5</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.5">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1.33012701892219,-6.5 2.77350269189626,-4.0 5.66025403784439,-4.0 7.10362971081845,-6.5 5.66025403784439,-9.0 2.77350269189626,-9.0 1.33012701892219,-6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>1.3301270189221945</ogr:left>
|
||||
<ogr:top>-4.0000000000000000</ogr:top>
|
||||
<ogr:right>7.1036297108184545</ogr:right>
|
||||
<ogr:bottom>-9.0000000000000000</ogr:bottom>
|
||||
<ogr:id>6</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.6">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.66025403784439,4.0 5.10362971081845,6.5 7.99038105676658,6.5 9.43375672974065,4.0 7.99038105676658,1.5 5.10362971081845,1.5 3.66025403784439,4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>3.6602540378443891</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>9.4337567297406490</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>7</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.7">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.66025403784439,0.0 5.10362971081845,2.5 7.99038105676658,2.5 9.43375672974065,0.0 7.99038105676658,-2.5 5.10362971081845,-2.5 3.66025403784439,0.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>3.6602540378443891</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>9.4337567297406490</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>8</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.8">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.66025403784439,-4.0 5.10362971081845,-1.5 7.99038105676658,-1.5 9.43375672974065,-4.0 7.99038105676658,-6.5 5.10362971081845,-6.5 3.66025403784439,-4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>3.6602540378443891</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>9.4337567297406490</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>9</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.9">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.99038105676658,1.5 7.43375672974065,4.0 10.3205080756888,4.0 11.7638837486628,1.5 10.3205080756888,-1.0 7.43375672974065,-1.0 5.99038105676658,1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.9903810567665836</ogr:left>
|
||||
<ogr:top>4.0000000000000000</ogr:top>
|
||||
<ogr:right>11.7638837486628436</ogr:right>
|
||||
<ogr:bottom>-1.0000000000000000</ogr:bottom>
|
||||
<ogr:id>10</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.10">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.99038105676658,-2.5 7.43375672974065,0.0 10.3205080756888,0.0 11.7638837486628,-2.5 10.3205080756888,-5.0 7.43375672974065,-5.0 5.99038105676658,-2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.9903810567665836</ogr:left>
|
||||
<ogr:top>0.0000000000000000</ogr:top>
|
||||
<ogr:right>11.7638837486628436</ogr:right>
|
||||
<ogr:bottom>-5.0000000000000000</ogr:bottom>
|
||||
<ogr:id>11</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.11">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.99038105676658,-6.5 7.43375672974065,-4.0 10.3205080756888,-4.0 11.7638837486628,-6.5 10.3205080756888,-9.0 7.43375672974065,-9.0 5.99038105676658,-6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.9903810567665836</ogr:left>
|
||||
<ogr:top>-4.0000000000000000</ogr:top>
|
||||
<ogr:right>11.7638837486628436</ogr:right>
|
||||
<ogr:bottom>-9.0000000000000000</ogr:bottom>
|
||||
<ogr:id>12</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.12">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.32050807568878,4.0 9.76388374866284,6.5 12.650635094611,6.5 14.094010767585,4.0 12.650635094611,1.5 9.76388374866284,1.5 8.32050807568878,4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.3205080756887781</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>14.0940107675850381</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>13</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.13">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.32050807568878,0.0 9.76388374866284,2.5 12.650635094611,2.5 14.094010767585,0.0 12.650635094611,-2.5 9.76388374866284,-2.5 8.32050807568878,0.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.3205080756887781</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>14.0940107675850381</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>14</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.14">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.32050807568878,-4.0 9.76388374866284,-1.5 12.650635094611,-1.5 14.094010767585,-4.0 12.650635094611,-6.5 9.76388374866284,-6.5 8.32050807568878,-4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.3205080756887781</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>14.0940107675850381</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>15</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.15">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>10.650635094611,1.5 12.094010767585,4.0 14.9807621135332,4.0 16.4241377865072,1.5 14.9807621135332,-1.0 12.094010767585,-1.0 10.650635094611,1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>10.6506350946109727</ogr:left>
|
||||
<ogr:top>4.0000000000000000</ogr:top>
|
||||
<ogr:right>16.4241377865072309</ogr:right>
|
||||
<ogr:bottom>-1.0000000000000000</ogr:bottom>
|
||||
<ogr:id>16</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.16">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>10.650635094611,-2.5 12.094010767585,0.0 14.9807621135332,0.0 16.4241377865072,-2.5 14.9807621135332,-5.0 12.094010767585,-5.0 10.650635094611,-2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>10.6506350946109727</ogr:left>
|
||||
<ogr:top>0.0000000000000000</ogr:top>
|
||||
<ogr:right>16.4241377865072309</ogr:right>
|
||||
<ogr:bottom>-5.0000000000000000</ogr:bottom>
|
||||
<ogr:id>17</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_hexagon_overlay fid="grid_hexagon_overlay.17">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>10.650635094611,-6.5 12.094010767585,-4.0 14.9807621135332,-4.0 16.4241377865072,-6.5 14.9807621135332,-9.0 12.094010767585,-9.0 10.650635094611,-6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>10.6506350946109727</ogr:left>
|
||||
<ogr:top>-4.0000000000000000</ogr:top>
|
||||
<ogr:right>16.4241377865072309</ogr:right>
|
||||
<ogr:bottom>-9.0000000000000000</ogr:bottom>
|
||||
<ogr:id>18</ogr:id>
|
||||
</ogr:grid_hexagon_overlay>
|
||||
</gml:featureMember>
|
||||
</ogr:FeatureCollection>
|
46
python/plugins/processing/tests/testdata/expected/grid_lines_overlay.gfs
vendored
Normal file
46
python/plugins/processing/tests/testdata/expected/grid_lines_overlay.gfs
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
<GMLFeatureClassList>
|
||||
<GMLFeatureClass>
|
||||
<Name>grid_lines_overlay</Name>
|
||||
<ElementPath>grid_lines_overlay</ElementPath>
|
||||
<!--LINESTRING-->
|
||||
<GeometryType>2</GeometryType>
|
||||
<SRSName>EPSG:4326</SRSName>
|
||||
<DatasetSpecificInfo>
|
||||
<FeatureCount>12</FeatureCount>
|
||||
<ExtentXMin>-1.00000</ExtentXMin>
|
||||
<ExtentXMax>11.20000</ExtentXMax>
|
||||
<ExtentYMin>-4.00000</ExtentYMin>
|
||||
<ExtentYMax>6.50000</ExtentYMax>
|
||||
</DatasetSpecificInfo>
|
||||
<PropertyDefn>
|
||||
<Name>left</Name>
|
||||
<ElementPath>left</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>top</Name>
|
||||
<ElementPath>top</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>right</Name>
|
||||
<ElementPath>right</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>bottom</Name>
|
||||
<ElementPath>bottom</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>id</Name>
|
||||
<ElementPath>id</ElementPath>
|
||||
<Type>Integer</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>coord</Name>
|
||||
<ElementPath>coord</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
</GMLFeatureClass>
|
||||
</GMLFeatureClassList>
|
146
python/plugins/processing/tests/testdata/expected/grid_lines_overlay.gml
vendored
Normal file
146
python/plugins/processing/tests/testdata/expected/grid_lines_overlay.gml
vendored
Normal file
@ -0,0 +1,146 @@
|
||||
<?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>-4</gml:Y></gml:coord>
|
||||
<gml:coord><gml:X>11.2</gml:X><gml:Y>6.5</gml:Y></gml:coord>
|
||||
</gml:Box>
|
||||
</gml:boundedBy>
|
||||
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.0">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1.0,6.5 11.2,6.5</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>11.1999999999999993</ogr:right>
|
||||
<ogr:bottom>6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>1</ogr:id>
|
||||
<ogr:coord>6.500000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.1">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1.0,4.5 11.2,4.5</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>4.5000000000000000</ogr:top>
|
||||
<ogr:right>11.1999999999999993</ogr:right>
|
||||
<ogr:bottom>4.5000000000000000</ogr:bottom>
|
||||
<ogr:id>2</ogr:id>
|
||||
<ogr:coord>4.500000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.2">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1.0,3.5 11.2,3.5</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>3.5000000000000000</ogr:top>
|
||||
<ogr:right>11.1999999999999993</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>3</ogr:id>
|
||||
<ogr:coord>3.500000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.3">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1.0,1.5 11.2,1.5</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>1.5000000000000000</ogr:top>
|
||||
<ogr:right>11.1999999999999993</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>4</ogr:id>
|
||||
<ogr:coord>1.500000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.4">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1.0,0.5 11.2,0.5</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>0.5000000000000000</ogr:top>
|
||||
<ogr:right>11.1999999999999993</ogr:right>
|
||||
<ogr:bottom>0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>5</ogr:id>
|
||||
<ogr:coord>0.500000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.5">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1.0,-1.5 11.2,-1.5</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>11.1999999999999993</ogr:right>
|
||||
<ogr:bottom>-1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>6</ogr:id>
|
||||
<ogr:coord>-1.500000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.6">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1.0,-2.5 11.2,-2.5</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>-2.5000000000000000</ogr:top>
|
||||
<ogr:right>11.1999999999999993</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>7</ogr:id>
|
||||
<ogr:coord>-2.500000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.7">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1.0,6.5 -1,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>-1.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>8</ogr:id>
|
||||
<ogr:coord>-1.000000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.8">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>2.0,6.5 2,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>2.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>9</ogr:id>
|
||||
<ogr:coord>2.000000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.9">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>4.0,6.5 4,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>4.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>10</ogr:id>
|
||||
<ogr:coord>4.000000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.10">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>7.0,6.5 7,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>7.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>11</ogr:id>
|
||||
<ogr:coord>7.000000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_lines_overlay fid="grid_lines_overlay.11">
|
||||
<ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>9.0,6.5 9,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
|
||||
<ogr:left>9.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>9.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.0000000000000000</ogr:bottom>
|
||||
<ogr:id>12</ogr:id>
|
||||
<ogr:coord>9.000000000000000</ogr:coord>
|
||||
</ogr:grid_lines_overlay>
|
||||
</gml:featureMember>
|
||||
</ogr:FeatureCollection>
|
41
python/plugins/processing/tests/testdata/expected/grid_rectangle_overlay.gfs
vendored
Normal file
41
python/plugins/processing/tests/testdata/expected/grid_rectangle_overlay.gfs
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
<GMLFeatureClassList>
|
||||
<GMLFeatureClass>
|
||||
<Name>grid_rectangle_overlay</Name>
|
||||
<ElementPath>grid_rectangle_overlay</ElementPath>
|
||||
<!--POLYGON-->
|
||||
<GeometryType>3</GeometryType>
|
||||
<SRSName>EPSG:4326</SRSName>
|
||||
<DatasetSpecificInfo>
|
||||
<FeatureCount>30</FeatureCount>
|
||||
<ExtentXMin>-1.00000</ExtentXMin>
|
||||
<ExtentXMax>16.00000</ExtentXMax>
|
||||
<ExtentYMin>-6.50000</ExtentYMin>
|
||||
<ExtentYMax>6.50000</ExtentYMax>
|
||||
</DatasetSpecificInfo>
|
||||
<PropertyDefn>
|
||||
<Name>left</Name>
|
||||
<ElementPath>left</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>top</Name>
|
||||
<ElementPath>top</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>right</Name>
|
||||
<ElementPath>right</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>bottom</Name>
|
||||
<ElementPath>bottom</ElementPath>
|
||||
<Type>Real</Type>
|
||||
</PropertyDefn>
|
||||
<PropertyDefn>
|
||||
<Name>id</Name>
|
||||
<ElementPath>id</ElementPath>
|
||||
<Type>Integer</Type>
|
||||
</PropertyDefn>
|
||||
</GMLFeatureClass>
|
||||
</GMLFeatureClassList>
|
314
python/plugins/processing/tests/testdata/expected/grid_rectangle_overlay.gml
vendored
Normal file
314
python/plugins/processing/tests/testdata/expected/grid_rectangle_overlay.gml
vendored
Normal file
@ -0,0 +1,314 @@
|
||||
<?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>-6.5</gml:Y></gml:coord>
|
||||
<gml:coord><gml:X>16</gml:X><gml:Y>6.5</gml:Y></gml:coord>
|
||||
</gml:Box>
|
||||
</gml:boundedBy>
|
||||
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.0">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.0,6.5 4.0,6.5 4.0,3.5 -1.0,3.5 -1.0,6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>1</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.1">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.0,4.5 4.0,4.5 4.0,1.5 -1.0,1.5 -1.0,4.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>4.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>2</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.2">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.0,2.5 4.0,2.5 4.0,-0.5 -1.0,-0.5 -1.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>3</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.3">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.0,0.5 4.0,0.5 4.0,-2.5 -1.0,-2.5 -1.0,0.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>0.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>4</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.4">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.0,-1.5 4.0,-1.5 4.0,-4.5 -1.0,-4.5 -1.0,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.5000000000000000</ogr:bottom>
|
||||
<ogr:id>5</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.5">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.0,-3.5 4.0,-3.5 4.0,-6.5 -1.0,-6.5 -1.0,-3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>-1.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>4.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>6</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.6">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2.0,6.5 7.0,6.5 7.0,3.5 2.0,3.5 2.0,6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>7</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.7">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2.0,4.5 7.0,4.5 7.0,1.5 2.0,1.5 2.0,4.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>4.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>8</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.8">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2.0,2.5 7.0,2.5 7.0,-0.5 2.0,-0.5 2.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>9</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.9">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2.0,0.5 7.0,0.5 7.0,-2.5 2.0,-2.5 2.0,0.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>0.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>10</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.10">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2.0,-1.5 7.0,-1.5 7.0,-4.5 2.0,-4.5 2.0,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.5000000000000000</ogr:bottom>
|
||||
<ogr:id>11</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.11">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>2.0,-3.5 7.0,-3.5 7.0,-6.5 2.0,-6.5 2.0,-3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>2.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>7.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>12</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.12">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.0,6.5 10.0,6.5 10.0,3.5 5.0,3.5 5.0,6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>13</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.13">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.0,4.5 10.0,4.5 10.0,1.5 5.0,1.5 5.0,4.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>4.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>14</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.14">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.0,2.5 10.0,2.5 10.0,-0.5 5.0,-0.5 5.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>15</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.15">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.0,0.5 10.0,0.5 10.0,-2.5 5.0,-2.5 5.0,0.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>0.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>16</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.16">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.0,-1.5 10.0,-1.5 10.0,-4.5 5.0,-4.5 5.0,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.5000000000000000</ogr:bottom>
|
||||
<ogr:id>17</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.17">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.0,-3.5 10.0,-3.5 10.0,-6.5 5.0,-6.5 5.0,-3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>5.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>10.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>18</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.18">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.0,6.5 13.0,6.5 13.0,3.5 8.0,3.5 8.0,6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>19</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.19">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.0,4.5 13.0,4.5 13.0,1.5 8.0,1.5 8.0,4.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>4.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>20</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.20">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.0,2.5 13.0,2.5 13.0,-0.5 8.0,-0.5 8.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>21</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.21">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.0,0.5 13.0,0.5 13.0,-2.5 8.0,-2.5 8.0,0.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>0.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>22</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.22">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.0,-1.5 13.0,-1.5 13.0,-4.5 8.0,-4.5 8.0,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.5000000000000000</ogr:bottom>
|
||||
<ogr:id>23</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.23">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>8.0,-3.5 13.0,-3.5 13.0,-6.5 8.0,-6.5 8.0,-3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>8.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>13.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>24</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.24">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11.0,6.5 16.0,6.5 16.0,3.5 11.0,3.5 11.0,6.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>6.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>3.5000000000000000</ogr:bottom>
|
||||
<ogr:id>25</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.25">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11.0,4.5 16.0,4.5 16.0,1.5 11.0,1.5 11.0,4.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>4.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
||||
<ogr:id>26</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.26">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11.0,2.5 16.0,2.5 16.0,-0.5 11.0,-0.5 11.0,2.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>2.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-0.5000000000000000</ogr:bottom>
|
||||
<ogr:id>27</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.27">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11.0,0.5 16.0,0.5 16.0,-2.5 11.0,-2.5 11.0,0.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>0.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-2.5000000000000000</ogr:bottom>
|
||||
<ogr:id>28</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.28">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11.0,-1.5 16.0,-1.5 16.0,-4.5 11.0,-4.5 11.0,-1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>-1.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-4.5000000000000000</ogr:bottom>
|
||||
<ogr:id>29</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<ogr:grid_rectangle_overlay fid="grid_rectangle_overlay.29">
|
||||
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>11.0,-3.5 16.0,-3.5 16.0,-6.5 11.0,-6.5 11.0,-3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||
<ogr:left>11.0000000000000000</ogr:left>
|
||||
<ogr:top>-3.5000000000000000</ogr:top>
|
||||
<ogr:right>16.0000000000000000</ogr:right>
|
||||
<ogr:bottom>-6.5000000000000000</ogr:bottom>
|
||||
<ogr:id>30</ogr:id>
|
||||
</ogr:grid_rectangle_overlay>
|
||||
</gml:featureMember>
|
||||
</ogr:FeatureCollection>
|
@ -1763,6 +1763,74 @@ tests:
|
||||
geometry:
|
||||
precision: 7
|
||||
|
||||
- algorithm: qgis:creategridlines
|
||||
name: Create grid (lines with overlay)
|
||||
params:
|
||||
CRS: EPSG:4326
|
||||
EXTENT: -1,11.2,-4,6.5
|
||||
HOVERLAY: 2.0
|
||||
HSPACING: 5.0
|
||||
VOVERLAY: 1.0
|
||||
VSPACING: 3.0
|
||||
results:
|
||||
OUTPUT:
|
||||
name: expected/grid_lines_overlay.gml
|
||||
type: vector
|
||||
|
||||
- algorithm: qgis:creategridpolygon
|
||||
name: Create grid (rectangle with overlay)
|
||||
params:
|
||||
CRS: EPSG:4326
|
||||
EXTENT: -1,11.2,-4,6.5
|
||||
HOVERLAY: 2.0
|
||||
HSPACING: 5.0
|
||||
TYPE: '0'
|
||||
VOVERLAY: 1.0
|
||||
VSPACING: 3.0
|
||||
results:
|
||||
OUTPUT:
|
||||
name: expected/grid_rectangle_overlay.gml
|
||||
type: vector
|
||||
compare:
|
||||
geometry:
|
||||
precision: 7
|
||||
|
||||
- algorithm: qgis:creategridpolygon
|
||||
name: Create grid (diamond with overlay)
|
||||
params:
|
||||
CRS: EPSG:4326
|
||||
EXTENT: -1,11.2,-4,6.5
|
||||
HOVERLAY: 2.0
|
||||
HSPACING: 5.0
|
||||
TYPE: '1'
|
||||
VOVERLAY: 1.0
|
||||
VSPACING: 3.0
|
||||
results:
|
||||
OUTPUT:
|
||||
name: expected/grid_diamond_overlay.gml
|
||||
type: vector
|
||||
compare:
|
||||
geometry:
|
||||
precision: 7
|
||||
|
||||
- algorithm: qgis:creategridpolygon
|
||||
name: Create grid (hexagon with overlay)
|
||||
params:
|
||||
CRS: EPSG:4326
|
||||
EXTENT: -1,11.2,-4,6.5
|
||||
HOVERLAY: 2.0
|
||||
HSPACING: 5.0
|
||||
TYPE: '2'
|
||||
VOVERLAY: 1.0
|
||||
VSPACING: 5.0
|
||||
results:
|
||||
OUTPUT:
|
||||
name: expected/grid_hexagon_overlay.gml
|
||||
type: vector
|
||||
compare:
|
||||
geometry:
|
||||
precision: 7
|
||||
|
||||
- algorithm: qgis:deleteholes
|
||||
name: Delete holes (no min)
|
||||
params:
|
||||
|
Loading…
x
Reference in New Issue
Block a user