mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Adds a new QgsGeometry::orthagonalize method which tries to make angles in geometries either right angles or straight lines Also adds a processing algorithm exposing this feature.
39 lines
3.8 KiB
XML
39 lines
3.8 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>-0.7256871363573774</gml:X><gml:Y>-1.553346855983773</gml:Y></gml:coord>
|
|
<gml:coord><gml:X>0.923603171676194</gml:X><gml:Y>0.892</gml:Y></gml:coord>
|
|
</gml:Box>
|
|
</gml:boundedBy>
|
|
|
|
<gml:featureMember>
|
|
<ogr:orthagonal_polys fid="polys_to_orth.0">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-0.48158215010142,0.086166328600406 -0.198422114542599,0.066751829457284 -0.211825279251737,-0.128733024349837 0.591070649358435,-0.183782540726045 0.551967683831585,-0.75409838540479 -0.534088281509359,-0.679634367142093 -0.48158215010142,0.086166328600406</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>-0.266466849320251,-0.285441896123125 -0.278158782310973,-0.539523073523498 0.088773800722712,-0.556408034545474 0.094964270726191,-0.421880862195709 0.326599544077082,-0.432539902641404 0.332100997948332,-0.312985856306224 -0.266466849320251,-0.285441896123125</gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:intval>3</ogr:intval>
|
|
</ogr:orthagonal_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:orthagonal_polys fid="polys_to_orth.1">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-0.550304259634889,-1.553346855983773 -0.182150101419878,-0.95448275862069 -0.182150101419878,-0.95448275862069 0.186004056795132,-1.538620689655172 -0.550304259634889,-1.553346855983773</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:intval>1</ogr:intval>
|
|
</ogr:orthagonal_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:orthagonal_polys fid="polys_to_orth.2">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0.506859671768394,-1.376348884381339 0.349506988258821,-1.047663631223475 0.783347761187655,-0.839969464295238 0.923603171676194,-1.132941176470588 0.918075884883814,-1.385353630032711 0.506859671768394,-1.376348884381339</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:intval>2</ogr:intval>
|
|
</ogr:orthagonal_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:orthagonal_polys fid="polys_to_orth.3">
|
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-0.699,0.892 -0.725687136357377,0.384140562836995 -0.009002223260981,0.34648000752227 0.01768491457045,0.854339441983783 -0.699,0.892</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>-0.619341074030194,0.777531730269581 -0.634560418042409,0.561059234380694 -0.531187228159207,0.553791463940342 -0.534852581753804,0.501657302696924 -0.405738104746291,0.492579752926693 -0.386853385820888,0.761186398054952 -0.619341074030194,0.777531730269581</gml:coordinates></gml:LinearRing></gml:innerBoundaryIs><gml:innerBoundaryIs><gml:LinearRing><gml:coordinates>-0.322407491943678,0.506161817822407 -0.185010186453913,0.735157326972015 -0.046855871016547,0.428568298193201 -0.322407491943678,0.506161817822407</gml:coordinates></gml:LinearRing></gml:innerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
|
<ogr:intval>4</ogr:intval>
|
|
</ogr:orthagonal_polys>
|
|
</gml:featureMember>
|
|
</ogr:FeatureCollection>
|