[postgis-users] Problem with gdalbuildvrt with no data collars on tiles...

Jae Ogilvie jae.ogilvie at UNB.CA
Sat May 4 05:39:12 PDT 2013


Hello All,

 

I am new to the world of PostGIS and GDAL, but I'm looking for some help.

 

I've researched and it appears that gdalbuildvrt is supposed to be able to 

resolve overlap areas when "no data values" are defined for the sources, 

but I am unable to produce the expected results. Where elevation raster 

values exist in the overlap areas, the values on both tiles are the same,

so I have no need for a computational mosaic, simply a merge of the data

which pays no attention to "no data" in either source raster.

 

I've tried the following workflow:

1. Set No data values to -999

gdal_translate -ot float32 -of gtiff -a_nodata -999 in_original.tif 

out_nodata_defined.tif

 

2. Build VRT with specified source no data value

gdalbuildvrt -srcnodata -999 -hidenodata out.vrt 

out_nodata_defined.tif

 

Am I doing something wrong?

 

 <http://www.unb.ca/fredericton/forestry/people/ogilvie.html> Jae Ogilvie,
Research Associate

Faculty of Forestry & Environmental Management

University of New Brunswick

28 Dineen Drive

Fredericton, NB

Canada E3B 6C2

Tel. 506 451 6823  Fax. 506 453 3538

Web  <http://watershed.for.unb.ca/> http://watershed.for.unb.ca/

 

 

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20130504/0235521c/attachment.html>


More information about the postgis-users mailing list