io module

機能

read(string | ArrayBuffer | Blob, SpatialDataReadOptions)

空間データ文字列または URL をファイルまたは zip 形式のファイルに受け取り、空間データを GeoJSON オブジェクトに解析します。 サポートされている空間データ形式: KML、KMZ、GPX、GeoRSS、GML、空間区切りファイル (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)

GeoJSON オブジェクト データを、指定した形式の地理空間 XML 文字列として書き込みます。

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)

GeoJSON オブジェクト データを、圧縮ファイルに埋め込まれた地理空間 XML ファイルに書き込みます。 zip ファイル内の空間ファイルは "doc" という名前になり、適切なファイル拡張子が割り当てられます。 ファイル拡張子には次のようなものがあります。xml、kml、json、csv、tsv、txt。

関数の詳細

read(string | ArrayBuffer | Blob, SpatialDataReadOptions)

空間データ文字列または URL をファイルまたは zip 形式のファイルに受け取り、空間データを GeoJSON オブジェクトに解析します。 サポートされている空間データ形式: KML、KMZ、GPX、GeoRSS、GML、空間区切りファイル (CSV)、GeoJSON。

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

パラメーター

spatialData

string | ArrayBuffer | Blob

読み取るファイルの空間データ文字列または URL。

options
SpatialDataReadOptions

読み取りオプション。

戻り値

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)

GeoJSON オブジェクト データを、指定した形式の地理空間 XML 文字列として書き込みます。

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>

パラメーター

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>

図形を取得する GeoJSON オブジェクトを書き込みます。

options

SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions

XML の書き込み方法をカスタマイズする一連のオプション。

戻り値

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)

GeoJSON オブジェクト データを、圧縮ファイルに埋め込まれた地理空間 XML ファイルに書き込みます。 zip ファイル内の空間ファイルは "doc" という名前になり、適切なファイル拡張子が割り当てられます。 ファイル拡張子には次のようなものがあります。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>

パラメーター

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>

図形を取得する GeoJSON オブジェクトを書き込みます。

compressFormat

"Base64" | "Blob" | "ArrayBuffer"

使用する圧縮ファイル形式。 オプション: Base64 (データ URI)、BLOB、または ArrayBuffer

options

SpatialXmlWriteOptions & GmlWriteOptions & SpatialCsvWriteOptions

データの書き込み方法をカスタマイズする一連のオプション。

戻り値

Promise<string | ArrayBuffer | Blob>