Skip to content

Commit

Permalink
Merge pull request #27 from 3DGI/expose-lod-filter
Browse files Browse the repository at this point in the history
Expose lod filter
  • Loading branch information
balazsdukai authored Mar 13, 2023
2 parents 1191534 + 6343473 commit b4c9839
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 96 deletions.
280 changes: 190 additions & 90 deletions resources/geof/createGLB.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,176 +25,276 @@
"str",
"objectid:int,bronhouder:string,bgt_fysiekvoorkomen:string"
],
"cotypes": [
"comma separated list of cityobject types. Leave empty for no filter.",
"str",
"LandUse,PlantCover,WaterBody,Road,GenericCityObject,Bridge"
],
"max_x": [
"",
"float",
76690.0
],
"max_y": [
"",
"float",
454357.75
],
"max_z": [
"",
"float",
310.0
],
"metadata_class": [
"The name of the metadata class to create (for EXT_structural_metadata).",
"str",
"terrain"
],
"min_x": [
"",
"float",
76190.0
],
"min_y": [
"",
"float",
453857.75
],
"min_z": [
"",
"float",
-15.0
],
"output_file": [
"output (glb) file",
"str",
"/dev/shm/3dtiles-terrain/tiles/6/28/23.glb"
],
"output_format": [
"glb or city.json",
"str",
"3dtiles"
],
"path_features_input_file": [
"text file with on each line an input CityJSON feature path",
"str",
"/dev/shm/3dtiles-terrain/inputs/6/28/23.input"
],
"path_metadata": [
"CityJSON features metadata file",
"str",
"/mnt/Data/LocalData/Kadaster/3dbasisvoorziening_dh/features/metadata.city.json"
],
"simplify_ratio": [
"0-1 lower for more simplification",
"float",
0.05000000074505806
],
"skip_clip": [
"",
"bool",
false
],
"colorBridge": [
"colorBridge hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorBridgeConstructionElement": [
"colorBridgeConstructionElement hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorBridgeInstallation": [
"colorBridgeInstallation hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorBridgePart": [
"colorBridgePart hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorBuilding": [
"colorBuilding hex color (eg #AABBCC)",
"str",
"#EC7658"
],
],
"colorBuildingInstallation": [
"colorBuildingInstallation hex color (eg #AABBCC)",
"str",
"#EC7658"
],
],
"colorBuildingPart": [
"colorBuildingPart hex color (eg #AABBCC)",
"str",
"#EC7658"
],
],
"colorCityFurniture": [
"colorCityFurniture hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorGenericCityObject": [
"colorGenericCityObject hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorLandUse": [
"colorLandUse hex color (eg #AABBCC)",
"str",
"#C3DBB5"
],
],
"colorPlantCover": [
"colorPlantCover hex color (eg #AABBCC)",
"str",
"#A6CD59"
],
],
"colorRailway": [
"colorRailway hex color (eg #AABBCC)",
"str",
"#474447"
],
],
"colorRoad": [
"colorRoad hex color (eg #AABBCC)",
"str",
"#474447"
],
],
"colorSolitaryVegetationObject": [
"colorSolitaryVegetationObject hex color (eg #AABBCC)",
"str",
"#A6CD59"
],
],
"colorTINRelief": [
"colorTINRelief hex color (eg #AABBCC)",
"str",
"#A6CD59"
],
],
"colorTransportSquare": [
"colorTransportSquare hex color (eg #AABBCC)",
"str",
"#474447"
],
],
"colorTunnel": [
"colorTunnel hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorTunnelInstallation": [
"colorTunnelInstallation hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorTunnelPart": [
"colorTunnelPart hex color (eg #AABBCC)",
"str",
"#4F4A6A"
],
],
"colorWaterBody": [
"colorWaterBody hex color (eg #AABBCC)",
"str",
"#293A4A"
]
],
"cotypes": [
"comma separated list of cityobject types. Leave empty for no filter.",
"str",
"LandUse,PlantCover,WaterBody,Road,GenericCityObject,Bridge"
],
"lodBuilding": [
"lod filter for Building features",
"str",
""
],
"lodBuildingPart": [
"lod filter for BuildingPart features",
"str",
""
],
"lodBuildingInstallation": [
"lod filter for BuildingInstallation features",
"str",
""
],
"lodTINRelief": [
"lod filter for TINRelief features",
"str",
""
],
"lodRoad": [
"lod filter for Road features",
"str",
""
],
"lodRailway": [
"lod filter for Railway features",
"str",
""
],
"lodTransportSquare": [
"lod filter for TransportSquare features",
"str",
""
],
"lodWaterBody": [
"lod filter for WaterBody features",
"str",
""
],
"lodPlantCover": [
"lod filter for PlantCover features",
"str",
""
],
"lodSolitaryVegetationObject": [
"lod filter for SolitaryVegetationObject features",
"str",
""
],
"lodLandUse": [
"lod filter for LandUse features",
"str",
""
],
"lodCityFurniture": [
"lod filter for CityFurniture features",
"str",
""
],
"lodBridge": [
"lod filter for Bridge features",
"str",
""
],
"lodBridgePart": [
"lod filter for BridgePart features",
"str",
""
],
"lodBridgeInstallation": [
"lod filter for BridgeInstallation features",
"str",
""
],
"lodBridgeConstructionElement": [
"lod filter for BridgeConstructionElement features",
"str",
""
],
"lodTunnel": [
"lod filter for Tunnel features",
"str",
""
],
"lodTunnelPart": [
"lod filter for TunnelPart features",
"str",
""
],
"lodTunnelInstallation": [
"lod filter for TunnelInstallation features",
"str",
""
],
"lodGenericCityObject": [
"lod filter for GenericCityObject features",
"str",
""
],
"max_x": [
"",
"float",
76690.0
],
"max_y": [
"",
"float",
454357.75
],
"max_z": [
"",
"float",
310.0
],
"metadata_class": [
"The name of the metadata class to create (for EXT_structural_metadata).",
"str",
"terrain"
],
"min_x": [
"",
"float",
76190.0
],
"min_y": [
"",
"float",
453857.75
],
"min_z": [
"",
"float",
-15.0
],
"output_file": [
"output (glb) file",
"str",
"/dev/shm/3dtiles-terrain/tiles/6/28/23.glb"
],
"output_format": [
"glb or city.json",
"str",
"3dtiles"
],
"path_features_input_file": [
"text file with on each line an input CityJSON feature path",
"str",
"/dev/shm/3dtiles-terrain/inputs/6/28/23.input"
],
"path_metadata": [
"CityJSON features metadata file",
"str",
"/mnt/Data/LocalData/Kadaster/3dbasisvoorziening_dh/features/metadata.city.json"
],
"simplify_ratio": [
"0-1 lower for more simplification",
"float",
0.05000000074505806
],
"skip_clip": [
"",
"bool",
false
]
},
"nodes": {
"Box": {
Expand Down
25 changes: 20 additions & 5 deletions resources/geof/process_feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,26 @@
"atribute_spec": "{{attribute_spec}}",
"cotypes": "{{cotypes}}",
"lod_filter": {
"Building": "1.3",
"LandUse": "1.2",
"PlantCover": "1.2",
"Road": "1.2",
"WaterBody": "1.2"
"Building": "{{lodBuilding}}",
"BuildingPart": "{{lodBuildingPart}}",
"BuildingInstallation": "{{lodBuildingInstallation}}",
"TINRelief": "{{lodTINRelief}}",
"Road": "{{lodRoad}}",
"Railway": "{{lodRailway}}",
"TransportSquare": "{{lodTransportSquare}}",
"WaterBody": "{{lodWaterBody}}",
"PlantCover": "{{lodPlantCover}}",
"SolitaryVegetationObject": "{{lodSolitaryVegetationObject}}",
"LandUse": "{{lodLandUse}}",
"CityFurniture": "{{lodCityFurniture}}",
"Bridge": "{{lodBridge}}",
"BridgePart": "{{lodBridgePart}}",
"BridgeInstallation": "{{lodBridgeInstallation}}",
"BridgeConstructionElement": "{{lodBridgeConstructionElement}}",
"Tunnel": "{{lodTunnel}}",
"TunnelPart": "{{lodTunnelPart}}",
"TunnelInstallation": "{{lodTunnelInstallation}}",
"GenericCityObject": "{{lodGenericCityObject}}"
},
"optimal_lod": false,
"optimal_lod_value": "2.2"
Expand Down
Loading

0 comments on commit b4c9839

Please sign in to comment.