TheEagle wrote in Mon Jul 26, 2021 12:27 am:Why is this so complicated ?
~$ tg-construct --threads=9999 --priorities=tg-prio.txt --work-dir=./work --output-dir=../fgscenery/MtBrocken-landing-strip/Terrain --tile-id=3122034 AirportArea
0.01 [ALRT]:general tg-construct version 2.1.0
0.01 [ALRT]:general Output directory is ../fgscenery/MtBrocken-landing-strip/Terrain
0.01 [ALRT]:general Working directory is ./work
0.01 [ALRT]:general Shared directory is ./work/Shared
0.01 [ALRT]:general Match directory is
0.01 [ALRT]:general Tile id is 3122034
0.01 [ALRT]:general Nudge is 0
0.01 [ALRT]:general Load directory: AirportArea
0.01 [ALRT]:general Priorities file is tg-prio.txt
0.01 [ALRT]:general Building tile 3122034
0.04 [ALRT]:general 3122034 - Construct in e010n50/e010n51 tile 1 of 1 using thread 139739428542208
0.04 [ALRT]:general 3122034 - Loading landclass polys
0.05 [ALRT]:general 3122034 - Clipping landclass polys
0.06 [ALRT]:general 3122034 - Cleaning landclass polys
1.45 [ALRT]:general 3122034 - Construct in e010n50/e010n51 tile 1 of 1 using thread 139739536783104
1.45 [ALRT]:general 3122034 - Fix T-Junctions
1.45 [ALRT]:general 3122034 - Tesselate
1.47 [ALRT]:general 3122034 - Lookup Nodes Per Vertex
1.47 [ALRT]:general 3122034 - Calculate Elevation Per Node
1.47 [ALRT]:general 3122034 - Lookup Faces Per Node
2.89 [ALRT]:general 3122034 - Construct in e010n50/e010n51 tile 1 of 1 using thread 139655535302400
2.89 [ALRT]:general 3122034 - Lookup Faces Per Node (again)
2.89 [ALRT]:general 3122034 - Average Edge Node Elevations
2.89 [ALRT]:general 3122034 - Calculate Face Normals
2.89 [ALRT]:general 3122034 - Calculate Point Normals
2.89 [ALRT]:general 3122034 - Calculate Texture Coordinates
2.89 [ALRT]:general 3122034 - Generate BTG File
2.91 [ALRT]:general 3122034 - Generate Custom Objects
4.35 [ALRT]:general [Finished successfully]
Elapsed time: 4.35512 seconds
~$ tg-construct --threads --priorities=tg-prio.txt --work-dir=./work --output-dir=../fgscenery/MtBrocken-landing-strip/Terrain --tile-id=3122034 AirportObj SRTM-3 Default
0.01 [ALRT]:general tg-construct version 2.1.0
0.01 [ALRT]:general Output directory is ../fgscenery/MtBrocken-landing-strip/Terrain
0.01 [ALRT]:general Working directory is ./work
0.01 [ALRT]:general Shared directory is ./work/Shared
0.01 [ALRT]:general Match directory is
0.01 [ALRT]:general Tile id is 3122034
0.01 [ALRT]:general Nudge is 0
0.01 [ALRT]:general Load directory: AirportObj
0.01 [ALRT]:general Load directory: SRTM-3
0.01 [ALRT]:general Load directory: Default
0.01 [ALRT]:general Priorities file is tg-prio.txt
0.01 [ALRT]:general Building tile 3122034
0.04 [ALRT]:general 3122034 - Construct in e010n50/e010n51 tile 1 of 1 using thread 140542651844352
0.32 [ALRT]:general 3122034 - Loading landclass polys
0.33 [ALRT]:general 3122034 - Clipping landclass polys
0.33 [ALRT]:general 3122034 - Cleaning landclass polys
1.86 [ALRT]:general 3122034 - Construct in e010n50/e010n51 tile 1 of 1 using thread 140542643451648
2.28 [ALRT]:general 3122034 - Fix T-Junctions
3.13 [ALRT]:general 3122034 - Tesselate
4.61 [ALRT]:general 3122034 - Lookup Nodes Per Vertex
4.66 [ALRT]:general 3122034 - Calculate Elevation Per Node
4.67 [ALRT]:general 3122034 - Lookup Faces Per Node
6.14 [ALRT]:general 3122034 - Construct in e010n50/e010n51 tile 1 of 1 using thread 140458635405056
7.16 [ALRT]:general 3122034 - Lookup Faces Per Node (again)
7.26 [ALRT]:general 3122034 - Average Edge Node Elevations
7.26 [ALRT]:general 3122034 - Calculate Face Normals
7.30 [ALRT]:general 3122034 - Calculate Point Normals
7.32 [ALRT]:general 3122034 - Calculate Texture Coordinates
7.66 [ALRT]:general 3122034 - Generate BTG File
10.66 [ALRT]:general 3122034 - Generate Custom Objects
10.82 [ALRT]:general [Finished successfully]
Elapsed time: 10.8251 seconds
wkitty42 wrote in Fri Jul 23, 2021 9:47 pm:let it run... you'll soon figure out why a full world scenery build took months and months to run to completion
~$ gdalchop work/SRTM-3/ data/SRTM-3/N51E010.hgt
~$ terrafit -e 5 -x 20000 -f -j 4 work/SRTM-3/
~$ genapts850 --input=data/airports/MBLS.dat --work=work --dem-path=work/SRTM-3/ --max-slope=50 --threads=4 --verbose
~$ tg-construct --threads=9999 --priorities=tg-prio.txt --work-dir=./work --output-dir=../fgscenery/MtBrocken-landing-strip/Terrain --tile-id=3122034 AirportObj SRTM-3 Default EvergreenForest
wkitty42 wrote in Mon Jul 26, 2021 12:22 am:why there are height differences is another question... apparently the height data is not the same as originally used...
Fahim Dalvi wrote in Thu Jul 29, 2021 12:51 pm:Thats great news! I'm glad it worked out in the end.
~$ ogr2ogr -where "type in ('tertiary')" BrockenSceneryWorkspace/data/shapefiles/highways_tertiary.shp BrockenSceneryWorkspace/data/shapefiles/osm_roads/osm_roads.shp
ERROR 1: "type" not recognised as an available field.
ERROR 1: SetAttributeFilter(type in ('tertiary')) on layer 'osm_roads' failed.
~$ ogr2ogr -where "fclass = 'tertiary'" BrockenSceneryWorkspace/data/shapefiles/highways_tertiary.shp BrockenSceneryWorkspace/data/shapefiles/osm_roads/osm_roads.shp
#!/bin/bash
# Check arguments
if [ $# -lt 2 ]; then
echo "Usage: bash extract_features_shapefile.sh <path-to-shapefile> <path-to-output-dir>"
exit
fi
src_shp=$1
dest_dir=$2
# Extract available feature list in supplied shapefile
echo "Extracting available features..."
feature_list=$(ogrinfo -al $src_shp | grep 'fclass (String)' | tr -s ' ' | cut -d' ' -f5 | sort | uniq)
echo "Found following features:"
for feat in ${feature_list}; do
echo $feat
done
# Create shapefile per feature from supplied shapefile
echo "Creating new shapefiles..."
mkdir -p $dest_dir
for feat in ${feature_list}; do
echo "Processing $feat..."
mkdir -p $dest_dir/osm_$feat
ogr2ogr -where "FCLASS LIKE '"$feat"'" $dest_dir/osm_$feat/osm_$feat.shp $src_shp
done
TheEagle wrote in Thu Jul 29, 2021 12:56 pm:Yeah, I think I'm going to write a wiki article "TerraGear FAQ" , where I'll write down the experiences I made with TerraGear in the last days. what do you think
Users browsing this forum: No registered users and 7 guests