Skip to content

Commit

Permalink
import cityGML cityjson ver0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MScMOSS committed Dec 19, 2024
1 parent fc4f62a commit 42ddd1c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 14 deletions.
4 changes: 3 additions & 1 deletion docs/citydb-tool/.pages
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
nav:
- index.md
- db-connection.md
- import.md
- import:
- imoprt.md
- import_cityjson.md
- Export:
- export_shared_options.md
- export_citygml.md
Expand Down
33 changes: 20 additions & 13 deletions docs/citydb-tool/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,45 +21,53 @@ The command provides a range of [OPTIONS] to adapt the import process.

## Import Data

OPTION / command | discription
------------ | -------------
OPTION / command | discription | default
------------ | ------------- | -------------
`@<filename>...` | One or more argument files containing options.
`<file>...` | One or more files and directories to process (globpatterns allowed).
`--input-encoding= <encoding>` | Encoding of input file(s).
`--fail-fast` | Fail fast on errors.
`--temp-dir= <dir>` | Store temporary files in this directory.
`--threads=<threads>`| Number of threads to use for parallel processing.
`--preview`| Run in preview mode. Features will not be imported.
`--index-mode=<mode>` | Index mode: keep, drop, drop_create (default: keep). Consider dropping indexes when processing large quantities of data.
`--index-mode=<mode>` | Index mode: keep, drop, drop_create Consider dropping indexes when processing large quantities of data. | keep
`--compute-extent` | Compute and overwrite extents of features.
`--import-xal-source` | Import XML snippets of xAL address elements.
`-x`, `--xsl-transform=<stylesheet>[,<stylesheet>...]` | Apply XSLT stylesheets to transform input.
`--log-file=<file>`| Write log messages to this file.
`--pid-file=<file>` | Create a file containing the process ID.
`--plugins=<dir>` | Load plugins from this directory.
`--use-plugins=<plugin[=true|false][,<plugin[=true|false]...]` | Enable or disable plugins with a matching fully qualified class name (default: true).
`--use-plugins=<plugin[=true|false][,<plugin[=true|false]...]` | Enable or disable plugins with a matching fully qualified class name | true

### Example
```bash
citydb --help
```

## Handling with duplicate features
OPTION / command | discription
------------ | -------------
skip | Duplicates in the input file are not imported into the database.
terminate | Duplicates in the database are terminated before importing the input file.
delete | Duplicates in the database are deleted before importing the input file.
import_all | All features from the input file are imported without checking for duplicates (default behaviour).

There are different options for the import to handle duplicate features based on the feature ID (i.e., gml:id).

OPTION / command | discription | default
------------ | ------------- | -------------
`-m, --import-mode=<mode>` | Import mode: skip, terminate, delete, import_all | import_all

skip --> Duplicates in the input file are not imported into the database.

terminate --> Duplicates in the database are terminated before importing the input file.

delete --> Duplicates in the database are deleted before importing the input file.

import_all --> All features from the input file are imported without checking for duplicates.

### Example
```bash
citydb --help
```

## Filter Options
OPTION / command | discription
------------ | -------------
OPTION / command | discription | default
------------ | ------------- | -------------
`-t`, `--type-name=<[prefix:]name>[,<[prefix:]name>...]`| Names of the features to process.
`-i`, `--id=<id>[,<id>...]` | Identifiers of the features to process.
`-b`, `--bbox=<x_min,y_min,x_max,y_max[,srid]>` | Bounding box to use as spatial filter.
Expand Down Expand Up @@ -91,4 +99,3 @@ You can use an textfile to combine and outsource commands and the link to the co
```bash
citydb import citygml <file> @options.txt
```
dhdghgdhgdhgd
26 changes: 26 additions & 0 deletions docs/citydb-tool/import_cityjson.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Import Cityjson
subtitle: Import Cityjson
description:
# icon: material/emoticon-happy
status: wip
---

The **import** command imports one or more CityGML or CityJSON files into the 3D City Database.

## Usage

To import your files to the 3D City Database it is necessary to give along the information for the connection. Look up [Database connection](db-connection.md) for further information.

Use `citydb import cityjson [OPTIONS] <file>` to import one or more citygml files from a directory into the database.

The command provides a range of [OPTIONS] to adapt the import process.

The different commands are identical to the import of CityGML up to one command.

# Options Table


OPTION / command | discription | default
------------ | ------------- | -------------
` --[no-]map-unknown-objects` | Map city objects from unsupported extensions onto generic city objects. | true

0 comments on commit 42ddd1c

Please sign in to comment.