Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The OGR spatial engine provides support for additional formats not directly supported by Weave based on the OGR GDAL library, a . A list of the available formats is available here. Note, note that link provides a list of the latest supported formats , which may include newer ones than those supported by Weave or newer parameters than are supported by Weave.

Different OGR drivers require different parameters, documented at the link above, but each spatial engine should have dbtype set to “ogr”"ogr", and a driverName corresponding to the OGR driver, or the dbtype set to the factory name of the driver. A list of the available OGR driver names is output to the weave.log file when Weave starts (at log level INFO), e.g.

...

Info

The list of available OGR drivers are those that have been made available by the GDAL project and does not imply that it would make sense to actually use that driver they would all be valid drivers to use with Weave.

Some OGR drivers only support a single table whereas others can be pointed to a source that contains multiple tables, e.g. you can point to a GeoJSON file that will only have one listed table, or a directory or MapInfo files that will list one table per file.

...

Name

Type

Required

Description

id

string

yes

Unique identifier for the spatial engine

dbtype

string

yes

If set to “ogr” then driverName will specify the OGR driver to use (from the list of available OGR drivers).
Otherwise should be one of the OGR driver factories (from the list of OGR data store factories).

driverName

string

yes - if dbtype is “ogr”
no - if dbtype is not “ogr”

The name of the OGR driver to use if dbtype is “ogr”, otherwise it is not used

datasourceName

string

yes - if dbtype is “ogr”
no - if dbtype is not “ogr”

Points to the source of the data, will depend upon which OGR driver is used

datasource

string

no - if dbtype is “ogr”
yes - if dbtype is not “ogr”

Points to the source of the data, will depend upon which OGR driver is used

...