mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Implements a method in QgsGeometry and a processing algorithm to calculate the pole of inaccessibility for a surface, which is the most distant internal point from the boundary of the surface. This function uses the 'polylabel' algorithm (Vladimir Agafonkin, 2016), which is an iterative approach guaranteed to find the true pole of inaccessibility within a specified tolerance. More precise tolerances require more iterations and will take longer to calculate.
33 lines
935 B
Plaintext
33 lines
935 B
Plaintext
<GMLFeatureClassList>
|
|
<GMLFeatureClass>
|
|
<Name>pole_inaccessibility_polys</Name>
|
|
<ElementPath>pole_inaccessibility_polys</ElementPath>
|
|
<!--POINT-->
|
|
<GeometryType>1</GeometryType>
|
|
<SRSName>EPSG:4326</SRSName>
|
|
<DatasetSpecificInfo>
|
|
<FeatureCount>6</FeatureCount>
|
|
<ExtentXMin>0.50000</ExtentXMin>
|
|
<ExtentXMax>6.58578</ExtentXMax>
|
|
<ExtentYMin>-2.41422</ExtentYMin>
|
|
<ExtentYMax>5.50000</ExtentYMax>
|
|
</DatasetSpecificInfo>
|
|
<PropertyDefn>
|
|
<Name>name</Name>
|
|
<ElementPath>name</ElementPath>
|
|
<Type>String</Type>
|
|
<Width>5</Width>
|
|
</PropertyDefn>
|
|
<PropertyDefn>
|
|
<Name>intval</Name>
|
|
<ElementPath>intval</ElementPath>
|
|
<Type>Integer</Type>
|
|
</PropertyDefn>
|
|
<PropertyDefn>
|
|
<Name>floatval</Name>
|
|
<ElementPath>floatval</ElementPath>
|
|
<Type>Real</Type>
|
|
</PropertyDefn>
|
|
</GMLFeatureClass>
|
|
</GMLFeatureClassList>
|