abassign / photoscenary Goto Github PK
View Code? Open in Web Editor NEWPrograms to generate and manipulate photoscenaries for FGFS
License: GNU General Public License v2.0
Programs to generate and manipulate photoscenaries for FGFS
License: GNU General Public License v2.0
julia photoscenary.jl -h
and julia photoscenary.jl --help
gives version and usage informationToday I tried to load the GPX export from SkyVector.
The route is: https://skyvector.com/?ll=49.82894740601564,7.846984875039195&chart=301&zoom=5&fpl=%20EDGX%204916N00839E%204920N00833E%204922N00824E%204930N00818E%204940N00801E%204947N00739E%204948N00728E%204944N00719E%204951N00655E%204951N00650E%204950N00648E%204951N00646E%20EDRT
Command: julia photoscenary.jl --route /data/EDRT.gpx -p /data/OrtoPhoto/test/ -s 4 --over 1 -r 10
The actiual Julia is 1.9.4 The current version is correct in order to obtain the best performances
Photoscenary.jl ver: 0.4.00 date: 20230523 System prerequisite test
The Photoscenary.jl program has started, it can be stopped with CTRL-C
Photoscenery generator by Julia compilator,
Program for uploading Orthophotos files
Version: ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP(4.5)
Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png raw tiff webp wmf x xml zlib
ImageMagic is operative!
Arguments (params) saved in the file: args.txt
lat => nothing
latur => 0.0
tile => nothing
lon => nothing
over => 1
latll => 0.0
path => /data/OrtoPhoto/test/
map => 1
nosave => false
args => nothing
lonur => 0.0
radius => 10.0
sdwn => 0
connect => nothing
proxy => nothing
png => false
attemps => 3
debug => 0
version => false
route => /data/EDRT.gpx
save => nothing
size => 4
lonll => 0.0
search => nothing
icao => nothing
sexagesimal => false
Map server select id: 1 name: ESRI GIS: https://www.esri.com/en-us/about/about-esri/overview (Arcgis)
The program get localization is in ROUTE mode
Error: loadRoute in the route file: /data/EDRT.gpx
Error: processing will stop! The LAT or LON is invalid (exit code 405)
Should be photoscenery.
(Note I would generally stick to lower case for the first letter of the repository name, but that's a convention rather than a typo. :) )
Edit: I see this is throughout the code as well.
I have just installed Julia, then git clone
d this repository, then run julia photoscenary.jl --help
. Output is following:
fatal: error thrown and no exception handler available.
#<null>
jl_errorf at /home/user/.local/lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
jl_load_dynamic_library at /home/user/.local/lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
unknown function (ip: 0x7fd6aa7aca02)
jl_load_and_lookup at /home/user/.local/lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
jlplt_pcre2_compile_8_2341 at /home/user/.local/lib/x86_64-linux-gnu/julia/sys.so (unknown line)
compile at ./pcre.jl:120
compile at ./regex.jl:72
#occursin#363 at ./regex.jl:172 [inlined]
occursin at ./regex.jl:172 [inlined]
isdirpath at ./path.jl:117 [inlined]
normpath at ./path.jl:337
abspath at ./path.jl:383
abspath at ./path.jl:391
__init__ at ./sysinfo.jl:119
jfptr___init___14051 at /home/user/.local/lib/x86_64-linux-gnu/julia/sys.so (unknown line)
unknown function (ip: 0x7fd6aa8544d1)
unknown function (ip: 0x7fd6aa83f17b)
unknown function (ip: 0x55f4e19f559a)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x55f4e19f564d)
julia --version
gives
julia version 1.4.1
First of all thanks for this promising tool.
I am getting folders' names such as o-30n30 while I believe that FG expects w030n30.
A julia based gui would be cool:
julia photoscenary.jl --gui
It could gather the arguments in a graphical way and then invoke the main program; much like the FGFS --launcher does.
The airport list is incomplete...
For example YBRM is missing
Two of us are getting getting this error, when making -s 5/6 scenery near LSZH.
It works when doing -s 4 or 2 or 1.
Julia v1.8.3 (Error is also with v1.8.5)
Ubuntu 20.04, ImageMagick 6.9.10-23
julia -t 1 photoscenary.jl -s 5 -p /mnt/d/Flightgear/photoscenery5 --over 1 -r 1 -i LSZH --debug 4
...
The image in 8.719,47.469,8.750,47.484 load in the matrix: x = 8 y = 7 Task: 63 th: 1 try: 1 time: 97.80downloadImage - The file /mnt/d/Flightgear/photoscenery5/Orthophotos/e000n40/e008n47/3088986.png is downloaded
convert-im6.q16: no images defined `/mnt/d/Flightgear/photoscenery5/Orthophotos/e000n40/e008n47/3088986.dds' @ error/convert.c/ConvertImageCommand/3258.
createDDSorPNGFile - Error to convert the /mnt/d/Flightgear/photoscenery5/Orthophotos/e000n40/e008n47/3088986.png file in dds format
Debug set program #3.2.2
Debug set program #3.2.4
Debug set program #3.2.5
Time: 124 elab: 0 ( Inf| NaN) Tiles: 0 on 9 res 9 err 1 Th: 1 path: ../e000n40/e008n47/3088986.dds Dist: 1.7 pix: 16384 MB/s: 0.00 MB dw: 0.0 (HTTP! -10)
Debug set program #3.2.1
createDDSorPNGFile - copyTilesByIndex foundIndex: nothing | foundPath: nothing | toPath: nothing | tileDatabase: Table with 0 rows, 2 columns:
1 2
──── | tileIndex: 3088994 | tp[12]: 16384
┌ Warning: downloadImage - HTTP image start to download url: http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?bbox=8.5,47.5,8.53125,47.515625&bboxSR=4326&size=2048.0,1024.0&imageSR=4326&format=png24&f=image
I get the following stacktrace when I run the script:
$ julia photoscenary.jl -t 30 -s 5 -i loww -r 5
┌ Warning: Deprecated syntax `"begin" inside indexing expression` at /storage/ortho/photoscenary/photoscenary.jl:161.
└ @ /storage/ortho/photoscenary/photoscenary.jl:161
ERROR: LoadError: ArgumentError: Package Downloads not found in current path:
- Run `import Pkg; Pkg.add("Downloads")` to install the Downloads package.
Stacktrace:
[1] require(::Module, ::Symbol) at ./loading.jl:823
[2] include at ./boot.jl:317 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1044
[4] include(::Module, ::String) at ./sysimg.jl:29
[5] exec_options(::Base.JLOptions) at ./client.jl:266
[6] _start() at ./client.jl:425
in expression starting at /storage/ortho/photoscenary/photoscenary.jl:55
All I did was installing julia via apt, cloning the repo and run it.
Hey @abassign,
When using --map 2
(USGS), I get blank images. Here is the full command I am doing: julia -t $(nproc) photoscenary.jl -s 4 --over 1 -i KBOS -p /home/newo/.fgfs/Scenery/Ortho --map 2
.
I don't know if it's something serious, but when running julia photoscenary.jl
for the first time, julia downloads and installs dependencies and at the end of this operation I get an error message:
ERROR: LoadError: LoadError: UndefVarError: @everywhere not defined
in expression starting at /home/romek/Downloaded/Apps/FlightGear/Photoscenary/photoscenary.jl:167
in expression starting at /home/romek/Downloaded/Apps/FlightGear/Photoscenary/photoscenary.jl:167
But however, after second run of the command e.g.: julia -t 12 photoscenary.jl -r 10 -s 3 -i BIVI
the photoscenery seems to be generated correctly.
I checked for julia versions 1.6.7 and 1.9.2, with the ~/.julia directory cleared, for Windows 10 and Linux Mint, and this error always occurs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.