Board index FlightGear Development Scenery

Photoscenery generator for Julia compiler

Questions and discussion about enhancing and populating the FlightGear world.

Re: Photoscenery generator for Julia compiler

Postby lomar » Tue Apr 05, 2022 7:35 pm

Hi, i tried to test the photoscenary.jl today and it didn't work. it got me some error messages but i don't know what they mean.

Code: Select all
C:\Users\felip\Downloads\Photoscenary>Julia photoscenary.jl
The actiual Julia is 1.6.2 The current version is correct in order to obtain the best performances

Photoscenary.jl ver: 0.3.3 date: Testing 20210726 System prerequisite test


Photoscenery generator by Julia compilator,
Program for uploading Orthophotos files

Version: ImageMagick 7.1.0-4 Q16 x64 2021-07-18 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Visual C++: 192930038
Features: Cipher DPC HDRI Modules OpenCL OpenMP(2.0)
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg jxl lcms lqr lzma openexr pangocairo png ps raqm raw rsvg tiff webp xml zip zlib

ImageMagic is operative!

Map server select id: 1 name: ESRI GIS: https://www.esri.com/en-us/about/about-esri/overview (Arcgis)

Create the Tile Database
Please wait for a few seconds to a few minutes
Search DDS/PNG files in path: C:\Users\felip)
Execute update images files, find n. 0 DDS files: 0 PNG files: 0 with size: 0.0 Mb
Term update DDS/PNG list files: find n. 2 dir with errors
The tiles database has been generated and verified
Found 0 .DDS tiles. The overall size of the files is: 0.0 MB

Start the elaboration n. 1 for 25 tiles the Area deg is latLL: 45.500 lonLL: 9.300 latUR: 45.900 lonUR: 10.000 Batch size: 25 Width 2048 | 1 to 2048 | 1 pix Cycle: 0
The images path is: C:\Users\felip\fgfs-scenery\photoscenery\Orthophotos

ERROR: LoadError: TaskFailedException
Stacktrace:
 [1] wait
   @ .\task.jl:322 [inlined]
 [2] threading_run(func::Function)
   @ Base.Threads .\threadingconstructs.jl:34
 [3] macro expansion
   @ .\threadingconstructs.jl:93 [inlined]
 [4] main(args::Vector{String})
   @ Main C:\Users\felip\Downloads\Photoscenary\photoscenary.jl:1303
 [5] top-level scope
   @ C:\Users\felip\Downloads\Photoscenary\photoscenary.jl:1425

    nested task error: MethodError: no method matching moveOrDeleteTiles(::Int64, ::String, ::Int64, ::Nothing)
    Closest candidates are:
      moveOrDeleteTiles(::Int64, ::String, ::Int64) at C:\Users\felip\Downloads\Photoscenary\tilesDatabase.jl:123
      moveOrDeleteTiles(::Int64, ::String, ::Int64, ::String) at C:\Users\felip\Downloads\Photoscenary\tilesDatabase.jl:123
    Stacktrace:
     [1] createDDSorPNGFile(rootPath::String, tp::Tuple{String, String, Float64, Float64, Float64, Float64, Int64, Int64, Float64, Int64, Float64, Int64, Int64}, overWriteTheTiles::Int64, imageMagickPath::Nothing, mapServer::MapServer, tileDatabase::IndexedTable{StructArrays.StructVector{Tuple{Int64, TailGroupByIndex}, Tuple{Vector{Int64}, Vector{TailGroupByIndex}}, Int64}}, isPngFileFormatOnly::Bool, pathToSave::Nothing, debugLevel::Int64)
       @ Main C:\Users\felip\Downloads\Photoscenary\photoscenary.jl:870
     [2] macro expansion
       @ C:\Users\felip\Downloads\Photoscenary\photoscenary.jl:1306 [inlined]
     [3] (::var"#239#threadsfor_fun#47"{Float64, Int64, IndexedTable{StructArrays.StructVector{Tuple{Int64, TailGroupByIndex}, Tuple{Vector{Int64}, Vector{TailGroupByIndex}}, Int64}}, Int64, Bool, MapServer, Vector{Any}})(onethread::Bool)
       @ Main .\threadingconstructs.jl:81
     [4] (::var"#239#threadsfor_fun#47"{Float64, Int64, IndexedTable{StructArrays.StructVector{Tuple{Int64, TailGroupByIndex}, Tuple{Vector{Int64}, Vector{TailGroupByIndex}}, Int64}}, Int64, Bool, MapServer, Vector{Any}})()
       @ Main .\threadingconstructs.jl:48
