Hi Gijs,

> Source is at Gitorious: 
> https://gitorious.org/terragear-addons/terrageargui
What a lovely start... thanks...

While it all went quite smoothly in Win32 (XP), did
_NOT_ have as much luck in Ubuntu. 

In Ubuntu, it appears the Qt install did NOT add all 
the needed packages, or something... On the first
build got LOTS of errors like say :-
/home/geoff/fg/fg14/TerraGUI-build-desktop/ui_mainwindow.h:226: 
 error: ‘class QTabWidget’ has no member named ‘setDocumentMode’
/home/geoff/fg/fg14/TerraGUI-build-desktop/ui_mainwindow.h:227:
 error: ‘class QTabWidget’ has no member named ‘setTabsClosable’
etc...

This sort of suggests the 'wrong' version of widgets, or 
something...

BUT no such trouble in XP (Win32). App built fine, so I headed
out trying to build some Sydney (YSSY) scenery...
 Max Lat : -31
 Min lon : 150 Max lon : 159
 Min Lat : -40

The [Download shapefiles] correctly got me a mapserver zip with
cs_default, cs_drycrop, cs_everygreenforest, cs_floodland,
cs_grassland, cs_intermittentlake, cs_lake, cs_mixedforest,
cs_sand, cs scrub and cs_urban (dbf/prj/shp/shx)... 

But at this stage there seems no offer to run 'shape_decode'
to chop these into usable stuff... maybe later...

The button [Download elevation files] (S40E150 - S31E159) worked,
but it only put me on the usgs site, which I suppose is a better 
than nothing ;=)).

But I had to 'remember' that I needed SRTM3/Australia, so I built
a batch file to rock through the LAT/LON and used 'wget'
to get the zip files, then unzipped to get the HGT set.

Then the next tab [HGT Chop] did a fantastic job of
setting up <some_root>/work/SRTM-30/<chunk>/<tile>/
<index>.fit.gz and arr.gz. Great stuff... must check what
terrafit parameters were used, since this greatly influences
the elevation mesh to be used...

Then onto [Genapts] tab. A little surprised on the 'insistence'
that apt.dat.gz be de-gzipped first. Surely that could be
handled in Qt?

But anyway [Generate airport] started ok, but I wish there
was some stronger indicator that things were going ok...

Yes, there is the log.txt to show the last command line
item run...

And yes, there is the log window, but at certain times the
genapts process appeared 'stuck'...

Wait, looking at the code, I see the genapts command runs
'genapts'. and waits until it ends, and only then outputs
to the log window... So for some reason genapts only
ran for ONE airport - YPEC.btg.gz!!!

Why ONLY one? So I pushed it again, and again it only
re-did the ONE... What's happening here??? 

Re-running the command line from log.txt manually, and 
this got ALL the airports in my chosen min-max region 
built... some 33 airports, after about an hour or so 
running... and ended with the HAPPY - 
 [FINISHED CORRECTLY]

So the question is more why when run inside tg-gui
I only get ONE? Will leave that for another day ;=))

Moving onto the next tab [OGR Decode], and ok it seems
it is here that my shape files are going to be dealt
with... But nothing happens when I push [Retrieve 
shapefiles]!

Where does it expect them to be? 
Try in 'Project directory', but nothing...
AH HA, they have to be in '<Project directory>\data' ;=))
Somehow missed that, but ok...

So now I get the above 'cs_....' list. It seems a good
guess could be made at setting the 'Material' column
from the mapserver names. Or EVEN get the mapserver
to use the actual TG material names where possible,
perhaps still with 'cs_' pre-pended!

Got my 11 shapefiles aligned with a Material, so
push the big button [Decode ...]... Some question
in my mind as to where is the 'boundary' set?

BUT YOW, TerrGUI.exe CRASHED, with the MS 'sorry for the
inconvenience' dialog ;=(( I decide to NOT send the
error to MS ;=))

And there is NO command line added the log.txt,
so not sure what it was trying to 'run'... the
log.txt ends with the two 'genapts' entries mentioned
above...

Reloaded, set all the Materials again, but it crashed
again... just showing exited with code -1073741819...
Also now note some other messages in here - namely
2 of -
QProcess: Destroyed while process is still running.

Is this something to do with the 'genapts' failure?

Anyway, that is all I have time for today...

As stated, really an EXCELLENT start. Not sure why
the Qt compile trouble in Ubuntu, and why the [OSG Decode]
tab, [Decode shapefile...] button crashed.

Ah, quickly discovered more on the crash, by setting a Debug
trap... I had forgot to put a value in the Line Width column,
and thus it aborted on :-
 500 QString lineWidth = ui->tblShapeAlign->item(i, 2)->text();
since there was NO text to get...

Again why not fill in a 'default' line width value? I do not
remember what a good, a reasonable value should be so
I add '2' to each...

After adding a number, the log.txt shows it ran
'ogr_decode' for each items, BUT nothing was output???

Why is that ogr_decode and not shape_decode???

Anyway *** MUST RUN *** today ;=() This is really a good
start at removing the 'terror'...

HTH,

Regards,
Geoff.



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to