Class SpatialGraphHelper
This class contains helper function to interact or transform the common
ISpatialEdge object.
Inheritance
System.Object
SpatialGraphHelper
Assembly: Mars.Components.dll
Syntax
public static class SpatialGraphHelper : object
Methods
DeserializeGraph(Stream, out IDictionary<Int32, SpatialNode>, out IDictionary<Int32, SpatialEdge>, out BoundingBox, out KeyContainer, out SpatialGraphOptions)
Declaration
public static SpatialGraph DeserializeGraph(Stream stream, out IDictionary<int, SpatialNode> nodes, out IDictionary<int, SpatialEdge> edges, out BoundingBox boundingBox, out KeyContainer keyContainer, out SpatialGraphOptions sgeOptions)
Parameters
Returns
ToFeature(ISpatialEdge)
Declaration
public static IFeature ToFeature(this ISpatialEdge edge)
Parameters
Returns
Type |
Description |
IFeature |
|
ToFeature(ISpatialNode)
Declaration
public static IFeature ToFeature(this ISpatialNode node)
Parameters
Returns
Type |
Description |
IFeature |
|
ToFeature(Route)
Transforms the specified route
into a object .
Declaration
public static IFeature ToFeature(this Route route)
Parameters
Type |
Name |
Description |
Route |
route |
The route to transform. |
Returns
Type |
Description |
IFeature |
Returns a new object containing the
path as geometry and the properties as attribute table entries.
|
ToGeoJson(ISpatialGraphEnvironment)
Transforms the specified environment
in to valid GeoJson string.
Declaration
public static string ToGeoJson(this ISpatialGraphEnvironment environment)
Parameters
Returns
Type |
Description |
System.String |
Returns the GeoJson string |
ToGeoJson(Route)
Transforms the specified route
in to valid GeoJson string.
Declaration
public static string ToGeoJson(this Route route)
Parameters
Type |
Name |
Description |
Route |
route |
The route to transform. |
Returns
Type |
Description |
System.String |
Returns the GeoJson string |
ToGeometry(ISpatialEdge)
Transforms the passed edge
into an
object as point, a line string or line ring.
Declaration
public static Geometry ToGeometry(this ISpatialEdge edge)
Parameters
Type |
Name |
Description |
ISpatialEdge |
edge |
The edge to transform |
Returns
Type |
Description |
Geometry |
Returns a new object which can be a ,
or a .
|