[gdal-dev] gdalwarp has blank metadata

Adam Dershowitz adershowitz at exponent.com
Mon Feb 13 13:32:02 PST 2017

I have been using gdalwarp to convert a geotiff to NetCDF format.  The odd thing is that if the result is in feet, I get blank units in my output metadata units.  While if I go to meters, I get the correct units.

So for example this works correctly:

gdalwarp  -t_srs EPSG:3651 -of netCDF cea.tif cea_m.nc

and gdalinof shows data like this:
  y#long_name=y coordinate of projection

While this:
gdalwarp  -t_srs EPSG:3652 -of netCDF cea.tif cea_ft.nc

Has this metadata:
  y#long_name=y coordinate of projection

The reason that this is an issue is that I’m trying to view this data with a reader that is crashing due to the empty strings.  I have reported a bug there, and it is being addressed.
But, it does seem like there is also an issue with gdalwarp generating these empty strings for netCDF files.  Shouldn’t these strings contain “feet”?
I did try to use gdal_edit to try to change that, but didn’t have any luck for the netCDF file.

Any suggestions for how to fix these files?  And, how to work around this problem?


-- Adam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170213/15cb5315/attachment.html>

More information about the gdal-dev mailing list