# ChartMapCatalog

Provides generic access to built-in reusable map definitions.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartMapCatalog.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L14)

**Modifiers**

static

Provides generic access to built-in reusable map definitions.

## Inheritance

- object
- ChartMapCatalog

 Filter members   

    Show inherited   

 

## Methods

 `public static IReadOnlyList<ChartMapDefinition> All()` [#](#method-all) 

[ChartMapCatalog.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L14)

Gets all built-in map definitions.

Returns

 `IReadOnlyList<ChartMapDefinition>` The available map definitions. 

 `public static IReadOnlyList<ChartMapCatalogEntry> EmbeddedEntries()` [#](#method-embeddedentries) 

[ChartMapCatalog.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L33)

Gets metadata for map definitions embedded in the core package.

Returns

 `IReadOnlyList<ChartMapCatalogEntry>` The embedded catalog entries. 

 `public static IReadOnlyList<ChartMapCatalogEntry> Entries()` [#](#method-entries) 

[ChartMapCatalog.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L21)

Gets metadata for built-in and known external map definitions.

Returns

 `IReadOnlyList<ChartMapCatalogEntry>` The available catalog entries. 

 `public static IReadOnlyList<ChartMapCatalogEntry> ExternalEntries()` [#](#method-externalentries) 

[ChartMapCatalog.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L39)

Gets metadata for known external map definitions that must be supplied by a host application or repository asset.

Returns

 `IReadOnlyList<ChartMapCatalogEntry>` The known external catalog entries. 

 FromAssetDirectory 2 overloads 

 `public static ChartMapDefinition FromAssetDirectory(string id, string directory)` [#](#method-fromassetdirectory-string-string) 

[ChartMapCatalog.cs:149](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L149)

Loads a known external map definition from a catalog asset directory using the entry's standard file name.

Parameters

**id string required**

The catalog entry ID.

**directory string required**

The directory containing catalog GeoJSON assets.

Returns

 `ChartMapDefinition` The loaded map definition. 

 `public static ChartMapDefinition FromAssetDirectory(string id, string directory, Action<ChartMapGeoJsonOptions>? configure)` [#](#method-fromassetdirectory-string-string-action-chartforgex-core-chartmapgeojsonoptions) 

[ChartMapCatalog.cs:160](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L160)

Loads a known external map definition from a catalog asset directory with caller-specific import refinements.

Parameters

**id string required**

The catalog entry ID.

**directory string required**

The directory containing catalog GeoJSON assets.

**configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>? required**

Optional configuration applied to a fresh options instance.

Returns

 `ChartMapDefinition` The loaded map definition. 

 FromGeoJson 2 overloads 

 `public static ChartMapDefinition FromGeoJson(string id, string geoJson)` [#](#method-fromgeojson-string-string) 

[ChartMapCatalog.cs:170](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L170)

Loads a known external map definition from a GeoJSON document.

Parameters

**id string required**

The catalog entry ID.

**geoJson string required**

The GeoJSON document.

Returns

 `ChartMapDefinition` The loaded map definition. 

 `public static ChartMapDefinition FromGeoJson(string id, string geoJson, Action<ChartMapGeoJsonOptions>? configure)` [#](#method-fromgeojson-string-string-action-chartforgex-core-chartmapgeojsonoptions) 

[ChartMapCatalog.cs:181](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L181)

Loads a known external map definition from a GeoJSON document with caller-specific import refinements.

Parameters

**id string required**

The catalog entry ID.

**geoJson string required**

The GeoJSON document.

**configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>? required**

Optional configuration applied to a fresh options instance.

Returns

 `ChartMapDefinition` The loaded map definition. 

 FromGeoJsonFile 2 overloads 

 `public static ChartMapDefinition FromGeoJsonFile(string id, string path)` [#](#method-fromgeojsonfile-string-string) 

[ChartMapCatalog.cs:128](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L128)

Loads a known external map definition from a GeoJSON file.

Parameters

**id string required**

The catalog entry ID.

**path string required**

The local GeoJSON file path.

Returns

 `ChartMapDefinition` The loaded map definition. 

 `public static ChartMapDefinition FromGeoJsonFile(string id, string path, Action<ChartMapGeoJsonOptions>? configure)` [#](#method-fromgeojsonfile-string-string-action-chartforgex-core-chartmapgeojsonoptions) 

[ChartMapCatalog.cs:139](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L139)

Loads a known external map definition from a GeoJSON file with caller-specific import refinements.

Parameters

**id string required**

The catalog entry ID.

**path string required**

The local GeoJSON file path.

**configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>? required**

Optional configuration applied to a fresh options instance.

Returns

 `ChartMapDefinition` The loaded map definition. 

 `public static ChartMapDefinition Get(string id)` [#](#method-get-string) 

[ChartMapCatalog.cs:47](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L47)

Gets a built-in map definition by ID.

Parameters

**id string required**

The map definition ID.

Returns

 `ChartMapDefinition` The requested map definition. 

 `public static ChartMapCatalogEntry GetEntry(string id)` [#](#method-getentry-string) 

[ChartMapCatalog.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L94)

Gets metadata for a built-in or known external map definition.

Parameters

**id string required**

The catalog entry ID.

Returns

 `ChartMapCatalogEntry` The requested catalog entry. 

 Load 2 overloads 

 `public static ChartMapDefinition Load(string id, string? assetDirectory = null)` [#](#method-load-string-string) 

[ChartMapCatalog.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L68)

Loads a map definition by catalog ID, using embedded geometry when available or an asset directory for external entries.

Parameters

**id string required**

The catalog entry ID.

**assetDirectory string? = null optional**

The optional directory containing external catalog GeoJSON assets.

Returns

 `ChartMapDefinition` The loaded map definition. 

 `public static ChartMapDefinition Load(string id, string? assetDirectory, Action<ChartMapGeoJsonOptions>? configure)` [#](#method-load-string-string-action-chartforgex-core-chartmapgeojsonoptions) 

[ChartMapCatalog.cs:79](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L79)

Loads a map definition by catalog ID, using embedded geometry when available or an asset directory for external entries.

Parameters

**id string required**

The catalog entry ID.

**assetDirectory string? required**

The optional directory containing external catalog GeoJSON assets.

**configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>? required**

Optional configuration applied to external GeoJSON import options.

Returns

 `ChartMapDefinition` The loaded map definition. 

 `public static bool TryGet(string id, out ChartMapDefinition definition)` [#](#method-tryget-string-chartforgex-core-chartmapdefinition) 

[ChartMapCatalog.cs:58](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L58)

Attempts to get a built-in map definition by ID.

Parameters

**id string required**

The map definition ID.

**definition ChartForgeX.Core.ChartMapDefinition required**

The resolved map definition.

Returns

 `bool` true when the definition exists; otherwise false. 

 `public static bool TryGetEntry(string id, out ChartMapCatalogEntry entry)` [#](#method-trygetentry-string-chartforgex-core-chartmapcatalogentry) 

[ChartMapCatalog.cs:105](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalog.cs#L105)

Attempts to get metadata for a built-in or known external map definition.

Parameters

**id string required**

The catalog entry ID.

**entry ChartForgeX.Core.ChartMapCatalogEntry required**

The resolved catalog entry.

Returns

 `bool` true when the entry exists; otherwise false. 

## 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:967125085C8BED571EB775929957ADA0BC38C06E26DADF40AED1D46B7470450A -->
