Type Definitions
Dataset
Properties:
Name | Type | Description |
---|---|---|
pointer |
number
|
Memory address of this dataset allocated from the native code. It must be greater than zero. |
path |
string
|
Local path of the opened file. |
type |
string
|
Dataset type. (raster/vector) |
info |
Object
|
Result of gdalinfo or ogrinfo. |
Type:
-
Object
DatasetInfo
Properties:
Name | Type | Description |
---|---|---|
type |
string
|
Dataset type. (raster or vector) |
dsName |
string
|
(raster/vector) Name of the data source. |
driverName |
string
|
(raster/vector) Long name of a driver. |
bandCount |
number
|
(raster only) Number of raster bands on this dataset. |
width |
number
|
(raster only) Raster width in pixels. |
height |
number
|
(raster only) Raster height in pixels. |
projectionWkt |
string
|
(raster only) Projection definition string for this dataset. |
coordinateTransform |
Array.<number>
|
(raster only) Affine transformation coefficients. |
corners |
Array.<Array.<number>>
|
(raster only) Corner coordinates |
layerCount |
number
|
(vector only) Number of layers in this dataset. |
featureCount |
number
|
(vector only) Number of features in this dataset. |
layers |
Array.<Object>
|
(vector only) Layers |
layers[].name |
string
|
Layer name |
layers[].featureCount |
number
|
Feature count in this layer. |
Type:
-
Object
DatasetList
Properties:
Name | Type | Description |
---|---|---|
datasets |
Array.<Dataset>
|
Datasets |
errors |
Array.<string>
|
Errors |
Type:
-
Object
FileInfo
Properties:
Name | Type | Description |
---|---|---|
path |
string
|
Local path of the opened file. |
size |
number
|
File size in bytes. |
Type:
-
Object
FilePath
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
local |
string
|
Example: /output/polygon-line-point.mbtiles |
|
real |
string
|
Example: /tmp/gdaljsGClKZk/polygon-line-point.mbtiles |
|
all |
FilePath
|
<optional> |
All file paths |
Type:
-
Object