in expression starting at C:\Users\felip\Downloads\Photoscenary\photoscenary.jl:1425
lomar
 
Posts: 479
Joined: Mon Jun 30, 2014 2:38 am
Location: Rio de Janeiro, Brazil
Callsign: lomar
Version: nightly
OS: win 10

Re: Photoscenery generator for Julia compiler

Postby Michat » Wed Apr 06, 2022 12:30 am

@lomar

With Julia photoscenary.jl it seems your hello world it's not okay.

Can you tried forcing using julia -t 10 photoscenary.jl -s 4 -i LEFM and share the console ?



In our case:
photoscenary.jl is the command I have recommended to user Miguel w10, in order to relaunch the action, when the previous command Ex: julia -t 10 photoscenary.jl -s 4 -i ICAO seems to get freeze, with photoscenary.jl we get the progress ahead running from the stack.

This last two weeks we have had problems with FGJulita, it seems the photoscenery folder lost the dds. So after executing every ICAO he moves the folder in other place, if not the next time you generate an area you will lose the textures of the previous generations.
FYI We tried Julia 1.7.4 Miguel w10 has the same problem we need to use the sequence above to get it work, and next move the folder to avoid to be removed.

29.92
Last edited by Michat on Sun Apr 24, 2022 8:23 pm, edited 2 times in total.
User avatar
Michat
 
Posts: 1226
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac

Re: Photoscenery generator for Julia compiler

Postby abassign » Sat Apr 23, 2022 4:48 pm

Michat wrote in Wed Apr 06, 2022 12:30 am:@lomar
With Julia photoscenary.jl it seems your hello world it's not okay.
Can you tried forcing using julia -t 10 photoscenary.jl -s 4 -i LEFM and share the console ?


I try with Linux (Ubuntu) and Julia version 1.7.2

You did not enter me, after giving the command, what comes out on the terminal. It is important to know otherwise I cannot tell you much.
However one thing is certain, you have to use Julia with a version from 1.6.x onwards (currently version 1.7.2 is active), as you can see from the printout of what comes out of the terminal my version is 1.7.2 and I don't have had problems.
A julia note -t 10 is very high, if you don't have a machine with many CPUs it could be slowed down other functions of the OS. Normally -t 3 for CPU i5 -t 6 for CPU i7-i9 is sufficient.

Let me know which OS you are using, the CPU and RAM and which version of Juli you have installed.
Here you can download newer versions of Julia:
https://julialang.org/downloads/

Code: Select all
abassign@abassign-P7xxTM1:~/github/Photoscenary$ julia -t 10 photoscenary.jl -s 4 -i LEFM
The actiual Julia is 1.7.2 The current version is correct in order to obtain the best performances

Photoscenary.jl ver: 0.3.15 date: 20211003 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.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
Copyright: (C) 1999-2021 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 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  =>  0
  latll  =>  0.0
  path  =>  nothing
  map  =>  1
  nosave  =>  false
  args  =>  nothing
  lonur  =>  0.0
  radius  =>  0.0
  sdwn  =>  0
  connect  =>  nothing
  proxy  =>  nothing
  png  =>  false
  attemps  =>  3
  debug  =>  0
  version  =>  false
  route  =>  nothing
  save  =>  nothing
  size  =>  4
  lonll  =>  0.0
  search  =>  nothing
  icao  =>  LEFM
  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 ICAO mode

