mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Condenses the duplicate grid algorithms into single algorithms (one for line, one for polygon), taking the best bits from both and adding tests
105 lines
6.6 KiB
XML
105 lines
6.6 KiB
XML
<?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>-11</gml:Y></gml:coord>
|
|
<gml:coord><gml:X>13.43375672974065</gml:X><gml:Y>6.5</gml:Y></gml:coord>
|
|
</gml:Box>
|
|
</gml:boundedBy>
|
|
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.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>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.1">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-1 0.443375672974065,1.5 3.33012701892219,1.5 4.77350269189626,-1.0 3.33012701892219,-3.5 0.443375672974065,-3.5 -1,-1</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>-3.5000000000000000</ogr:bottom>
|
|
<ogr:id>2</ogr:id>
|
|
</ogr:grid_hexagon>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.2">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-6 0.443375672974065,-3.5 3.33012701892219,-3.5 4.77350269189626,-6.0 3.33012701892219,-8.5 0.443375672974065,-8.5 -1,-6</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.7735026918962600</ogr:right>
|
|
<ogr:bottom>-8.5000000000000000</ogr:bottom>
|
|
<ogr:id>3</ogr:id>
|
|
</ogr:grid_hexagon>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.3">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.33012701892219,1.5 4.77350269189626,4.0 7.66025403784439,4.0 9.10362971081845,1.5 7.66025403784439,-1.0 4.77350269189626,-1.0 3.33012701892219,1.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:left>3.3301270189221945</ogr:left>
|
|
<ogr:top>4.0000000000000000</ogr:top>
|
|
<ogr:right>9.1036297108184545</ogr:right>
|
|
<ogr:bottom>-1.0000000000000000</ogr:bottom>
|
|
<ogr:id>4</ogr:id>
|
|
</ogr:grid_hexagon>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.4">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.33012701892219,-3.5 4.77350269189626,-1.0 7.66025403784439,-1.0 9.10362971081845,-3.5 7.66025403784439,-6.0 4.77350269189626,-6.0 3.33012701892219,-3.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:left>3.3301270189221945</ogr:left>
|
|
<ogr:top>-1.0000000000000000</ogr:top>
|
|
<ogr:right>9.1036297108184545</ogr:right>
|
|
<ogr:bottom>-6.0000000000000000</ogr:bottom>
|
|
<ogr:id>5</ogr:id>
|
|
</ogr:grid_hexagon>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.5">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.33012701892219,-8.5 4.77350269189626,-6.0 7.66025403784439,-6.0 9.10362971081845,-8.5 7.66025403784439,-11.0 4.77350269189626,-11.0 3.33012701892219,-8.5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:left>3.3301270189221945</ogr:left>
|
|
<ogr:top>-6.0000000000000000</ogr:top>
|
|
<ogr:right>9.1036297108184545</ogr:right>
|
|
<ogr:bottom>-11.0000000000000000</ogr:bottom>
|
|
<ogr:id>6</ogr:id>
|
|
</ogr:grid_hexagon>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.6">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>7.66025403784439,4.0 9.10362971081845,6.5 11.9903810567666,6.5 13.4337567297406,4.0 11.9903810567666,1.5 9.10362971081845,1.5 7.66025403784439,4.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:left>7.6602540378443891</ogr:left>
|
|
<ogr:top>6.5000000000000000</ogr:top>
|
|
<ogr:right>13.4337567297406490</ogr:right>
|
|
<ogr:bottom>1.5000000000000000</ogr:bottom>
|
|
<ogr:id>7</ogr:id>
|
|
</ogr:grid_hexagon>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.7">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>7.66025403784439,-1.0 9.10362971081845,1.5 11.9903810567666,1.5 13.4337567297406,-1.0 11.9903810567666,-3.5 9.10362971081845,-3.5 7.66025403784439,-1.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:left>7.6602540378443891</ogr:left>
|
|
<ogr:top>1.5000000000000000</ogr:top>
|
|
<ogr:right>13.4337567297406490</ogr:right>
|
|
<ogr:bottom>-3.5000000000000000</ogr:bottom>
|
|
<ogr:id>8</ogr:id>
|
|
</ogr:grid_hexagon>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:grid_hexagon fid="grid_hexagon.8">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>7.66025403784439,-6.0 9.10362971081845,-3.5 11.9903810567666,-3.5 13.4337567297406,-6.0 11.9903810567666,-8.5 9.10362971081845,-8.5 7.66025403784439,-6.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:left>7.6602540378443891</ogr:left>
|
|
<ogr:top>-3.5000000000000000</ogr:top>
|
|
<ogr:right>13.4337567297406490</ogr:right>
|
|
<ogr:bottom>-8.5000000000000000</ogr:bottom>
|
|
<ogr:id>9</ogr:id>
|
|
</ogr:grid_hexagon>
|
|
</gml:featureMember>
|
|
</ogr:FeatureCollection>
|