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
| Name | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| polygon | Polygon | Polygon for centerline diagram |
Returns
| Type | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| sites | System.Collections.Generic.IEnumerable<Aspose.Gis.Geometries.Point> | Collection of points (sites) |
Returns
| Type | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| geometry | IGeometry | Geometry for closing. |
Returns
| Type | Description |
|---|---|
| IGeometry | The 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:
| Parameter | Type | Description |
|---|---|---|
| geometry | IGeometry | Geometry for processing. |
Returns
| Type | Description |
|---|---|
| IGeometry | The 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:
| Parameter | Type | Description |
|---|---|---|
| geometry | IGeometry | Geometry for deleting the nearest points. |
| options | NearPointsCleanerOptions | Options for deleting the nearest points. |
Returns
| Type | Description |
|---|---|
| IGeometry | The geometry after deleting nearest point. |
Method: extract_geometry_collection(layer) [static]
extract_geometry_collection(layer)
Extract geometry collection from layer
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layer | VectorLayer | Input layer |
Returns
| Type | Description |
|---|---|
| IGeometry | The collection contains all geometries of input layer |
Method: get_centerline_length(polygon) [static]
get_centerline_length(polygon)
Get centerline Length
Parameters:
| Parameter | Type | Description |
|---|---|---|
| polygon | Polygon | Polygon for centerline diagram |
Returns
| Type | Description |
|---|---|
| double | Length of centerline edges |
Method: get_centerline_length(sites) [static]
get_centerline_length(sites)
Get centerline Length
Parameters:
| Parameter | Type | Description |
|---|---|---|
| sites | System.Collections.Generic.IEnumerable<Aspose.Gis.Geometries.Point> | Collection of points (sites) |
Returns
| Type | Description |
|---|---|
| double | Length of centerline edges |
Method: make_voronoi_graph(sites) [static]
make_voronoi_graph(sites)
Build “Voronoi” diagram for collection of points (sites)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| sites | System.Collections.Generic.IEnumerable<Aspose.Gis.Geometries.IPoint> | Collection of points (sites) |
Returns
| Type | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| geometry | IGeometry | Geometry collection for order |
Returns
| Type | Description |
|---|---|
| IGeometry | The 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:
| Parameter | Type | Description |
|---|---|---|
| geometry | IGeometry | Geometry for deleting extra point |
| options | SimplifySegmentsOptions | Options for deleting extra point |
Returns
| Type | Description |
|---|---|
| IGeometry | The geometry after deleting extra point |