[gdal-dev] Date tag in geotiff files

Even Rouault even.rouault at mines-paris.org
Mon Oct 19 13:21:23 EDT 2009


Selon Ivan <ivan.lucena at pmldnet.com>:

There's a standard TIFF tag that GDAL can read & write : 'TIFFTAG_DATETIME'. See
http://www.awaresystems.be/imaging/tiff/tifftags/datetime.html for the spec.
This should be interoperable with non GDAL based software.

> Martin,
>
> An easy-dirt way is just add Metadata Items to it. That is how I am doing:
>
>     output_dst.SetMetadataItem('STARTDATE',     start_date.isoformat(), '')
>     output_dst.SetMetadataItem('STARTTIME',     start_time.isoformat(), '')
>
> That would work as long as you are the same guy who writes the piece of code
> that read that data (stored on
> GDAL auxiliary XML files, not on TIFF tags by the way).
>
> Would be nice if we could use a standard Metadata schema.
>
> Regards,
>
> Ivan
>
> >  -------Original Message-------
> >  From: Raspaud Martin <martin.raspaud at smhi.se>
> >  Subject: [gdal-dev] Date tag in geotiff files
> >  Sent: Oct 19 '09 10:33
> >
> >  Hi,
> >
> >  I'm currently working with satellite images, and for this I use GDAL's
> >  python interface.
> >
> >  I would like to add a date in the metadata of the geotiff files I use. I
> >  looked around the gdal website, but I couldn't find anything about this.
> >  Is there a way to do this from gdal ? Should I use exif metadata ? Any
> >  other way ?
> >
> >  Thanks,
> >
> >  Martin
> >
> >  --------------------
> >  _______________________________________________
> >  gdal-dev mailing list
> >  [LINK: compose.php?to=gdal-dev at lists.osgeo.org] gdal-dev at lists.osgeo.org
> >  [LINK: http://lists.osgeo.org/mailman/listinfo/gdal-dev]
> >  http://lists.osgeo.org/mailman/listinfo/gdal-dev
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>




More information about the gdal-dev mailing list