Export Configuration
The configuration settings for the export
command are divided into "exportOptions"
for general export
settings and "writeOptions"
for output file settings and format-specific options.
The names and purposes of the JSON properties align closely with their counterparts in the command-line options. Where applicable, the description of each JSON property links to the command-line option for more details. |
Export options
The example below illustrates the JSON structure for the export options.
{
"exportOptions": {
"numberOfThreads": 4,
"targetSrs": { (1)
"srid": 4326,
"identifier": "http://www.opengis.net/def/crs/EPSG/0/4326"
},
"affineTransform": [0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0],
"lodOptions": {
"lods": ["2","3"],
"mode": "minimum"
},
"appearanceOptions": {
"exportAppearances": true,
"themes": ["foo","bar"],
"numberOfTextureBuckets": 10
},
"query": {...},
"validityOptions": {...},
"tiling": {...}
}
}
1 | Use either "srid" , "identifier" , or both to define the target CRS. |
General export options
Property | Description | Default value |
---|---|---|
Number of threads to use for parallel processing. |
||
Specifies the CRS for reprojecting geometries during export. Use the |
||
Transform coordinates using a 3x4 matrix in row-major order. The matrix coefficients are represented as array. |
||
Defines an |
||
The |
Query options
The "query"
property is a container object for the following query and filtering options.
{
"query": {
"featureTypes": [ (1)
{
"name": "bldg:Building"
},
{
"name": "Road",
"namespace": "http://3dcitydb.org/3dcitydb/transportation/5.0"
}
],
"filter": {
"op": "s_intersects",
"args": [
{
"property": "core:envelope"
},
{
"bbox": [10.0,10.0,20.0,20.0]
}
]
},
"filterSrs": { (2)
"srid": 4326,
"identifier": "http://www.opengis.net/def/crs/EPSG/0/4326"
},
"countLimit": {
"limit": 1000,
"startIndex": 20
},
"lodFilter": {
"lods": ["2","3"],
"mode": "or",
"searchDepth": 1
},
"sorting": {
"sortBy": [
{
"property": "core:objectId",
"sortOrder": "desc"
}
]
}
}
}
1 | The "name" property is mandatory. To avoid ambiguity, use the format "prefix:name" with a namespace alias as prefix or
specify the full namespace using the "namespace" property. |
2 | Use either "srid" , "identifier" , or both to define the target CRS. |
Property | Description | Default value |
---|---|---|
Array of JSON objects specifying the features to process. Each object must include the |
||
A CQL2 filter expression, encoded as CQL2 text or JSON. |
||
Specifies a CRS for filter geometries that differs from the VCDB CRS. Use the |
||
The |
||
Defines an |
||
Array of |
Validity options
The "validityOptions"
property is a container object for filtering features based on their validity.
{
"validityOptions": {
"mode": "valid",
"reference": "database",
"at": "2018-07-01",
"lenient": false
}
}
Property | Description | Default value |
---|---|---|
Process features by validity: |
|
|
Check validity at a specific point in time. If provided, the time must be in |
||
Validity time reference: |
|
|
Ignore incomplete validity intervals of features. |
|
Tiling options
The "tiling"
property is a container object for defining tiled exports.
{
"tiling": {
"extent": {
"coordinates": [10.0,10.0,20.0,20.0],
"srs": { (1)
"srid": 4326,
"identifier": "http://www.opengis.net/def/crs/EPSG/0/4326"
}
},
"tileMatrixOrigin": "topLeft",
"scheme": {...}
}
}
1 | Use either "srid" , "identifier" , or both to define the target CRS. |
Property | Description | Default value |
---|---|---|
Defines a 2D bounding box as tiling extent using a |
|
|
Tile indexes origin: |
|
The "scheme"
property is an object that defines the tiling scheme, with the
"type"
property indicating the specific scheme being used.
-
Dimension
-
Matrix
{
"scheme": {
"type": "Dimension",
"width": {
"value": 2.0,
"unit": "km"
},
"height": {
"value": 2.0,
"unit": "km"
}
}
}
Property | Description | Default value |
---|---|---|
|
|
|
Specifies the width of each tile using the |
||
Specifies the height of each tile using the |
Write options
The JSON structure for storing write options is shown below. Format-specific settings are provided within the
"formatOptions"
container object, with the output format name used as the key for the corresponding settings.
You only need to provide format-specific options for the file format that matches your output files. |
{
"writeOptions": {
"failFast": false,
"numberOfThreads": 4,
"tempDirectory": "/path/to/temp",
"encoding": "UTF-8",
"srsName": "http://www.opengis.net/def/crs/EPSG/0/25832",
"formatOptions": {
"CityGML": {...},
"CityJSON": {...}
}
}
}
General write options
Property | Description | Default value |
---|---|---|
Fail fast on errors. |
|
|
Number of threads to use for parallel processing. |
||
Store temporary files in this directory. |
||
Encoding to use for the output file. |
||
Name of the CRS to use in the output file. |
CityGML options
The "CityGML"
property is a container object for CityGML-specific format options.
{
"CityGML": {
"version": "3.0",
"prettyPrint": true,
"addressMode": "columnsFirst",
"xslTransforms": [
"/path/to/myFirstStylesheet.xsl",
"/path/to/mySecondStylesheet.xsl"
],
"useLod4AsLod3": false,
"mapLod0RoofEdge": false,
"mapLod1MultiSurfaces": false
}
}
Property | Description | Default value |
---|---|---|
CityGML version: |
|
|
Format and indent output file. |
|
|
|
Specifies how to construct addresses based on the
|
|
An array of XSLT stylesheets to transform the output, referenced by filename and path (absolute or relative). The stylesheets are applied in the specified order. |
||
Use LoD4 as LoD3, replacing an existing LoD3. |
|
|
Map LoD0 roof edges onto roof surfaces. |
|
|
Map LoD1 multi-surfaces onto generic thematic surfaces. |
|
CityJSON options
The "CityJSON"
property is a container object for CityJSON-specific format options.
{
"CityJSON": {
"version": "2.0",
"jsonLines": true,
"prettyPrint": false,
"htmlSafe": false,
"vertexPrecision": 3,
"templatePrecision": 3,
"textureVertexPrecision": 7,
"transformCoordinates": true,
"replaceTemplateGeometries": false,
"useMaterialDefaults": true,
"fallbackTheme": "unnamed",
"useLod4AsLod3": false,
"writeGenericAttributeTypes": false
}
}
Property | Description | Default value |
---|---|---|
CityJSON version: |
|
|
Write output as CityJSON Sequence in JSON Lines format. This option requires CityJSON 1.1 or later. |
|
|
Format and indent output file. |
|
|
Write JSON that is safe to embed into HTML. |
|
|
Number of decimal places to keep for geometry vertices. |
3 |
|
Number of decimal places to keep for template vertices. |
3 |
|
Number of decimal places to keep for texture vertices. |
7 |
|
Transform coordinates to integer values when exporting in CityJSON 1.0. |
|
|
Replace template geometries with real coordinates. |
|
|
Name of the CRS to use in the output file. |
|
|
|
Defines the fallback theme used when the |
|
|
Adds an extra root property to the CityJSON output that lists generic attributes along with the CityGML data types. |
|
Use LoD4 as LoD3, replacing an existing LoD3. |
|