[mapserver-users] Mapserver 7.0 and NODATA setting

Yves Jacolin yves.jacolin at camptocamp.com
Mon Sep 7 04:18:45 PDT 2015


Andrea,

Maybe you can have a look into VRT format where you can set up a NODATA value.

Regards,

Y.
On Sunday, September 06, 2015 12:32:12 Andrea Peri wrote:
> Hi,
> 
> I have no success to find any info on the NODATA question in the
> floating point raster.
> 
> Is this kind of raster suitable for use on mapserver ?
> 
> Thx.
> 
> 2015-08-18 10:27 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
> > HI,
> > 
> > The question of NODATA processing command is not completelly clear afaik.
> > Infact I found a patch from warmerdam:
> > 
> > https://trac.osgeo.org/mapserver/ticket/2404
> > 
> > Where it speak explicitly of a PROCESSING "NODATA" setting.
> > 
> >>I would note that OFFSITE is still supported, and the usual PROCESSING
> >>"NODATA=OFF" >mechanism can be used to disable using GDAL level nodata.>>
> > A.
> > 
> > 2015-08-18 9:28 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
> >> Hi,
> >> 
> >> I have a clearly response from the log.
> >> 
> >> The nodata is unsupported for this kind of rasters.
> >> 
> >>> LoadGDALImage(rt_sat.LC8191.rt.attuale): NODATA value -9999 in GDAL
> >>>
> >>>file or PROCESSING directive largely ignored.  Not yet fully supported
> >>>for
> >>>unclassified scaled data.  The NODATA value is excluded from auto-scaling
> >>>min/max computation, but will not be transparent.
> >>>
> >> So I must found another solution for my rasters.
> >> 
> >> Regards.
> >> 
> >> 2015-08-18 9:08 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
> >>> So my question is a little different.
> >>> 
> >>> Seem that mapserver was not able to automatically understand the
> >>> NODATA values of floating point rasters.
> >>> 
> >>> In my usecase: the NODATA value is -9999.0
> >>> I produce the catalog using gdaltindex, and apply the result to
> >>> mapserver 7.
> >>> 
> >>> The result is this:
> >>> 
> >>> http://tinyurl.com/ndsdyr8
> >>> 
> >>> The only partially solution I found was to set
> >>> OFFSITE 0 0 0
> >>> but it is acceptable for my usecase because the black color is a color
> >>> really available inside the rasters and it is not usable as a
> >>> transparent color.
> >>> 
> >>> Is this an issue for mapserver 7 ?
> >>> 
> >>> Thx,
> >>> 
> >>> A.
> >>> 
> >>> 2015-08-17 16:11 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
> >>>> Hi Jukka.
> >>>> 
> >>>> Perhaps you have right !
> >>>> 
> >>>> The NODATA setting is an ancient setting that I reuse always in my
> >>>> mapfiles but only now I notice that the mapserver document don't
> >>>> report him.
> >>>> So more probably it is a false setting.
> >>>> 
> >>>> But , if the nodata setting dont exist, how say to the mapserver to
> >>>> filter the nodata of a floating raster  ?
> >>>> 
> >>>> Thx.
> >>>> 
> >>>>> --
> >>>>> -----------------
> >>>>> Andrea Peri
> >>>>> . . . . . . . . .
> >>>>> qwerty àèìòù
> >>>>> -----------------
> >>>>> _______________________________________________
> >>>>> mapserver-users mailing list
> >>>>> mapserver-users at lists.osgeo.org
> >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >>>> 
> >>>> --
> >>>> -----------------
> >>>> Andrea Peri
> >>>> . . . . . . . . .
> >>>> qwerty àèìòù
> >>>> -----------------
> >>> 
> >>> --
> >>> -----------------
> >>> Andrea Peri
> >>> . . . . . . . . .
> >>> qwerty àèìòù
> >>> -----------------
> >> 
> >> --
> >> -----------------
> >> Andrea Peri
> >> . . . . . . . . .
> >> qwerty àèìòù
> >> -----------------
> > 
> > --
> > -----------------
> > Andrea Peri
> > . . . . . . . . .
> > qwerty àèìòù
> > -----------------

-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 58 48 20 43 (new !)
Tel (Suisse) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com


More information about the mapserver-users mailing list