Import CityJSON into cjdb
cityjson_db_importConverts a CityJSON dataset to CityJSONSeq with cjio, then imports it into PostgreSQL/PostGIS using cjdb; supply the database password through PGPASSWORD.
Instructions
Convert the dataset to CityJSONSeq with cjio and import it into PostgreSQL/PostGIS using cjdb. PostgreSQL password should be supplied through PGPASSWORD, not tool arguments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_id": "<dataset_id>",
"connection": "<connection>"
},
"name": "cityjson_db_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | ||
| dataset_id | Yes | Filename returned by cityjson_open, cityjson_import, or a transformation. Internal dataset handles also work for compatibility. | |
| attribute_indexes | No | ||
| partial_attribute_indexes | No |