# ChartMapCatalogEntry

Describes a reusable map catalog entry and how its GeoJSON should be imported.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartMapCatalogEntry.cs:85](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L85)

**Modifiers**

sealed

Describes a reusable map catalog entry and how its GeoJSON should be imported.

## Inheritance

- object
- ChartMapCatalogEntry

## Usage

 Explore 5 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Method [ChartMapCatalog.EmbeddedEntries](/api/chartforgex-core-chartmapcatalog/#method-embeddedentries)
- Method [ChartMapCatalog.Entries](/api/chartforgex-core-chartmapcatalog/#method-entries)
- Method [ChartMapCatalog.ExternalEntries](/api/chartforgex-core-chartmapcatalog/#method-externalentries)
- Method [ChartMapCatalog.GetEntry](/api/chartforgex-core-chartmapcatalog/#method-getentry-string)

### Accepted by parameters 1

- Method [ChartMapCatalog.TryGetEntry](/api/chartforgex-core-chartmapcatalog/#method-trygetentry-string-chartforgex-core-chartmapcatalogentry) parameter `entry`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartMapCatalogEntry(string id, string name, string geography, string level, string source, string joinKey, string sourceUrl, string fileName, Func<ChartMapGeoJsonOptions>? optionsFactory = null, bool isEmbedded = false, bool isLarge = false, string? notes = null, string? license = null)` [#](#constructor-ctor-string-string-string-string-string-string-string-string-func-chartforgex-core-chartmapgeojsonoptions-boolean-boolean-string-string) 

[ChartMapCatalogEntry.cs:85](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L85)

Initializes a new catalog entry.

Parameters

**id string required**

**name string required**

**geography string required**

**level string required**

**source string required**

**joinKey string required**

**sourceUrl string required**

**fileName string required**

**optionsFactory System.Func<ChartForgeX.Core.ChartMapGeoJsonOptions>? = null optional**

**isEmbedded bool = false optional**

**isLarge bool = false optional**

**notes string? = null optional**

**license string? = null optional**

## Methods

 `public ChartMapGeoJsonOptions CreateOptions()` [#](#method-createoptions) 

[ChartMapCatalogEntry.cs:183](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L183)

Creates a fresh options instance for this entry.

Returns

 `ChartMapGeoJsonOptions` The recommended GeoJSON import options. 

 FromAssetDirectory 2 overloads 

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

[ChartMapCatalogEntry.cs:161](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L161)

Creates a map definition from this entry's standard file name inside an asset directory.

Parameters

**directory string required**

The directory containing catalog GeoJSON assets.

Returns

 `ChartMapDefinition` The map definition. 

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

[ChartMapCatalogEntry.cs:171](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L171)

Creates a map definition from this entry's standard file name inside an asset directory and caller-specific refinements.

Parameters

**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 map definition. 

 FromGeoJson 2 overloads 

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

[ChartMapCatalogEntry.cs:120](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L120)

Creates a map definition from GeoJSON using this entry's recommended import options.

Parameters

**geoJson string required**

The GeoJSON document.

Returns

 `ChartMapDefinition` The map definition. 

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

[ChartMapCatalogEntry.cs:130](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L130)

Creates a map definition from GeoJSON using this entry's recommended import options and caller-specific refinements.

Parameters

**geoJson string required**

The GeoJSON document.

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

Optional configuration applied to a fresh options instance.

Returns

 `ChartMapDefinition` The map definition. 

 FromGeoJsonFile 2 overloads 

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

[ChartMapCatalogEntry.cs:141](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L141)

Creates a map definition from a GeoJSON file using this entry's recommended import options.

Parameters

**path string required**

The GeoJSON file path.

Returns

 `ChartMapDefinition` The map definition. 

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

[ChartMapCatalogEntry.cs:151](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L151)

Creates a map definition from a GeoJSON file using this entry's recommended import options and caller-specific refinements.

Parameters

**path string required**

The GeoJSON file path.

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

Optional configuration applied to a fresh options instance.

Returns

 `ChartMapDefinition` The map definition. 

## 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?` 

## Properties

 `public string Id { get; }` [#](#property-id) 

[ChartMapCatalogEntry.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L15)

Gets the stable catalog ID.

 `public string Name { get; }` [#](#property-name) 

[ChartMapCatalogEntry.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L20)

Gets the display name.

 `public string Geography { get; }` [#](#property-geography) 

[ChartMapCatalogEntry.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L25)

Gets the covered geography, such as EU, US, or World.

 `public string Level { get; }` [#](#property-level) 

[ChartMapCatalogEntry.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L30)

Gets the administrative or statistical level, such as NUTS3, state, county, or admin0.

 `public string Source { get; }` [#](#property-source) 

[ChartMapCatalogEntry.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L35)

Gets the source authority or dataset family.

 `public string JoinKey { get; }` [#](#property-joinkey) 

[ChartMapCatalogEntry.cs:40](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L40)

Gets the recommended join key used by metric data for this map.

 `public string SourceUrl { get; }` [#](#property-sourceurl) 

[ChartMapCatalogEntry.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L45)

Gets the source URL or landing page for the geometry.

 `public string FileName { get; }` [#](#property-filename) 

[ChartMapCatalogEntry.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L50)

Gets the recommended local file name when this entry is stored as an external GeoJSON asset.

 `public bool IsEmbedded { get; }` [#](#property-isembedded) 

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

Gets a value indicating whether the entry is embedded in the core package.

 `public bool IsExternal { get; }` [#](#property-isexternal) 

[ChartMapCatalogEntry.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L60)

Gets a value indicating whether the entry is a known external dataset that must be supplied by the host.

 `public ChartMapCatalogEntryKind Kind { get; }` [#](#property-kind) 

[ChartMapCatalogEntry.cs:65](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L65)

Gets how the map catalog entry is made available to callers.

 `public bool IsLarge { get; }` [#](#property-islarge) 

[ChartMapCatalogEntry.cs:70](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L70)

Gets a value indicating whether the entry is normally too large to embed in the core package.

 `public string Notes { get; }` [#](#property-notes) 

[ChartMapCatalogEntry.cs:75](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L75)

Gets the notes associated with the catalog entry.

 `public string License { get; }` [#](#property-license) 

[ChartMapCatalogEntry.cs:80](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapCatalogEntry.cs#L80)

Gets the licence of the source geometry, or an empty string when the caller did not record one.

<!-- PowerForge markdown artifact sha256:715806AECC330FC7E2B3EBA34E24913A1D22B4038814BAF9326B02A4DB04F691 -->