The ICAO term LEFM is found in the database
        Ident: LEFM
        Name: Fuentemilanos Airport
        City: Segovia
        Central point lat: 40.8886 lon: -4.2375 radius: 10.0 nm

The program try to configures the default 'fgfs-scenery/photoscenery' path

Path to locate the DDS/PNG orthophotos files: '/home/abassign/fgfs-scenery/photoscenery/Orthophotos'

Path to save the DDS/PNG orthophotos files: '/home/abassign/fgfs-scenery/photoscenery/Orthophotos-saved'

Create the Tile Database
Please wait for a few seconds to a few minutes

Search and test the DDS/PNG files in path: /home/abassign
Execute update images files, find n. 318 DDS files: 292 PNG files: 26 with size: 1230 Mb Time: 32.1
Term update DDS/PNG list files: find n. 0 dir with errors
The tiles database has been generated and verified

Start the elaboration n. 1 for 24 tiles the Area deg is latLL: 40.700 lonLL: -4.500 latUR: 41.200 lonUR: -3.800 Batch size: 24 Width 8192 | 4 to 8192 | 4 pix Cycle: 0
The images path is: /home/abassign/fgfs-scenery/photoscenery/Orthophotos

The image in -4.312,40.812,-4.250,40.844 load in the matrix: x = 4 y = 3 Task: 15 th: 4 try: 1 time: 35.26
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby abassign » Sat Apr 23, 2022 8:07 pm

lomar wrote in Tue Apr 05, 2022 7:35 pm:Hi, i tried to test the photoscenary.jl today and it didn't work. it got me some error messages but i don't know what they mean.


Hi, sorry for the delay in replying, but work commitments prevented me from following this post, I hope to be more attentive to your questions in the coming months.
Windows is always a problem for me, as I only use Linux (Ubuntu / Debian) and windows I have installed it as a virtual machine just to verify the program in Julia and obviously also to test particular programs that I use in the work of IT consultant.
The problem I think is due to the Julia installation, I don't know if I guess, but there could be a double installation, for example a Julia 1.5 and then a Julia 1.6.2 and in the middle of the two installations you tried to install photoscenary.jl
If so, probably the packages automatically installed by the program need to be reinstalled, unfortunately I don't have an uninstaller, and therefore the deletion work should be done for the individual modules.

With Julia there is a very simple technique, that of deleting Julia's hidden file that she keeps inside all the modules, thus bringing Julia back to zero.
For windows the simplest thing is to delete the directory:
Code: Select all
C:/Users/username/.julia

Note the name with the dot in front of the word julia!
That directory, you can also find it through the windows find, is dynamically generated by julia, if you delete it, at the first start of julia it is rebuilt.
Then run the photoscenary.jl program and the program will regenerate the files it needs.
Of course there is no need to uninstall ImageMagick!
Let me know if the method worked, so I can put it in the manual on the Wiki.
Thanks for collaboration.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby abassign » Sat Apr 23, 2022 8:19 pm

Valafenn wrote in Sun Apr 03, 2022 10:12 am:Hi to all
First, many thanks for the abilities to download photoscenery :)


The photoscenary.jl program can avoid having to download many tiles, but only those strictly necessary for the correct vision of the scene, with a gradual reduction of the resolution with the distance. This method is described in this chapter of the manual:

Generation of tiles along the route with maximum efficiency and quality
https://wiki.flightgear.org/Julia_photoscenery_generator#Generation_of_tiles_along_the_route_with_maximum_efficiency_and_quality

It is a feature that I use a lot because it makes it possible not to have too many images and it works with the point of view of the plane. For example, if you fly at high altitude, the loaded scenario will be of low resolution, therefore it will weigh little and will be quick to download from the servers.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby Michat » Sun Apr 24, 2022 8:22 pm

Hi, abassign just to confirm you that everything is working now. Exactly, the problem was that we by mistake changed -t 3 by -t 10. FG Julita is working fine, and no more DDS disappearance.

