[gdal-dev] Re: Access to MetaData in driver implementation

lidiriel ludovic.mercier at gmail.com
Mon Mar 16 08:24:23 EDT 2009


Thanks Frank,

I CPLParseNameValue is usefull. Now it's work i have a new version of
ISIS2 (Pds driver) that read and write pds file.
But it's only for a detached label at this moment.

Best regards.


On 13 mar, 16:58, Frank Warmerdam <warmer... at pobox.com> wrote:
> lidiriel wrote:
> > Hello,
>
> > I work on th create method for ISIS2 file (PDS driver). I can write
> > raster file but i have a problem with meta data.
> > In the case where the user would be use "poDriver->CreateCopy" i try
> > to copy and write metaData in the new file. But now i get metadata
> > with the method "char** metaData = GetMetadata();"
> > But the list of string is not easy to handling.
> > Is there another solution for access to the metadata for creating a new
> > (or updated copy) of header ?
> > Construct and access to an XML tree (like TrySaveXML) ? or another
> > method ?
>
> Lidiriel,
>
> You can also request individual items from the source dataset
> using GetMetadataItem().  The functions CSLFetchNameValue(), and
> CPLParseNameValue() from gdal/port/cpl_string.h should also make
> it fairly easily to search for particular keys in a string list and
> to decompose an entry into it's name and value portions.
>
> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam, warmer... at pobox.com
> light and sound - activate the windows |http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
> _______________________________________________
> gdal-dev mailing list
> gdal-... at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list