mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Allows rotation of features by a set angle. The rotation can occur around a preset point or the individual feature's centroids.
59 lines
4.1 KiB
XML
59 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ogr:FeatureCollection
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://ogr.maptools.org/ rotate_around_centroid.xsd"
|
|
xmlns:ogr="http://ogr.maptools.org/"
|
|
xmlns:gml="http://www.opengis.net/gml">
|
|
<gml:boundedBy>
|
|
<gml:Box>
|
|
<gml:coord><gml:X>-1.739047663012093</gml:X><gml:Y>-3.657852097554699</gml:Y></gml:coord>
|
|
<gml:coord><gml:X>10.6578520975547</gml:X><gml:Y>6.164463024388675</gml:Y></gml:coord>
|
|
</gml:Box>
|
|
</gml:boundedBy>
|
|
|
|
<gml:featureMember>
|
|
<ogr:rotate_around_centroid fid="polys.0">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-1.73904766301209,-0.102859347390987 -0.048574616049295,3.52237180075561 3.5766565320973,1.83189875379281 3.15403827035661,0.925590966756165 2.24773048331995,1.34820922849686 0.979875698097857,-1.37071413261309 -1.73904766301209,-0.102859347390987</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:name>aaaaa</ogr:name>
|
|
<ogr:intval>33</ogr:intval>
|
|
<ogr:floatval>44.123456</ogr:floatval>
|
|
</ogr:rotate_around_centroid>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:rotate_around_centroid fid="polys.1">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>5.28174550782713,4.9375385246911 5.76543503312308,3.60861247591375 3.95281945904978,4.45384899939515 5.28174550782713,4.9375385246911</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:name>Aaaaa</ogr:name>
|
|
<ogr:intval>-33</ogr:intval>
|
|
<ogr:floatval>0</ogr:floatval>
|
|
</ogr:rotate_around_centroid>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:rotate_around_centroid fid="polys.2">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1.83553697561133,5.25815523735202 2.25815523735203,6.16446302438867 3.16446302438868,5.74184476264798 2.74184476264798,4.83553697561132 1.83553697561133,5.25815523735202</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:name>bbaaa</ogr:name>
|
|
<ogr:floatval>0.123</ogr:floatval>
|
|
</ogr:rotate_around_centroid>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:rotate_around_centroid fid="polys.3">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>7.0326209494081,1.6578520975547 10.6578520975547,-0.032620949408099 8.9673790505919,-3.6578520975547 5.3421479024453,-1.9673790505919 7.0326209494081,1.6578520975547</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>7.51631047470405,0.328926048777349 6.67107395122265,-1.48368952529595 8.48368952529595,-2.32892604877735 9.32892604877735,-0.51631047470405 7.51631047470405,0.328926048777349</gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:name>ASDF</ogr:name>
|
|
<ogr:intval>0</ogr:intval>
|
|
</ogr:rotate_around_centroid>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:rotate_around_centroid fid="polys.4">
|
|
<ogr:intval>120</ogr:intval>
|
|
<ogr:floatval>-100291.43213</ogr:floatval>
|
|
</ogr:rotate_around_centroid>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:rotate_around_centroid fid="polys.5">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>4.03876313258057,2.24877608622643 6.33506823194982,0.074613513967679 4.64459518498703,-3.55061763417892 1.86460056032183,-0.047529013142823 3.13245534554392,2.67139434796713 4.03876313258057,2.24877608622643</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:name>elim</ogr:name>
|
|
<ogr:intval>2</ogr:intval>
|
|
<ogr:floatval>3.33</ogr:floatval>
|
|
</ogr:rotate_around_centroid>
|
|
</gml:featureMember>
|
|
</ogr:FeatureCollection>
|