[gdal-dev] Copying metadata - GDALGetMetadata returns nothing in
UMN MapServer WCS
Maarten Plieger
plieger at knmi.nl
Thu Jul 3 10:04:44 EDT 2008
Hi,
Currently I am working on a driver which writes NetCDF4/NetCDF3, with a
lot of metadata. The idea is that metadata from the sourcefiles will be
available in the destination file, when using for example gdal_translate.
I am wondering why I can't retrieve metadata in the CreateCopy function,
when I am using gdal in the WCS of UMN MapServer...
I use this: papszMetadata = GDALGetMetadata( (GDALDataset *) poDS,"");
This returns metadata when I use gdal_translate.
The problem is that no metadata is returned when I use the driver in UMN
MapServer WCS.
I Guess it has something to do with mapserver creating a virtual layer,
somewhere loosing the the information. Maybe mapserver thinks that only
the raster data is necessary?
I see this in my loggings of apache:
GDAL: GDALDriver::Create(MEM,msSaveImageGDAL_temp,1440,720,1,Int16,(nil))
Please Help! What am I doing wrong? I guess there is a simple solution?
Or is it true that metadata is lost in mapserver...?
Thanks in advance,
Maarten
--
Maarten Plieger
KNMI, R&D Information and Observation Technology, De Bilt
(t) +31 30 2206330
More information about the gdal-dev
mailing list