Class
ChartMapGeoJson
ChartForgeX.Core
Creates map geometry and geographic observations from GeoJSON features.
Inheritance
- object
- ChartMapGeoJson
Methods
public static IReadOnlyList<ChartMapConnector> ToMapConnectors(string geoJson, ChartMapGeoJsonOptions? options = null) #Imports LineString and MultiLineString features as ordered geographic route connectors.
Parameters
- geoJson string
- A GeoJSON FeatureCollection or Feature.
- options ChartForgeX.Core.ChartMapGeoJsonOptions? = null
- Optional feature, name and bounds settings. Projection, point weights and precision do not alter route positions.
Returns
IReadOnlyList<ChartMapConnector> A detached read-only connector collection in feature and line order, including an empty collection when no feature matches.public static ChartMapDefinition ToMapDefinition(string id, string name, string geoJson, ChartMapGeoJsonOptions? options = null) #Creates a map definition from a GeoJSON FeatureCollection or Feature.
Parameters
- id string
- The stable map identifier.
- name string
- The display name.
- geoJson string
- The GeoJSON document.
- options ChartForgeX.Core.ChartMapGeoJsonOptions? = null
- Optional import settings.
public static IReadOnlyList<ChartMapPoint> ToMapPoints(string geoJson, ChartMapGeoJsonOptions? options = null) #Imports Point and MultiPoint features as geographic observations in feature and position order.
Parameters
- geoJson string
- A GeoJSON FeatureCollection or Feature.
- options ChartForgeX.Core.ChartMapGeoJsonOptions? = null
- Optional feature, name, bounds and point-weight settings. Projection and coordinate precision do not change raw positions.
Returns
IReadOnlyList<ChartMapPoint> A detached read-only collection suitable for a dotted-map series, including an empty collection when no feature matches.