# ChartMapGeoJson

Creates map geometry and geographic observations from GeoJSON features.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartMapGeoJson.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapGeoJson.cs#L22)

**Modifiers**

static

Creates map geometry and geographic observations from GeoJSON features.

## Inheritance

- object
- ChartMapGeoJson

 Filter members   

    Show inherited   

 

## Methods

 `public static IReadOnlyList<ChartMapConnector> ToMapConnectors(string geoJson, ChartMapGeoJsonOptions? options = null)` [#](#method-tomapconnectors-string-chartforgex-core-chartmapgeojsonoptions) 

[ChartMapGeoJson.Observations.cs:55](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapGeoJson.Observations.cs#L55)

Imports LineString and MultiLineString features as ordered geographic route connectors.

Parameters

**geoJson string required**

A GeoJSON FeatureCollection or Feature.

**options ChartForgeX.Core.ChartMapGeoJsonOptions? = null optional**

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)` [#](#method-tomapdefinition-string-string-string-chartforgex-core-chartmapgeojsonoptions) 

[ChartMapGeoJson.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapGeoJson.cs#L22)

Creates a map definition from a GeoJSON FeatureCollection or Feature.

Parameters

**id string required**

The stable map identifier.

**name string required**

The display name.

**geoJson string required**

The GeoJSON document.

**options ChartForgeX.Core.ChartMapGeoJsonOptions? = null optional**

Optional import settings.

Returns

 `ChartMapDefinition` A reusable map definition. 

 `public static IReadOnlyList<ChartMapPoint> ToMapPoints(string geoJson, ChartMapGeoJsonOptions? options = null)` [#](#method-tomappoints-string-chartforgex-core-chartmapgeojsonoptions) 

[ChartMapGeoJson.Observations.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapGeoJson.Observations.cs#L16)

Imports Point and MultiPoint features as geographic observations in feature and position order.

Parameters

**geoJson string required**

A GeoJSON FeatureCollection or Feature.

**options ChartForgeX.Core.ChartMapGeoJsonOptions? = null optional**

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. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

<!-- PowerForge markdown artifact sha256:20E744B38916B8757D99CCA6653D4DA8D3086EF69BB5FC449F5ABB0ADAA21C43 -->