Thank you and 29.92 for you.
User avatar
Michat
 
Posts: 1226
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac

Re: Photoscenery generator for Julia compiler

Postby oly2b » Fri May 27, 2022 3:16 pm

Having used the Julia compiler so some while, I have recently encounted problems

Map server select id: 1 name: ESRI GIS: https://www.esri.com/en-us/about/about-esri/overview (Arcgis)
ERROR: LoadError: IOError: readdir("C:\\Users\\Owner\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Low\\Content.IE5"): permission denied (EACCES)

I can still run for indivual airfields but not routes

Under Win10 any clues what to investigate?
oly2b
 
Posts: 57
Joined: Mon Jun 29, 2020 7:55 am
Location: UK
Callsign: G-OLYB
Version: 2020.1
OS: Windows

Re: Photoscenery generator for Julia compiler

Postby abassign » Mon May 30, 2022 8:20 am

oly2b wrote in Fri May 27, 2022 3:16 pm:Having used the Julia compiler so some while, I have recently encounted problems ... Under Win10 any clues what to investigate?


Currently I have no news of others who use the program with Windows 10 and 11 with access problems of this type.
The problem is discussed here:
https://www.tenforums.com/browsers-email/145709-windows-10-internet-explorer-content-ie5-folder-unable-access.html

