Re: [gdal-dev] VRT band datatype issue

2018-08-27 Thread External
Thanks for the quick fix !

-Message d'origine-
De : Even Rouault [mailto:even.roua...@spatialys.com]
Envoyé : lundi 27 août 2018 13:34
À : gdal-dev@lists.osgeo.org
Cc : GUIMMARA, Sébastien (External) [FR]
Objet : Re: [gdal-dev] VRT band datatype issue

On lundi 27 août 2018 09:17:32 CEST GUIMMARA, Sébastien (External) [FR] wrote:
> Hi all,
>
> I am creating a VRT that translate from a 16bit dataset to a 8bit. Here is
> the raster band :
>
> 
>   
>   ...
>   0.75
>   0
>   65535
>   0
>   255
>   
>   
> 
>
> However, gdal_info 2.2 tells me that this VRT has DataType=Byte (OK), but
> the min/max are still 0/65535 instead of 0/255.
>
> How is it possible ?

An inappropriate optimization that didn't take into account exponential
scaling.
Fixed per
https://github.com/OSGeo/gdal/commit/c2b188a49baef70e4e05614be14caaa520341302

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
Please consider the environment before printing this email message.



Ce courriel (incluant ses éventuelles pièces jointes) peut contenir des 
informations confidentielles et/ou protégées ou dont la diffusion est 
restreinte. Si vous avez reçu ce courriel par erreur, vous ne devez ni le 
copier, ni l'utiliser, ni en divulguer le contenu à quiconque. Merci d'en 
avertir immédiatement l'expéditeur et d'effacer ce courriel de votre système. 
Airbus DS Geo décline toute responsabilité en cas de corruptionpar virus, 
d'altération ou de falsification de ce courriel lors de sa transmission par 
voie électronique.

This email (including any attachments) may contain confidential and/or 
privileged information or information otherwise protected from disclosure. If 
you are not the intended recipient, please notify the sender immediately, do 
not copy this message or any attachments and do not use it for any purpose or 
disclose its content to any person, but delete this message and any attachments 
from your system. Airbus DS Geo disclaims any and all liability if this email 
transmission was virus corrupted, altered or falsified.



Airbus DS Geo SA (325 089 589 RCS Toulouse) - Siege social: 5, rue des 
Satellites, 31400 Toulouse, France.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] VRT band datatype issue

2018-08-27 Thread Even Rouault
On lundi 27 août 2018 09:17:32 CEST GUIMMARA, Sébastien (External) [FR] wrote:
> Hi all,
> 
> I am creating a VRT that translate from a 16bit dataset to a 8bit. Here is
> the raster band :
> 
> 
>   
>   ...
>   0.75
>   0
>   65535
>   0
>   255
>   
>   
> 
> 
> However, gdal_info 2.2 tells me that this VRT has DataType=Byte (OK), but
> the min/max are still 0/65535 instead of 0/255.
> 
> How is it possible ?

An inappropriate optimization that didn't take into account exponential 
scaling.
Fixed per
https://github.com/OSGeo/gdal/commit/c2b188a49baef70e4e05614be14caaa520341302

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] HDF5 and NetCDF now have VSI support

2018-08-27 Thread James McClain
That is good news, I am glad to see that that capability is now available
to more people.

On Sun, Aug 26, 2018 at 3:07 PM Even Rouault 
wrote:

> Hi,
>
> I've pushed a change in master that now enables /vsi support for HDF5 for
> all
> operating systems, and not just Linux >= 4.3. This uses the HDF5 Virtual
> File
> Driver mechanism:
> https://support.hdfgroup.org/HDF5/doc/TechNotes/VFL.html
> which allows to plug a custom low-level I/O layer
>
> (In theory, as netCDF V4 uses HDF5 underneath, this could be available for
> it
> too, but the use of HDF5 is hidden by the netCDF API, so this would
> require
> patching libnetcdf)
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>


-- 
"I prayed for freedom for twenty years, but received no answer until I
prayed with my legs."
 -- Frederick Douglass
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] VRT band datatype issue

2018-08-27 Thread External
Hi all,

I am creating a VRT that translate from a 16bit dataset to a 8bit. Here is the 
raster band :


  
  ...
  0.75
  0
  65535
  0
  255
  
  


However, gdal_info 2.2 tells me that this VRT has DataType=Byte (OK), but the 
min/max are still 0/65535 instead of 0/255.

How is it possible ?

Sébastien

Please consider the environment before printing this email message.



Ce courriel (incluant ses éventuelles pièces jointes) peut contenir des 
informations confidentielles et/ou protégées ou dont la diffusion est 
restreinte. Si vous avez reçu ce courriel par erreur, vous ne devez ni le 
copier, ni l'utiliser, ni en divulguer le contenu à quiconque. Merci d'en 
avertir immédiatement l'expéditeur et d'effacer ce courriel de votre système. 
Airbus DS Geo décline toute responsabilité en cas de corruptionpar virus, 
d'altération ou de falsification de ce courriel lors de sa transmission par 
voie électronique.

This email (including any attachments) may contain confidential and/or 
privileged information or information otherwise protected from disclosure. If 
you are not the intended recipient, please notify the sender immediately, do 
not copy this message or any attachments and do not use it for any purpose or 
disclose its content to any person, but delete this message and any attachments 
from your system. Airbus DS Geo disclaims any and all liability if this email 
transmission was virus corrupted, altered or falsified.



Airbus DS Geo SA (325 089 589 RCS Toulouse) - Siege social: 5, rue des 
Satellites, 31400 Toulouse, France.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev