GeoJsonData
geovisto-map / GeoJsonData
Class: GeoJsonData
The interface declares function for management of geographical data.
Author
Jiri Hynek
Extends
Implements
Constructors
new GeoJsonData()
new GeoJsonData(
name
,originalData
):GeoJsonData
Parameters
• name: string
• originalData: unknown
Returns
Overrides
Source
model/internal/geodata/geojson/GeoJsonData.ts:17
Properties
geoJSON?
private
optional
geoJSON:any
Source
model/internal/geodata/geojson/GeoJsonData.ts:15
originalData
private
originalData:unknown
Source
model/internal/geodata/geojson/GeoJsonData.ts:14
Methods
getFeatures()
getFeatures(
types
):FeatureCollection
It returns the array of features of specific type.
Parameters
• types: string
[]
Returns
FeatureCollection
Implementation of
Source
model/internal/geodata/geojson/GeoJsonData.ts:44
getGeoJSON()
getGeoJSON():
FeatureCollection
It returns the original representation of data domain.
Returns
FeatureCollection
Implementation of
Source
model/internal/geodata/geojson/GeoJsonData.ts:32
getName()
getName():
string
It returns the name of the map domain.
Returns
string
Implementation of
Inherited from
Source
model/internal/domain/generic/MapDomain.ts:21
getOriginalGeoData()
getOriginalGeoData():
unknown
It returns the original source of geographical data.
Returns
unknown
Implementation of
Source
model/internal/geodata/geojson/GeoJsonData.ts:25
toString()
toString():
string
The string representation is equal to the name of the map domain.
Returns
string
Inherited from
Source
model/internal/domain/abstract/AbstractMapDomain.ts:18
validateData()
protected
validateData(originalData
):FeatureCollection
It transforms original data to a feature collection in the GeoJSON format.
Parameters
• originalData: unknown
Returns
FeatureCollection
GeoJSON feature collection