mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -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
		
			
				
	
	
		
			49 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			49 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>-5</gml:Y></gml:coord>
 | 
						|
      <gml:coord><gml:X>11.34678899082569</gml:X><gml:Y>5.288990825688074</gml:Y></gml:coord>
 | 
						|
    </gml:Box>
 | 
						|
  </gml:boundedBy>
 | 
						|
                                                                                                                              
 | 
						|
  <gml:featureMember>
 | 
						|
    <ogr:snap_lines fid="lines.0">
 | 
						|
      <ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>5.965321100917431,2.300550458715596 8.653211009174312,1.606972477064221 11.346788990825686,5.288990825688074</gml:coordinates></gml:LineString></ogr:geometryProperty>
 | 
						|
    </ogr:snap_lines>
 | 
						|
  </gml:featureMember>
 | 
						|
  <gml:featureMember>
 | 
						|
    <ogr:snap_lines fid="lines.1">
 | 
						|
      <ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>-1,-1 1,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
 | 
						|
    </ogr:snap_lines>
 | 
						|
  </gml:featureMember>
 | 
						|
  <gml:featureMember>
 | 
						|
    <ogr:snap_lines fid="lines.2">
 | 
						|
      <ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>2,0 1.826605504587156,2.138715596330275 2.211493443352086,2.093215161348839 3.27743119266055,1.815045871559633</gml:coordinates></gml:LineString></ogr:geometryProperty>
 | 
						|
    </ogr:snap_lines>
 | 
						|
  </gml:featureMember>
 | 
						|
  <gml:featureMember>
 | 
						|
    <ogr:snap_lines fid="lines.3">
 | 
						|
      <ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>3,-3 3,-5</gml:coordinates></gml:LineString></ogr:geometryProperty>
 | 
						|
    </ogr:snap_lines>
 | 
						|
  </gml:featureMember>
 | 
						|
  <gml:featureMember>
 | 
						|
    <ogr:snap_lines fid="lines.4">
 | 
						|
      <ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>7,-3 10,-3</gml:coordinates></gml:LineString></ogr:geometryProperty>
 | 
						|
    </ogr:snap_lines>
 | 
						|
  </gml:featureMember>
 | 
						|
  <gml:featureMember>
 | 
						|
    <ogr:snap_lines fid="lines.5">
 | 
						|
      <ogr:geometryProperty><gml:LineString srsName="EPSG:4326"><gml:coordinates>5.826605504587156,-2.861284403669725 7.751422018348623,-1.641605504587157 9.092339449541285,0.323532110091743 10.208073394495413,0.849724770642202</gml:coordinates></gml:LineString></ogr:geometryProperty>
 | 
						|
    </ogr:snap_lines>
 | 
						|
  </gml:featureMember>
 | 
						|
  <gml:featureMember>
 | 
						|
    <ogr:snap_lines fid="lines.6">
 | 
						|
    </ogr:snap_lines>
 | 
						|
  </gml:featureMember>
 | 
						|
</ogr:FeatureCollection>
 |