Creating Geometries
Creating Geometries¶
Simple Geometries:¶
StSpatialCommand
(functionToApply, layer, outputLayername)¶-
Parameters:
- The Kernel is the sub-area within which all other points in a geometry are visible
- Centroid is the center-most point of a geometry
- The Bounding Box is the smallest square within which the originial geometry can fit
- The Convex Hull is the smallest convex geometry that encompasses the entire original geometry
Complex Geometries :¶
STConnectedSpacesAndPatios
(inputLayer, buffDist).execute()¶-
Parameters: - inputLayer (qgsVectorLayer) – A vector layer of polygons
- buffDist (float) – The distance of the buffer
Returns: connectedSpaces: a Convex Hull of the input Layer minus the built exterior ring
Returns: builtExtRing: A vector layer containing the negative buffer of the unions of the positive buffers of the input layer
Returns: patios: a vector layer containing the open space left over from the built exterior ring which is not contained in the connected spaces.
STSkeletonizeTheVoid
(buildingsLayer, samplingDist).execute()¶-
Parameters: - buildingsLayer (qgsVectorLayer) – The input layer containing polygonal geometries
- samplingDist (float) – The distance between samping points for the Voronoi polygons
Returns: The skeleton
Returns: The layer of nodes used for the calibration of the Voronoï process
Returns: A Voronoï polygons layer
Tip
Use the built exterior ring returned by STConnectedSpacesAndPatios()
as input layer to remove empty spaces between buildings and create a single uninterupted graph.
Zooming into an interection, we can notice the effect of the sampling distance :
OpenEdition vous propose de citer ce billet de la manière suivante :
khartwell (15 décembre 2017). Creating Geometries. Métrologie des ambiances urbaines. Consulté le 9 octobre 2024 à l’adresse https://doi.org/10.58079/rara