[postgis-commits] svn - r2702 - in branches/gSoC2007_raster/pgraster: . linux linux/build linux/build/x86

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Fri Aug 24 11:53:54 PDT 2007


Author: xingkth
Date: 2007-08-24 11:53:53 -0700 (Fri, 24 Aug 2007)
New Revision: 2702

Added:
   branches/gSoC2007_raster/pgraster/linux/build/
   branches/gSoC2007_raster/pgraster/linux/build/x86/
   branches/gSoC2007_raster/pgraster/linux/build/x86/geotiff2pgraster
   branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so
   branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1
   branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1.2
   branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1.2.4
   branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so
   branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so.3
   branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so.3.8.2
   branches/gSoC2007_raster/pgraster/linux/build/x86/pgraster2geotiff
Modified:
   branches/gSoC2007_raster/pgraster/TODO.TXT
   branches/gSoC2007_raster/pgraster/geotiff2pgraster.c
Log:
xing-pgraster linux x86 builds create for test

Modified: branches/gSoC2007_raster/pgraster/TODO.TXT
===================================================================
--- branches/gSoC2007_raster/pgraster/TODO.TXT	2007-08-24 18:21:54 UTC (rev 2701)
+++ branches/gSoC2007_raster/pgraster/TODO.TXT	2007-08-24 18:53:53 UTC (rev 2702)
@@ -18,15 +18,15 @@
 
 7. pgraster and postgis share the same proj system. (x)
 
-8. UTF-8 Conversion
+8. UTF-8 Conversion (???)
 
 9. Create functions in the server side using plpgsql (x). 
 
-10. Port between Win32 & Linux platform. 
+10. Port between Win32 & Linux platform. (x)
 
-11. Change of Makefile.
+11. Change of Makefile. (x)
 
-12. Build under Linux platform.
+12. Build under Linux platform. (x)
 
 13. Test of Single-Band GeoTIFF files. (x)
 

Modified: branches/gSoC2007_raster/pgraster/geotiff2pgraster.c
===================================================================
--- branches/gSoC2007_raster/pgraster/geotiff2pgraster.c	2007-08-24 18:21:54 UTC (rev 2701)
+++ branches/gSoC2007_raster/pgraster/geotiff2pgraster.c	2007-08-24 18:53:53 UTC (rev 2702)
@@ -1743,7 +1743,7 @@
 					paramFormats[7] = 1; // Binary / Endian??
 
 					// 9. blockmbr
-					paramValues[8] = (byte*)blockMBR;
+					paramValues[8] = (char*)blockMBR;
 					paramLengths[8] = G_GetSize(blockMBR);
 					paramFormats[8] = 1; // Binary??
 
@@ -1820,7 +1820,7 @@
 
 	bufferSize = stripMax * stripSize;
 
-	if((pDataBuffer = (char *) malloc(bufferSize)) == NULL)
+	if((pDataBuffer = (byte*) malloc(bufferSize)) == NULL)
 	{
     	if(outmode != MODE_QUIET)
 			fprintf(stderr, "Could not allocate enough memory for the uncompressed TIFF image.\n");
@@ -1900,7 +1900,7 @@
 		if(bps == 8 && mode==PHOTOMETRIC_RGB)
 		{
 			*bitsreturned = spp * 8;
-			buffer = (char*)malloc(spp*sizeof(char));
+			buffer = (byte*)malloc(spp*sizeof(char));
 			memcpy(buffer, (byte*)(&(pDataBuffer[nIndex])), spp);
 		}
 		else if (bps==16 && mode==PHOTOMETRIC_RGB) 
@@ -2218,7 +2218,7 @@
 			else if(bps == 8 && format == SAMPLEFORMAT_INT) //char
 			{
 				*bitsreturned = 8;
-				buffer = (char*)malloc(1*sizeof(char));
+				buffer = (byte*)malloc(1*sizeof(char));
 				buffer[0]= ((char*)pDataBuffer)[nIndex];
 				
 			}
@@ -2232,7 +2232,7 @@
 			{
 				int16 c;
 				*bitsreturned = 2*8;
-				buffer = (char*)malloc(2*sizeof(char));
+				buffer = (byte*)malloc(2*sizeof(char));
 				c= ((int16*)pDataBuffer)[nIndex];
 				memcpy(buffer,(byte*)&c,2);
 				if(!tiff_bigendian)
@@ -2242,7 +2242,7 @@
 			{
 				uint16 c;
 				*bitsreturned = 2*8;
-				buffer = (char*)malloc(2*sizeof(char));
+				buffer = (byte*)malloc(2*sizeof(char));
 				c= ((uint16*)pDataBuffer)[nIndex];
 				memcpy(buffer,(byte*)&c,2);
 				if(!tiff_bigendian)
@@ -2252,7 +2252,7 @@
 			{
 				int32 c;
 				*bitsreturned = 4*8;
-				buffer = (char*)malloc(4*sizeof(char));
+				buffer = (byte*)malloc(4*sizeof(char));
 				c= ((int32*)pDataBuffer)[nIndex];
 				memcpy(buffer,(byte*)&c,4);
 				if(!tiff_bigendian)
@@ -2262,7 +2262,7 @@
 			{
 				uint32 c;
 				*bitsreturned = 4*8;
-				buffer = (char*)malloc(4*sizeof(char));
+				buffer = (byte*)malloc(4*sizeof(char));
 				c= ((uint32*)pDataBuffer)[nIndex];
 				memcpy(buffer,(byte*)&c,4);
 				//XXX: I don't know how to swap bytes order of IEEE FP.
@@ -2273,7 +2273,7 @@
 			{
 				uint32 c;
 				*bitsreturned = 4*8;
-				buffer = (char*)malloc(4*sizeof(char));
+				buffer = (byte*)malloc(4*sizeof(char));
 				c= ((uint32*)pDataBuffer)[nIndex];
 				memcpy(buffer,(byte*)&c,4);
 				if(!tiff_bigendian)

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/geotiff2pgraster
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/geotiff2pgraster
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1.2
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1.2
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1.2.4
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/libgeotiff.so.1.2.4
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so.3
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so.3
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so.3.8.2
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/libtiff.so.3.8.2
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: branches/gSoC2007_raster/pgraster/linux/build/x86/pgraster2geotiff
===================================================================
(Binary files differ)


Property changes on: branches/gSoC2007_raster/pgraster/linux/build/x86/pgraster2geotiff
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream



More information about the postgis-commits mailing list