[Qgis-developer] Raster tools (GDAL plugin) some annoyances

Benoit de Cabissole benoit at exigesa.com
Fri Aug 13 01:37:51 EDT 2010


Hi Giuseppe,

Many thanks for the prompt reply and fixes. Very well appreciated.

I've had a look at the ui code for the Translate dialog and effectively I've
noticed that the spinbox was limited from 0 to 255.
That seemed odd because I'm generally using rasters having "real life"
values: e.g. the SRTM data can varies from 0 to 8 000 metres for example.
More generally, in my case anyway, we have values in the range -70 000 to
+70 000 or even wider. We do not scale the real values to colour range [0,
255] because we always want to act on those values.

My two cents.

Thanks again,
Benoit
  -----Original Message-----
  From: Giuseppe Sucameli [mailto:brush.tyler at gmail.com]
  Sent: Friday, 13 August 2010 03:02
  To: benoit at exigesa.com
  Cc: qgis-developer at lists.osgeo.org
  Subject: Re: [Qgis-developer] Raster tools (GDAL plugin) some annoyances


  Hi Benoit,


  On Thu, Aug 12, 2010 at 2:40 PM, Benoit de Cabissole <benoit at exigesa.com>
wrote:

    Hi GDAL plugin developers,

    The 'new' translate dialog box refers.

    1) I want to setup the No data value to 99999 but the textbox only
allows me
    to enter 2 digits, after that I have to click on the up arrow for a
looooong
    time to get to 99999! Is that restriction on purpose, is it a Qt
limitation?

  No Qt limit, in this moment the NoData maximum value is wrong (255).


    2) Also, in the same dialog, I want to convert a TIFF (GTiff) to an
ASCII
    grid (AAIGrid) so, in the Output file Select dialog I choose a type of
    "[GDAL] Arc *.Info ASCII Grid (*.asc *.ASC)" and give a name "test.asc"
but
    the script info box (bottom textbox) shows "-of GTiff" and although the
    extension of the output file is .asc it creates a tiff file when run! Is
it
    on purpose?

  It's an issue due to a workaround added before applying the patch
  at #2376. Now I can remove it (better if I add a test to keep GdalTools
  compatible with old QGis versions).


    What I'm doing in copying the script to a DOS window, change GTiff to
    AAIGrid and run the script, it works flawlessly but it is a pain. Could
you
    consider allowing editing the text in the script info box and run this
    edited script?

  We want to add this feature ASAP, but it could require some time.


  Fixed both issues from r14074.

  Cheers

  --
  Giuseppe Sucameli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100813/d035eeb4/attachment-0001.html


More information about the Qgis-developer mailing list