Skip to content

@urban-toolkit/autk-db


@urban-toolkit/autk-db / LoadGeojsonParams

Interface: LoadGeojsonParams ​

Defined in: use-cases/load-geojson/interfaces.ts:7

Parameters for loading a GeoJSON FeatureCollection into DuckDB as a spatial layer.

Properties ​

boundingBox? ​

optional boundingBox?: BoundingBox

Defined in: use-cases/load-geojson/interfaces.ts:17

Optional bounding box to clip or intersect geometries during import.


coordinateFormat? ​

optional coordinateFormat?: string

Defined in: use-cases/load-geojson/interfaces.ts:15

CRS of the input GeoJSON data (source). Defaults to EPSG:4326.


geojsonFileUrl? ​

optional geojsonFileUrl?: string

Defined in: use-cases/load-geojson/interfaces.ts:9

URL pointing to a GeoJSON FeatureCollection file.


geojsonObject? ​

optional geojsonObject?: FeatureCollection<Geometry, GeoJsonProperties>

Defined in: use-cases/load-geojson/interfaces.ts:11

In-memory GeoJSON FeatureCollection object.


layerType? ​

optional layerType?: LayerType

Defined in: use-cases/load-geojson/interfaces.ts:23

Explicitly set the layer type. If omitted, the type is auto-detected from the first feature's geometry.


outputTableName ​

outputTableName: string

Defined in: use-cases/load-geojson/interfaces.ts:13

Desired output table name to create in DuckDB.


workspace? ​

optional workspace?: string

Defined in: use-cases/load-geojson/interfaces.ts:19

Optional workspace (schema) name. Defaults to autk when omitted.

Released under the MIT License.