diff --git a/docs/citydb-tool/.pages b/docs/citydb-tool/.pages index ecb68ce..f9e5f00 100644 --- a/docs/citydb-tool/.pages +++ b/docs/citydb-tool/.pages @@ -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 diff --git a/docs/citydb-tool/import.md b/docs/citydb-tool/import.md index cc7624f..9e43ed7 100644 --- a/docs/citydb-tool/import.md +++ b/docs/citydb-tool/import.md @@ -21,8 +21,8 @@ The command provides a range of [OPTIONS] to adapt the import process. ## Import Data -OPTION / command | discription ------------- | ------------- +OPTION / command | discription | default +------------ | ------------- | ------------- `@...` | One or more argument files containing options. `...` | One or more files and directories to process (globpatterns allowed). `--input-encoding= ` | Encoding of input file(s). @@ -30,14 +30,14 @@ OPTION / command | discription `--temp-dir= ` | Store temporary files in this directory. `--threads=`| Number of threads to use for parallel processing. `--preview`| Run in preview mode. Features will not be imported. -`--index-mode=` | Index mode: keep, drop, drop_create (default: keep). Consider dropping indexes when processing large quantities of data. +`--index-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=[,...]` | Apply XSLT stylesheets to transform input. `--log-file=`| Write log messages to this file. `--pid-file=` | Create a file containing the process ID. `--plugins=` | Load plugins from this directory. -`--use-plugins=` | 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 @@ -58,8 +66,8 @@ 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=[,...]` | Identifiers of the features to process. `-b`, `--bbox=` | Bounding box to use as spatial filter. @@ -91,4 +99,3 @@ You can use an textfile to combine and outsource commands and the link to the co ```bash citydb import citygml @options.txt ``` -dhdghgdhgdhgd \ No newline at end of file diff --git a/docs/citydb-tool/import_cityjson.md b/docs/citydb-tool/import_cityjson.md new file mode 100644 index 0000000..4c255fd --- /dev/null +++ b/docs/citydb-tool/import_cityjson.md @@ -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] ` 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 \ No newline at end of file