Robert Osfield writes:
> Hi Linh,
>
> On Wed, May 14, 2008 at 3:09 AM, Linh Phan
> <[EMAIL PROTECTED]> wrote:
> > Even when I set that to say, -2000, and regenerate the
> > DEM_1m_VictoriaCrater.tif, osgdem/VPB always use a value of
> 0 for everywhere
> > there is a <NoDataValue> in the generated terrain and not
> the value I set,
> > -2000. Is it possible for osgdem/VPB to recognize the
> <NoDataValue> feature
> > instead of asking USGS to not use the <NoDataValue> feature
> and put in a
> > value of -2000 for everywhere they don't have values as
> that would not be an
> > nice solution.
>
> In VPB there isn't any support for substituting a custom value for
> NoDataValue elements,
> this could be added though.
Or use gdal_translate on your file ahead of time to set this
-a_nodata value:
Assign a specified nodata value to output bands.
http://gdal.org/gdal_translate.html
Also note that you can use GDAL's vrt format to do this
http://gdal.org/gdal_vrttut.html
And then pass the .vrt file to VPB instead of your .tif
HTH
Norman
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org