Re: [gdal-dev] [gdal Python] Exceptions not reset correctly ifgdal.UseExceptions() is used

2009-06-18 Thread Antonio Valentino
Even, my opinion is that if all info are attached to the python exception then it should not matter if the error status is reset or not. Anyway I can't figure out why an exception is raised if the called function that doesn't generete any error. best regards -- Antonio VALENTINO System Engi

[gdal-dev] parser the information from the gdalinfo

2009-06-18 Thread maven apache
Hi:I try to get the information of a image:product_compose123.img and I got a lot of infomation (perhaps 1500 lines). I wonder there is some tools to handle this information? I want to change them to a xml document. --- PROJCS["Lambert Conformal Conic", GEOGCS["K

Re: [gdal-dev] Setting GDAL Http Fetcher

2009-06-18 Thread Even Rouault
You need to hack into GDAL itself then. Le Thursday 18 June 2009 23:42:44 Joel Odom, vous avez écrit : > No mind readers here? :-) Let me explain. > The WMS data source uses libcurl to fetch http requests. I'd like to put a > different engine in to fetch http requests so that I can handle some

Re: [gdal-dev] Curve support in OGR

2009-06-18 Thread Mateusz Loskot
Andreas Neumann wrote: > sdf (used for Mapguide) If you use MapGuide, you also use FDO. FDO does support curves, so you can forget about OGR and just use FDO. Cheers, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org __

[gdal-dev] Re: GDAL/ArcObjects based app crashes with newer GDAL versions (was How to delete shapefile)

2009-06-18 Thread Mateusz Loskot
Clay, Bruce wrote: > If I try to link to the gdal_i.lib then the program does not crash > but it does not let me step into any of the methods even though it is > a debug library and no GDAL functions work. This is unrelated to GDAL. You better refer MSDN to solve this kind of problems. This should

Re: [gdal-dev] Setting GDAL Http Fetcher

2009-06-18 Thread Joel Odom
No mind readers here? :-) Let me explain. The WMS data source uses libcurl to fetch http requests. I'd like to put a different engine in to fetch http requests so that I can handle some other protocols (actually I'm using libcurl myself with some helper functions). I was wondering if I could in

Re: [gdal-dev] [gdal Python] Exceptions not reset correctly if gdal.UseExceptions() is used

2009-06-18 Thread Even Rouault
Luca, (This behaviour is identical in trunk too) we could probably reset the error state after issuing the exception, but that would prevent code from getting the error message if they call gdal.GetLastErrorMsg() afterwards. But I don't think this would be a problem. We should probably also cal

Re: [gdal-dev] Setting GDAL Http Fetcher

2009-06-18 Thread Even Rouault
I don't understand your question. You should provide more details on what you want to do exactly Le Thursday 18 June 2009 18:31:20 Joel Odom, vous avez écrit : > Can I programatically change the http fetcher that GDAL uses for WMS > without recompiling GDAL? Thanks! ___

Re: [gdal-dev] gdaladdo

2009-06-18 Thread Even Rouault
Look at TIFF_SETTING in GDALmake.opt. Le Thursday 18 June 2009 22:31:12 Dillabough, Craig, vous avez écrit : > I am using the latest and greatest GDAL. I compiled/installed it by hand > (so to speak) so I am not sure which libtiff I am using - I will check > config.log and get back to you tommorro

Re: [gdal-dev] Build OGR with Oracle support

2009-06-18 Thread Ivan
Normand, Just a quick complimentary reference: """Instant Client allows you to run your applications without installing the standard Oracle client or having an ORACLE_HOME. OCI, OCCI, Pro*C, ODBC, and JDBC applications work without modification, while using significantly less disk space than b

Re: [gdal-dev] Build OGR with Oracle support

2009-06-18 Thread Normand Savard
Mateusz Loskot wrote: ./configure generates a log file called config.log. If something goes wrong, there should be some diagnostic in this file. It would be helpful if you could share it, for instance, here: http://pastebin.com/ This will help to find what's the problem. Maateusz, You w

Re: [gdal-dev] gdaladdo

2009-06-18 Thread Even Rouault
Craig, This should work. Are you using an older GDAL version ? Are you using external libtiff ? If so, try again with newer GDAL and internal libtiff (although I wouldn't older GDAL to fail on a simple case like yours that doesn't involve TIFF compression) Le Thursday 18 June 2009 21:50:25 Di

RE: [gdal-dev] rfc 24 - jpip

2009-06-18 Thread Norman Barker
Even, Thank you! I was looking for such a review. I will wait a few days for more comments and then I will go through you suggestions and change the code as required. Thanks, Norman -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On

Re: [gdal-dev] rfc 24 - jpip

2009-06-18 Thread Even Rouault
Norman, Sorry for not having given feedback in a more timely way, but the amount of changes didn't encourage ;-) Anyway, here are my comments & questions on the changes done in http://trac.osgeo.org/gdal/changeset/16796/sandbox/normanb: * frmts/jp2kak/jp2kakdataset.cpp : I'm not sure if we mus

RE: [gdal-dev] Errors in compiling GDAL on a 64bits Linux

2009-06-18 Thread Chandra Shekhar Kumar
>/afs/isis.unc.edu/pkg/oracle-1020/client//lib/libexpat.so: could not >read symbols: File >in wrong format >collect2: ld returned 1 exit status >make[1]: *** [libgdal.la] Error 1 [Chandra ] it looks like it is getting linked against 32-bit libexpat.so Can you check the same by "file /libexpat.so" a

[gdal-dev] gdaladdo

2009-06-18 Thread Dillabough, Craig
Hi, I am trying to tile and create overviews for a TIFF image dataset I have, but I keep getting strange errors when attempting to add overviews. 1st I created a copy of the original image (same format and all, but wanted to keep the original around in case I had problems). >gdal_translate -ot F

RE: [gdal-dev] Errors in compiling GDAL on a 64bits Linux

2009-06-18 Thread Gong, Shawn (Contractor)
Hi Limei I used the following to build GDAL library on a 64-bit Linux Server. setenv CFLAGS "-fPIC" ./configure --prefix=/home/sgong/build_openev2/dist --with-png=internal --with-libtiff=internal --with-gif=internal --with-geotiff=internal --with-libz=/home/sgong/build_openev2/dist --with-jpeg=/

[gdal-dev] Errors in compiling GDAL on a 64bits Linux

2009-06-18 Thread Limei Ran
Hi: I am compiling GDAL library on a 64bits Linux Server for our applications (we compiled correctly on a 32bits Linux Server). But, I ran into errors in compiling GDAL on the 64bits Linux. Could you check for me to see how I can solve the problem? I configured it using: ./configure --pre

[gdal-dev] Setting GDAL Http Fetcher

2009-06-18 Thread Joel Odom
Can I programatically change the http fetcher that GDAL uses for WMS without recompiling GDAL? Thanks! -- http://giscoder.blogspot.com/ ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] rfc 24 - jpip

2009-06-18 Thread Norman Barker
Hi http://trac.osgeo.org/gdal/wiki/rfc24_progressive_data_support and the code at http://svn.osgeo.org/gdal/sandbox/normanb/ has been available for some time without any significant comments, are we at a point to vote on this RFC and if not then what needs to be done? I would l

[gdal-dev] [gdal Python] Exceptions not reset correctly if gdal.UseExceptions() is used

2009-06-18 Thread Luca Fasano
Hi all, I suspect there is a bug in gdal.UseExceptions() in python binding. I noticed that if a RuntimeError has been generated, following gdal instructions *raise the same exception*. It seems that a gdal.ErrorReset() is necessary to reset it. An example with ipython: In [2]: from osgeo import g