Since the program performs an internet access to download files from websites that allow it, the list can be found in the file: params.xml

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<params>
    <versioning>
        <version>0.3.15</version>
        <autor>Adriano Bassignana</autor>
        <year>2021</year>
        <licence>GPL 2</licence>
    </versioning>
    <imageMagick>
        <path/>
    </imageMagick>
    <servers>
        <server>
            <id>1</id>
            <name>Arcgis</name>
            <comment>ESRI GIS: https://www.esri.com/en-us/about/about-esri/overview</comment>
            <url-base>http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export?</url-base>
            <url-command>bbox={lonLL},{latLL},{lonUR},{latUR}|bboxSR=4326|size={szWidth},{szHight}|imageSR=4326|format=png24|f=image</url-command>
        </server>
        <server>
            <id>2</id>
            <name>USGS</name>
            <comment>United States only. Public domain license</comment>
            <url-base>https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/export?</url-base>
            <url-command>bbox={lonLL},{latLL},{lonUR},{latUR}|bboxSR=4326|size={szWidth},{szHight}|imageSR=4326|format=png24|f=image</url-command>
        </server>
        <server>
            <id>3</id>
            <name>PNOA</name>
            <comment>PNOA only Spain, license CC-BY</comment>
            <url-base>https://www.ign.es/wms-inspire/pnoa-ma?</url-base>
            <url-command>SERVICE=WMS|VERSION=1.1.1|REQUEST=GetMap|LAYERS=OI.OrthoimageCoverage|SRS=EPSG:4326|BBOX={lonLL},{latLL},{lonUR},{latUR}|WIDTH={szWidth}|HEIGHT={szHight}|FORMAT=image/png</url-command>
        </server>
        <server>
            <id>4</id>
            <name>Geoportal</name>
            <comment>geoportal.gov.pl only Poland, license (https://www.geoportal.gov.pl/data/free-data)</comment>
            <url-base>https://mapy.geoportal.gov.pl/wss/service/PZGIK/ORTO/WMS/StandardResolution/WMSServer? </url-base>
            <url-command>REQUEST=GetMap|VERSION=1.3.0|TRANSPARENT=TRUE|LAYERS=RASTER|STYLES=|CRS=CRS:84|EXCEPTIONS=xml|BBOX={lonLL},{latLL},{lonUR},{latUR}|WIDTH={szWidth}|HEIGHT={szHight}|FORMAT=image/png</url-command>
        </server>
    </servers>
</params>


You can try to use the --map n command with n the server id number you want to use, eg you can try --map 2 which uses the USGS website and see if the problem still exists.
However, since that address refers to a system file not managed by the program, I think the problem is in the WIndows configuration.

See if you solve the problem and post your test results in this forum.
It would also be helpful to show the command you ran.
If you want more information about the problems you can turn on debugging which shows a lot more things, as explained here:

https://wiki.flightgear.org/Julia_photoscenery_generator#--debug_or_-d

Greetings, Adriano
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby merspieler » Mon May 30, 2022 1:10 pm

Hey, do you have a link to the page mentioning that the Spanish source in your xml is CC BY?
I'm currently collecting open data sources for open ortho scenery for ws3... I'd like to add that...
also the polish source tho I don't see anything if redistribution is allowed or not. Any clarification on these would be appreciated.
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2241
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

Re: Photoscenery generator for Julia compiler

Postby wlbragg » Mon Jul 25, 2022 6:24 pm

@abassign, just in case you haven't heard it lately, I sure do like and appreciate your photo scenery generator. It's simply outstanding! Thank you!
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: Photoscenery generator for Julia compiler

Postby abassign » Tue Aug 30, 2022 9:13 pm

Hello everybody,
I just updated in GIT photoscenary.jl to be compatible with Julia 1.8 which just came out.
Unfortunately this new version modifies a database library which requires an additional module and therefore cannot work if someone is using version 1.8 of Julia.
I recommend everyone to install 1.8 as it has further improved the compilation speed and therefore makes starting the program much faster.
Obviously if there are any problems please report them to me so that I can correct them.
I currently don't know what to add to the program. My only concern is about what will be done for the WS3 which I have currently tested, but it does not seem very practical at the photoscenary level. In fact, the version in Julia performs a loading and management of modules with a LOD method that makes downloading from distribution sites fast. I don't know if WS3 does the same thing or if it simply manages the LOD on large images, in this case I foresee considerable memory occupation problems and obviously long times for downloading the scenarios.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby merspieler » Wed Aug 31, 2022 6:54 am

ws3 is simple, you just pregenerate the LOD, put it into the right structure and it gets used automagiccally.
download times don't change if you use the same resolution, provided you generate the LOD and do not download every lod level over and over again
memory consumption actually decreases compared to same quality ws2 scenery what does increase is the storage needed.
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2241
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

Re: Photoscenery generator for Julia compiler

Postby MariuszXC » Wed Aug 31, 2022 11:05 am

merspieler wrote in Wed Aug 31, 2022 6:54 am:you just pregenerate the LOD, put it into the right structure and it gets used automagiccally


Just thinking.. Ortophoto sources provide different resolutions/lod for same area, but frequently these images were taken at different seasons. So, if used as they are, one might expect the scene to visually transform e.g. from summer to winter, as they get closer. This would look highly unnatural. What would be the best download strategy, then? Would downloading only the highest resolution tiles from the server and then generating the lower res tiles locally be optimal?
INOP
MariuszXC
 
Posts: 1061
Joined: Tue May 18, 2021 5:38 pm
Location: Europe
Callsign: SP-MRM
Version: 2020.4
OS: Ubuntu 16.04

Re: Photoscenery generator for Julia compiler

Postby merspieler » Wed Aug 31, 2022 11:23 am

as I said, DO NOT download each lod level...
you've already got the best solution... this is how I'm doing it in my ortho script and that works well. it just takes a good bit more processing power but in total it should be faster than downloading everything
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2241
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

Re: Photoscenery generator for Julia compiler

Postby abassign » Thu Sep 01, 2022 10:02 pm

MariuszXC wrote in Wed Aug 31, 2022 11:05 am:
merspieler wrote in Wed Aug 31, 2022 6:54 am:you just pregenerate the LOD, put it into the right structure and it gets used automagiccally


Just thinking.. Ortophoto sources provide different resolutions/lod for same area, but frequently these images were taken at different seasons. So, if used as they are, one might expect the scene to visually transform e.g. from summer to winter, as they get closer. This would look highly unnatural. What would be the best download strategy, then? Would downloading only the highest resolution tiles from the server and then generating the lower res tiles locally be optimal?


Interesting consideration. During testing I noticed that the resolution that the image server sends is almost always a reduction of the high resolution image. Although there are cases in which this rule is not present, but they are related to the tiles, that is to the covered areas. Unfortunately the servers use different images (It is said in topography, I worked in that sector, which are different shooting campaigns). Therefore it is always necessary to foresee that the problem is present, I often think of applying a normalization algorithm on the image, perhaps with an AI program (Julia easily allows to do such processing in a very short time) in order to minimize the problem. But during testing I noticed that 70-80% of the images can be fine of the 1024 images (or even less), while only a small percentage is fair that it is at progressively higher resolution. Using the program with the right parameters, the download takes place on average using small images and if you increase in altitude the downloaded images will be smaller and smaller. This makes the download much faster (even 10 and more times) and likewise I have a substantial reduction in local disk space.

This is a typical distribution of files in a folder in which 250 K files and 67000 K files coexist in order to have a substantial space compression:

Code: Select all
-rw-rw-r-- 1 abassign abassign  4194432 ott 26  2021 3301704.dds
-rw-rw-r-- 1 abassign abassign  1048704 ott 26  2021 3301705.dds
-rw-rw-r-- 1 abassign abassign  1048704 ott 26  2021 3301706.dds
-rw-rw-r-- 1 abassign abassign   262272 ott 26  2021 3301707.dds
-rw-rw-r-- 1 abassign abassign 16777344 ott 26  2021 3301712.dds
-rw-rw-r-- 1 abassign abassign  4194432 ott 26  2021 3301713.dds
-rw-rw-r-- 1 abassign abassign  1048704 ott 26  2021 3301714.dds
-rw-rw-r-- 1 abassign abassign   262272 ott 26  2021 3301715.dds
-rw-rw-r-- 1 abassign abassign 16777344 ott 26  2021 3301720.dds
-rw-rw-r-- 1 abassign abassign  4194432 ott 26  2021 3301721.dds
-rw-rw-r-- 1 abassign abassign  1048704 ott 26  2021 3301722.dds
-rw-rw-r-- 1 abassign abassign   262272 ott 26  2021 3301723.dds
-rw-rw-r-- 1 abassign abassign 67108992 ott 26  2021 3301728.dds
-rw-rw-r-- 1 abassign abassign 16777344 ott 26  2021 3301729.dds
-rw-rw-r-- 1 abassign abassign  4194432 ott 26  2021 3301730.dds
-rw-rw-r-- 1 abassign abassign   262272 ott 26  2021 3301731.dds
-rw-rw-r-- 1 abassign abassign 16777344 ott 26  2021 3301736.dds
-rw-rw-r-- 1 abassign abassign  4194432 ott 26  2021 3301737.dds
-rw-rw-r-- 1 abassign abassign  1048704 ott 26  2021 3301738.dds
-rw-rw-r-- 1 abassign abassign   262272 ott 26  2021 3301739.dds
-rw-rw-r-- 1 abassign abassign  4194432 ott 26  2021 3301744.dds
-rw-rw-r-- 1 abassign abassign  4194432 ott 26  2021 3301745.dds
-rw-rw-r-- 1 abassign abassign  1048704 ott 26  2021 3301746.dds
-rw-rw-r-- 1 abassign abassign   262272 ott 26  2021 3301747.dds
-rw-rw-r-- 1 abassign abassign  4194432 ott 26  2021 3301752.dds
-rw-rw-r-- 1 abassign abassign  1048704 ott 26  2021 3301753.dds
-rw-rw-r-- 1 abassign abassign  1048704 ott 26  2021 3301754.dds
-rw-rw-r-- 1 abassign abassign   262272 ott 26  2021 3301755.dds
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

PreviousNext

Return to Scenery

Who is online

Users browsing this forum: No registered users and 8 guests