A basic CLI tool used to export spatial data to geopackage.
See man page
property | type | description | required | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
datasource |
object
|
source database configuration |
true |
||||||||||||||||||||||||||||
contents |
Array<object>
|
configuration of data to export |
true |
property | type | description | required |
---|---|---|---|
tableName |
string |
table containing data to export |
true |
columns |
Array<string> |
list of columns to export (must contain a column with spatial data) |
true |
filter |
string |
filter |
false |
maxFeatures |
number |
maximum number of features to export |
false |
property | type | description | required |
---|---|---|---|
identifier |
string |
identifier of geopackage content |
false |
description |
string |
description of geopackage content |
false |
crs |
string |
crs of spatial data, if not set source crs will be used, otherwise it will be reprojected to defined one |
false |
{
"datasource": {
"host": "that.host",
"port": 5432,
"database": "that_db",
"schema": "that_schema",
"user": "mkeal",
"password": "azerty"
},
"contents": [
{
"source": {
"tableName": "that_table",
"columns": ["height", "geom"],
"filter": "height > 10",
"maxFeatures": 50
},
"geopackage": {
"identifier": "stuff",
"crs": "EPSG:4326",
"description": "so much stuff"
}
},
{
"source": {
"tableName": "that_other_table",
"columns": ["size", "name","geom"],
"filter": "size = 42"
},
"geopackage": {
"identifier": "another stuff",
"crs": "EPSG:2154",
"description": "so much other stuff"
}
}
]
}