[gdal-dev] Correction to gdalwarp documentation

2012-02-23 Thread Jukka Rahkonen
Hi, The document http://gdal.org/gdalwarp.html contains an example gdalwarp -t_srs '+proj=utm +zone=11 +datum=WGS84' raw_spot.tif utm11.tif At least on Windows single quotes do not work while double ones do. -Jukka Rahkonen- ___ gdal-dev mailing list

Re: [gdal-dev] undefined symbol error

2012-02-23 Thread Jerl Simpson
Hi Frank: Thank you for the info. Someone in the IRC channel suggested it might be a PROJ.4 issues as well. I updated PROJ.4 but didn't look for older libraries. Once this compile finishes, I'll take a look. OH I bet the --with-static-proj4 is the issue. It works find in build directory with o

Re: [gdal-dev] undefined symbol error

2012-02-23 Thread Frank Warmerdam
Jerl, I would imagine you are building GDAL against modern PROJ.4 include files but linking against an older (4.7.0 or older) PROJ.4 shared library. Likely you have another libproj.so in /usr/lib in addition to the one in /usr/local/lib. By the way, why are you using --with-static-proj4? If you

Re: [gdal-dev] comparing two rasters

2012-02-23 Thread jdmorgan
Hi Chaitanya, This works great. Thanks so much. GDAL/Python is a really powerful combination. Cheers, Derek On 2/23/2012 9:31 AM, Chaitanya kumar CH wrote: Derek, You can assign a color table. Ex: (0,0,0) for 0, (255,255,255) for 1. You can assign a color table to a raster band using the m

Re: [gdal-dev] Building GDAL with FileGDB support

2012-02-23 Thread Stuart Edwards
On Feb 23, 2012, at 3:12 AM, Paolo Corti wrote: >> I am trying to build GDAL with FileGDB support on Ubuntu 10.4 using the >> recipe on the GDAL wiki. I have installed GDAL 1.9.0 in /usr/local/ and >> have placed FileGDB_API from the ArcGIS resource center at /usr/local. >> Configure --with-

[gdal-dev] undefined symbol error

2012-02-23 Thread Jerl Simpson
Hey guys, I just grabbed gdal 1.9 from SVN, compiled it and I am getting an undefined symbol error pj_ctx_alloc in many of the ./apps/ programs. I first noticed it with gdaldem. Everything is pointing to my build directory. I've tried all manner of things, not sure what to do next. gdal1.9NEW/apps/

[gdal-dev] color-code/class the raster in gdal/python

2012-02-23 Thread jdmorgan
Hello, I am creating a raster file (.img) in python/gdal using.GetRasterBand(1).WriteArray it is seems to be working well.Where I could use some help is in knowing how to color-code/class the resulting raster.For instance my raster is only ones and zeros.I would like to make the ones white an

Re: [gdal-dev] comparing two rasters

2012-02-23 Thread Chaitanya kumar CH
Derek, You can assign a color table. Ex: (0,0,0) for 0, (255,255,255) for 1. You can assign a color table to a raster band using the method SetRasterColorTable(). You can find some sample python code in GDAL's test suite[1][2]. [1]: http://trac.osgeo.org/gdal/browser/trunk/autotest/gcore/colortab

Re: [gdal-dev] comparing two rasters

2012-02-23 Thread jdmorgan
ThanksChaitanya, Actually this seems to be working, which is pretty cool.I think where I am getting confused is that I am attempting to verify the results by loading the resulting raster data into a GIS e.g. ArcGIS or QGIS and doing spot checking.However, as I haven’t done any actual color cod

[gdal-dev] Strange behaviour of gdal_translate with ECW on linux (libecw 3.3)

2012-02-23 Thread Sylvain MAFFREN
Hi, I try to convert RGB tiff file (300 Mo) into ECW ( libecw 3.3 and gdal 1.8.1 that I have compiled) using this gdal_translate command, on a Debian Squeeze : gdal_translate -of "ECW" -co LARGE_OK="YES" -co TARGET="90" -co DATUM="RGF93" -co PROJ="LMFRAN93" file_in.tif file_out.ecw, and I ge

Re: [gdal-dev] Using SWIG from a Driver

2012-02-23 Thread Stefano Moratto
Hi, I think it is possibile using the swig's director feature: Calling back non c/c++ from c/c++ code. Basically you have to develop your driver as a C++ class declared in a swig interface file (.i) declaring virtual functions that have to implements the features of your driver. This driver

Re: [gdal-dev] Building GDAL with FileGDB support

2012-02-23 Thread Paolo Corti
> I am trying to build GDAL with FileGDB support on Ubuntu 10.4 using the > recipe on the GDAL wiki.  I have installed GDAL 1.9.0 in /usr/local/ and have > placed FileGDB_API from the ArcGIS resource center at /usr/local.  Configure > --with-fgdb produces a config summary that shows 'yes' for 'w