Skip to content
ChartForgeX
Class

ChartMapCatalogEntry

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
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.

Accepted by parameters 1

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) #

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() #

Creates a fresh options instance for this entry.

Returns

ChartMapGeoJsonOptions The recommended GeoJSON import options.
FromAssetDirectory 2 overloads
public ChartMapDefinition FromAssetDirectory(string directory) #

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) #

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) #

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) #

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) #

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) #

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.

Properties

public string Id { get; } #

Gets the stable catalog ID.

public string Name { get; } #

Gets the display name.

public string Geography { get; } #

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

public string Level { get; } #

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

public string Source { get; } #

Gets the source authority or dataset family.

public string JoinKey { get; } #

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

public string SourceUrl { get; } #

Gets the source URL or landing page for the geometry.

public string FileName { get; } #

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

public bool IsEmbedded { get; } #

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

public bool IsExternal { get; } #

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

public ChartMapCatalogEntryKind Kind { get; } #

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

public bool IsLarge { get; } #

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

public string Notes { get; } #

Gets the notes associated with the catalog entry.

public string License { get; } #

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