Oh so it is like a sort of virtualbox snapshot?
(I already had to work with Virtual Machines)
And the folder myscenery it's like a folder common to the VM and the host PC?
So now every file that I create inside that folder is permanent?
ludomotico wrote in Wed Jun 10, 2020 10:19 pm:We have only mapped "myscenery", and this means any change or new file outside the internal "myscenery" directory will be lost when you exit the container! For example: you can install any additional program you need inside the container, but it won't be there if you exit the container and run again. Only files in "myscenery" will be kept between executions. This also means you can't break anything: exit, run again and you'll have a clean environment.
sudo docker run --rm -ti -v $(pwd):/home/flightgear/myscenery flightgear/terragear bash
sudo docker run --rm -ti -v $(pwd):/home/flightgear/myscenery flightgear/terragear \
genapts850 --input=myscenery/input/apt.dat --work=myscenery/work --dem-path=myscenery/work/SRTM-3
sudo docker run --rm -ti -v $(pwd):/home/flightgear/myscenery flightgear/terragear \
ogr-decode --max-segment 500 --line-width 10 --area-type Stream myscenery/work/Stream myscenery/input/shapefiles/v0_stream
alias tgenv="sudo docker run --rm -ti -v $(pwd):/home/flightgear/myscenery flightgear/terragear"
tgenv genapts850 --input=myscenery/input/apt.dat --work=myscenery/work --dem-path=myscenery/work/SRTM-3
tgenv ogr-decode --max-segment 500 --line-width 10 --area-type Stream myscenery/work/Stream myscenery/input/shapefiles/v0_stream
ludomotico wrote in Thu Jun 11, 2020 10:09 am:- ogr-decode, input your custom shape, output to a work directory. Show your magic with this command!
Note The text in this section refers to using data from the MapServer, which has been discontinued. Land use data (shapefiles) should be acquired from another source for now.
ludomotico wrote in Thu Jun 11, 2020 2:15 pm:With ogr-decode, assign a custom landclass to this shape. For example: TILEIDENTIFIER_photo.
ogr-decode --max-segment 500 --line-width 10 --area-type TILEidentifier myscenery/output myscenery/input
ludomotico wrote in Thu Jun 11, 2020 10:09 am:- tg-construct: build all together to a .btg file. Input to the working directory, outputs to an output directory.
tg-construct --output-dir=myscenery/output --work-dir=myscenery/input --min-lat=38.8750 --min-lon=16.0000 --max-lat=39.0000 --max-lon=16.500
0.00 [ALRT]:general tg-construct version 2.1.0
0.00 [ALRT]:general Output directory is myscenery/output
0.00 [ALRT]:general Working directory is myscenery/input
0.00 [ALRT]:general Shared directory is myscenery/input/Shared
0.00 [ALRT]:general Match directory is
0.00 [ALRT]:general Longitude = 16:16.5
0.00 [ALRT]:general Latitude = 38.875:39
0.00 [ALRT]:general Nudge is 0
0.00 [ALRT]:general Unable to open priorities file /home/flightgear/dist/share/TerraGear/default_priorities.txt
0.00 [ALRT]:general Building tile(s) within given bounding box
0.00 [ALRT]:general construction area spans tile boundaries
0.00 [ALRT]:general 3219512 - Construct in e010n30/e016n38 tile 1 of 4 using thread 139960543704832
0.00 [ALRT]:general 3219512 - Loading landclass polys
0.00 [ALRT]:general 3219513 - Construct in e010n30/e016n38 tile 2 of 4 using thread 139960543704832
0.00 [ALRT]:general 3219513 - Loading landclass polys
0.00 [ALRT]:general 3219520 - Construct in e010n30/e016n39 tile 3 of 4 using thread 139960543704832
0.00 [ALRT]:general 3219520 - Loading landclass polys
0.00 [ALRT]:general 3219521 - Construct in e010n30/e016n39 tile 4 of 4 using thread 139960543704832
0.00 [ALRT]:general 3219521 - Loading landclass polys
5.00 [ALRT]:general 3219512 - Construct in e010n30/e016n38 tile 1 of 4 using thread 139960543704832
5.00 [ALRT]:general 3219513 - Construct in e010n30/e016n38 tile 2 of 4 using thread 139960543704832
5.00 [ALRT]:general 3219520 - Construct in e010n30/e016n39 tile 3 of 4 using thread 139960543704832
5.00 [ALRT]:general 3219521 - Construct in e010n30/e016n39 tile 4 of 4 using thread 139960543704832
10.00 [ALRT]:general 3219512 - Construct in e010n30/e016n38 tile 1 of 4 using thread 139960543704832
10.00 [ALRT]:general 3219513 - Construct in e010n30/e016n38 tile 2 of 4 using thread 139960543704832
10.00 [ALRT]:general 3219520 - Construct in e010n30/e016n39 tile 3 of 4 using thread 139960543704832
10.00 [ALRT]:general 3219521 - Construct in e010n30/e016n39 tile 4 of 4 using thread 139960543704832
Elapsed time: 15.0008 seconds
15.00 [ALRT]:general [Finished successfully]
what is the difference between line data and point data(--line-width and --point-width)?
ludomotico wrote in Tue Jun 16, 2020 9:38 am:Your shape is an area, so both of these options do not apply. For completion:
- point data: an old option, in case you only have the position of a city and not its shape. Converts cities (described as points) into large squares. Useless these days.
- line data: converts streams, rivers, roads... Not useful in your case.
ludomotico wrote in Tue Jun 16, 2020 9:38 am:If I remember correctly, you must pass the list of landclasses to tg-construct. In you case, only "TILEidentifier"
Users browsing this forum: Google [Bot] and 1 guest