Class GeometryExtensions
Inheritance
GeometryExtensions
Assembly: Mapsui.Nts.dll
Syntax
public static class GeometryExtensions
Methods
|
Edit this page
View Source
DeleteCoordinate(Geometry?, int)
Declaration
public static Geometry? DeleteCoordinate(this Geometry? geometry, int index)
Parameters
| Type |
Name |
Description |
| Geometry |
geometry |
|
| int |
index |
|
Returns
| Type |
Description |
| Geometry |
|
|
Edit this page
View Source
GetVertexLists(Geometry)
For editing features it is simpler if we can treat al
geometries as a list of lists of points.
Declaration
public static IList<IList<Coordinate>> GetVertexLists(this Geometry geometry)
Parameters
| Type |
Name |
Description |
| Geometry |
geometry |
|
Returns
|
Edit this page
View Source
InsertCoordinate(Geometry?, Coordinate, int)
Declaration
public static Geometry? InsertCoordinate(this Geometry? geometry, Coordinate coordinate, int segment)
Parameters
| Type |
Name |
Description |
| Geometry |
geometry |
|
| Coordinate |
coordinate |
|
| int |
segment |
|
Returns
| Type |
Description |
| Geometry |
|
|
Edit this page
View Source
MainCoordinates(Geometry)
Declaration
public static List<Coordinate> MainCoordinates(this Geometry geometry)
Parameters
| Type |
Name |
Description |
| Geometry |
geometry |
|
Returns
| Type |
Description |
| List<Coordinate> |
|
|
Edit this page
View Source
ToFeature(Geometry)
Declaration
public static GeometryFeature ToFeature(this Geometry geometry)
Parameters
| Type |
Name |
Description |
| Geometry |
geometry |
|
Returns
|
Edit this page
View Source
ToFeatures(IEnumerable<Geometry>)
Declaration
public static IEnumerable<GeometryFeature> ToFeatures(this IEnumerable<Geometry> geometries)
Parameters
Returns