GeometryOperations Class

Summary: The geometry operations class provides additional geoprocessing algorithms for geometries.

Module: aspose.gis.geotools

Full Name: aspose.gis.geotools.GeometryOperations

Aspose.PSD Version: 25.9.0

Methods

NameDescription
build_centerline(polygon)Build centerline diagram for polygon
build_centerline(sites)Build centerline diagram for collection of points (sites)
close_linear_ring(geometry)Closes geometric segments in rings if it needs.
create_midpoints(geometry)Create midpoints by adding a new point in the middle to each segment.
delete_near_points(geometry, options)Delete points that are too close to each other.
extract_geometry_collection(layer)Extract geometry collection from layer
get_centerline_length(polygon)Get centerline Length
get_centerline_length(sites)Get centerline Length
make_voronoi_graph(sites)Build “Voronoi” diagram for collection of points (sites)
order_geometry_collection(geometry)Order geometry collection by type to four collection (point, line, polygon and other type)
simplify_segments(geometry, options)Delete points lying on the same segment.

Method: build_centerline(polygon) [static]

 build_centerline(polygon) 

Build centerline diagram for polygon

Parameters:

ParameterTypeDescription
polygonPolygonPolygon for centerline diagram

Returns

TypeDescription
System.Collections.Generic.List<Aspose.Gis.Geometries.LineString>Collection of centerline edges

Method: build_centerline(sites) [static]

 build_centerline(sites) 

Build centerline diagram for collection of points (sites)

Parameters:

ParameterTypeDescription
sitesSystem.Collections.Generic.IEnumerable<Aspose.Gis.Geometries.Point>Collection of points (sites)

Returns

TypeDescription
System.Collections.Generic.List<Aspose.Gis.Geometries.LineString>Collection of centerline edges

Method: close_linear_ring(geometry) [static]

 close_linear_ring(geometry) 

Closes geometric segments in rings if it needs.

Parameters:

ParameterTypeDescription
geometryIGeometryGeometry for closing.

Returns

TypeDescription
IGeometryThe geometry after closing.

Method: create_midpoints(geometry) [static]

 create_midpoints(geometry) 

Create midpoints by adding a new point in the middle to each segment.

Parameters:

ParameterTypeDescription
geometryIGeometryGeometry for processing.

Returns

TypeDescription
IGeometryThe geometry after processing.

Method: delete_near_points(geometry, options) [static]

 delete_near_points(geometry, options) 

Delete points that are too close to each other.

Parameters:

ParameterTypeDescription
geometryIGeometryGeometry for deleting the nearest points.
optionsNearPointsCleanerOptionsOptions for deleting the nearest points.

Returns

TypeDescription
IGeometryThe geometry after deleting nearest point.

Method: extract_geometry_collection(layer) [static]

 extract_geometry_collection(layer) 

Extract geometry collection from layer

Parameters:

ParameterTypeDescription
layerVectorLayerInput layer

Returns

TypeDescription
IGeometryThe collection contains all geometries of input layer

Method: get_centerline_length(polygon) [static]

 get_centerline_length(polygon) 

Get centerline Length

Parameters:

ParameterTypeDescription
polygonPolygonPolygon for centerline diagram

Returns

TypeDescription
doubleLength of centerline edges

Method: get_centerline_length(sites) [static]

 get_centerline_length(sites) 

Get centerline Length

Parameters:

ParameterTypeDescription
sitesSystem.Collections.Generic.IEnumerable<Aspose.Gis.Geometries.Point>Collection of points (sites)

Returns

TypeDescription
doubleLength of centerline edges

Method: make_voronoi_graph(sites) [static]

 make_voronoi_graph(sites) 

Build “Voronoi” diagram for collection of points (sites)

Parameters:

ParameterTypeDescription
sitesSystem.Collections.Generic.IEnumerable<Aspose.Gis.Geometries.IPoint>Collection of points (sites)

Returns

TypeDescription
System.Collections.Generic.List<Aspose.Gis.Geometries.LineString>Collection of edges voronoi’s diagram

Method: order_geometry_collection(geometry) [static]

 order_geometry_collection(geometry) 

Order geometry collection by type to four collection (point, line, polygon and other type)

Parameters:

ParameterTypeDescription
geometryIGeometryGeometry collection for order

Returns

TypeDescription
IGeometryThe collection contains four collections (point, line, polygon and other type)

Method: simplify_segments(geometry, options) [static]

 simplify_segments(geometry, options) 

Delete points lying on the same segment.

Parameters:

ParameterTypeDescription
geometryIGeometryGeometry for deleting extra point
optionsSimplifySegmentsOptionsOptions for deleting extra point

Returns

TypeDescription
IGeometryThe geometry after deleting extra point