API / geotoolkit / contour / datasource / ContourTSDataLoader / ContourTSDataLoader
datasource.ContourTSDataLoader.ContourTSDataLoader
A utility class that creates a ContourTSDataSource from a passed in file or form url.
↳
ContourTSDataLoader
Constructors
Constructors
• new ContourTSDataLoader(options?)
| Name | Type |
|---|---|
Optional options | Object |
Optional options.httpservice | AbstractHttpService |
AbstractDataLoader.constructor
Methods
▸ getClassName(): string
string
AbstractDataLoader.getClassName
▸ getDataSource(text, name): ContourDataSource
Creates data source
| Name | Type | Description |
|---|---|---|
text | string | data in text format |
name | string | source name |
dataSource
AbstractDataLoader.getDataSource
▸ load(file): Promise<ContourDataSource>
Returns the AbstractDataLoader that is loaded from the passed in file.
| Name | Type | Description |
|---|---|---|
file | string | File | the local file to read |
Promise<ContourDataSource>
dataSource The loaded data source.
▸ loadFromFile(file): Promise<ContourDataSource>
Loads data from file
| Name | Type | Description |
|---|---|---|
file | File | the local file to read |
Promise<ContourDataSource>
dataSource The loaded data source.
AbstractDataLoader.loadFromFile
▸ loadFromURL(url): Promise<ContourDataSource>
Loads data from url
| Name | Type | Description |
|---|---|---|
url | string | url of the resource |
Promise<ContourDataSource>
dataSource The loaded data source.
AbstractDataLoader.loadFromURL
▸ Static getClassName(): string
string