[mapserver-commits] r8845 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sun Mar 29 15:34:13 EDT 2009


Author: aboudreault
Date: 2009-03-29 15:34:13 -0400 (Sun, 29 Mar 2009)
New Revision: 8845

Modified:
   trunk/mapserver/mapgdal.c
Log:
pass the double value to gdal (image resolution)

Modified: trunk/mapserver/mapgdal.c
===================================================================
--- trunk/mapserver/mapgdal.c	2009-03-28 16:52:03 UTC (rev 8844)
+++ trunk/mapserver/mapgdal.c	2009-03-29 19:34:13 UTC (rev 8845)
@@ -408,7 +408,7 @@
     {
       char res[30];
 
-      sprintf( res, "%d", image->resolution );
+      sprintf( res, "%lf", image->resolution );
       GDALSetMetadataItem( hMemDS, "TIFFTAG_XRESOLUTION", res, NULL );
       GDALSetMetadataItem( hMemDS, "TIFFTAG_YRESOLUTION", res, NULL );
       GDALSetMetadataItem( hMemDS, "TIFFTAG_RESOLUTIONUNIT", "2", NULL );



More information about the mapserver-commits mailing list