mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Port the Geometry Snapper plugin across to the analysis lib, and expose to python bindings Add a new algorithm which performs the snapping to layers
44 lines
2.5 KiB
XML
44 lines
2.5 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>-3</gml:Y></gml:coord>
|
|
<gml:coord><gml:X>10</gml:X><gml:Y>5</gml:Y></gml:coord>
|
|
</gml:Box>
|
|
</gml:boundedBy>
|
|
|
|
<gml:featureMember>
|
|
<ogr:snap_polys fid="polys.0">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1,-1 -0.784492588369441,2.795267958950969 2.849144811858609,2.773717217787913 2.978449258836944,2.0 2.300050170012289,2.312229761192763 1.730615735461802,2.183181299885975 1.804771291422702,1.306921584337844 1.670061352901153,0.930982619199196 1.754632529218785,0.447776631639586 2,-1 -1,-1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:name>aaaaa</ogr:name>
|
|
<ogr:intval>33</ogr:intval>
|
|
<ogr:floatval>44.123455999999997</ogr:floatval>
|
|
</ogr:snap_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:snap_polys fid="polys.1">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5,5 6,4 4,4 5,5</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:name>Aaaaa</ogr:name>
|
|
<ogr:intval>-33</ogr:intval>
|
|
<ogr:floatval>0.000000000000000</ogr:floatval>
|
|
</ogr:snap_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:snap_polys fid="polys.3">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>6,1 10,1 10,-3 6,-3 6,1</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>7.431014823261117,-0.247833523375142 7,-2 9.118529076396808,0.204732041049031 7.431014823261117,-0.247833523375142</gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:name>ASDF</ogr:name>
|
|
<ogr:intval>0</ogr:intval>
|
|
</ogr:snap_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:snap_polys fid="polys.4">
|
|
<ogr:intval>120</ogr:intval>
|
|
<ogr:floatval>-100291.432130000001052</ogr:floatval>
|
|
</ogr:snap_polys>
|
|
</gml:featureMember>
|
|
</ogr:FeatureCollection>
|