Skip to content
pyautark (soon)

@urban-toolkit/autk-db


@urban-toolkit/autk-db / CsvWktGeometryColumns

Interface: CsvWktGeometryColumns

Defined in: use-cases/load-csv/interfaces.ts:45

Describes how to build geometry from a single WKT column.

The resulting layer family is inferred after the WKT text is parsed into DuckDB spatial geometries.

Example

ts
const geometryColumns: CsvWktGeometryColumns = {
  wktColumnName: 'geometry_wkt',
  coordinateFormat: 'EPSG:3857',
};

Properties

coordinateFormat?

optional coordinateFormat?: string

Defined in: use-cases/load-csv/interfaces.ts:49

CRS of the source WKT geometry before it is transformed into the workspace CRS.


wktColumnName

wktColumnName: string

Defined in: use-cases/load-csv/interfaces.ts:47

Name of the column that stores WKT geometry text such as POINT(...) or POLYGON(...).

Released under the MIT License.