mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
The existing polygoncentroids algorithm has been deprecated (and hidden from the toolbox), and a new, generic centroids algorithm added which works with lines and multipoints
59 lines
2.5 KiB
XML
59 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>0.6538461538461539</gml:X><gml:Y>-1</gml:Y></gml:coord>
|
|
<gml:coord><gml:X>8</gml:X><gml:Y>5.5</gml:Y></gml:coord>
|
|
</gml:Box>
|
|
</gml:boundedBy>
|
|
|
|
<gml:featureMember>
|
|
<ogr:centroid_polys fid="polys.0">
|
|
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>0.653846153846154,1.115384615384615</gml:coordinates></gml:Point></ogr:geometryProperty>
|
|
<ogr:name>aaaaa</ogr:name>
|
|
<ogr:intval>33</ogr:intval>
|
|
<ogr:floatval>44.123456</ogr:floatval>
|
|
</ogr:centroid_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:centroid_polys fid="polys.1">
|
|
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>5.0,4.333333333333333</gml:coordinates></gml:Point></ogr:geometryProperty>
|
|
<ogr:name>Aaaaa</ogr:name>
|
|
<ogr:intval>-33</ogr:intval>
|
|
<ogr:floatval>0</ogr:floatval>
|
|
</ogr:centroid_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:centroid_polys fid="polys.2">
|
|
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>2.5,5.5</gml:coordinates></gml:Point></ogr:geometryProperty>
|
|
<ogr:name>bbaaa</ogr:name>
|
|
<ogr:floatval>0.123</ogr:floatval>
|
|
</ogr:centroid_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:centroid_polys fid="polys.3">
|
|
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>8,-1</gml:coordinates></gml:Point></ogr:geometryProperty>
|
|
<ogr:name>ASDF</ogr:name>
|
|
<ogr:intval>0</ogr:intval>
|
|
</ogr:centroid_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:centroid_polys fid="polys.4">
|
|
<ogr:intval>120</ogr:intval>
|
|
<ogr:floatval>-100291.43213</ogr:floatval>
|
|
</ogr:centroid_polys>
|
|
</gml:featureMember>
|
|
<gml:featureMember>
|
|
<ogr:centroid_polys fid="polys.5">
|
|
<ogr:geometryProperty><gml:Point srsName="EPSG:4326"><gml:coordinates>4.080459770114943,-0.218390804597701</gml:coordinates></gml:Point></ogr:geometryProperty>
|
|
<ogr:name>elim</ogr:name>
|
|
<ogr:intval>2</ogr:intval>
|
|
<ogr:floatval>3.33</ogr:floatval>
|
|
</ogr:centroid_polys>
|
|
</gml:featureMember>
|
|
</ogr:FeatureCollection>
|