io module

Functies

read(string | ArrayBuffer | Blob, SpatialDataReadOptions)

Neemt een tekenreeks voor ruimtelijke gegevens of een URL naar een bestand of zip-bestand en parseert de ruimtelijke gegevens in GeoJSON-objecten. Ondersteunde indelingen voor ruimtelijke gegevens: KML, KMZ, GPX, GeoRSS, GML, bestanden met ruimtescheidingstekens (CSV), GeoJSON.

write(azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet | Array<azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet>, SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions)

Schrijft GeoJSON-objectgegevens als een georuimtelijke XML-tekenreeks in de opgegeven indeling.

writeCompressed(azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet | Array<azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet>, "Base64" | "Blob" | "ArrayBuffer", SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions)

Schrijft GeoJSON-objectgegevens naar een georuimtelijk XML-bestand dat is ingesloten in een gecomprimeerd bestand. Het ruimtelijke bestand in het zip-bestand krijgt de naam 'doc' en wordt een geschikte bestandsextensie toegewezen. Mogelijke bestandsextensies zijn; xml, kml, json, csv, tsv, txt.

Functiedetails

read(string | ArrayBuffer | Blob, SpatialDataReadOptions)

Neemt een tekenreeks voor ruimtelijke gegevens of een URL naar een bestand of zip-bestand en parseert de ruimtelijke gegevens in GeoJSON-objecten. Ondersteunde indelingen voor ruimtelijke gegevens: KML, KMZ, GPX, GeoRSS, GML, bestanden met ruimtescheidingstekens (CSV), GeoJSON.

function read(spatialData: string | ArrayBuffer | Blob, options?: SpatialDataReadOptions): Promise<SpatialDataSet>

Parameters

spatialData

string | ArrayBuffer | Blob

De tekenreeks of URL voor ruimtelijke gegevens naar een bestand dat moet worden gelezen.

options
SpatialDataReadOptions

De leesopties.

Retouren

Promise<SpatialDataSet>

write(azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet | Array<azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet>, SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions)

Schrijft GeoJSON-objectgegevens als een georuimtelijke XML-tekenreeks in de opgegeven indeling.

function write(data: azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet | Array<azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet>, options?: SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions): Promise<string>

Parameters

data

azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet | Array<azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet>

De GeoJSON-objecten waaruit shapes moeten worden opgehaald om te schrijven.

options

SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions

Een set opties die aanpassen hoe de XML wordt geschreven.

Retouren

Promise<string>

writeCompressed(azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet | Array<azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet>, "Base64" | "Blob" | "ArrayBuffer", SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions)

Schrijft GeoJSON-objectgegevens naar een georuimtelijk XML-bestand dat is ingesloten in een gecomprimeerd bestand. Het ruimtelijke bestand in het zip-bestand krijgt de naam 'doc' en wordt een geschikte bestandsextensie toegewezen. Mogelijke bestandsextensies zijn; xml, kml, json, csv, tsv, txt.

function writeCompressed(data: azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet | Array<azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet>, compressFormat?: "Base64" | "Blob" | "ArrayBuffer", options?: SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions): Promise<string | ArrayBuffer | Blob>

Parameters

data

azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet | Array<azmaps.source.DataSource | azmaps.data.FeatureCollection | azmaps.layer.ImageLayer | OgcMapLayer | azmaps.data.Feature<azmaps.data.Geometry, any> | SpatialDataSet>

De GeoJSON-objecten waaruit shapes moeten worden opgehaald om te schrijven.

compressFormat

"Base64" | "Blob" | "ArrayBuffer"

De gecomprimeerde bestandsindeling die moet worden gebruikt. Opties: Base64 (Gegevens-URI), Blob of ArrayBuffer

options

SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions

Een set opties waarmee u kunt aanpassen hoe de gegevens worden geschreven.

Retouren

Promise<string | ArrayBuffer | Blob>