Re: [gdal-dev] Hangs on OGRLayer ResetReading

2009-12-19 Thread Matthew Denno
Hi Even, Thanks for your reply and for pointing out my memory leak. I tried ogrinfo as you suggested and it seems to work fine. Also, I am able to output the number of features from my OGRLayer so I know that it is accessing the file ok...I think anyway. I have tried to use a debugger but don't

[Gdal-dev] Build Gdal 1.6.3 with MSG driver on Windows Vista and Microsoft Visual Studio 2008

2009-12-19 Thread kanenas
Dear list I want to build MSG DRIVER for GDAL in order to read hrit data. I have downloaded Wavelet Transform Software 2.04 on my Vista PC. I have also installed Microsoft Visual Studio 2008 with SP1. When I built GDAL 1.6.3 with no extra enabled driver, everything was fine. Build was successful

Re: [gdal-dev] Hangs on OGRLayer ResetReading

2009-12-19 Thread Even Rouault
Matthew, I can't see why it would fail on ResetReading(). It should run just fine. The only point I've seen is that your code has memory leaks. It leaks each read OGRFeature and the OGRDataSource. See the full example on the tutorial to correctly deallocate those objects. But that doesn't exp

[gdal-dev] Hangs on OGRLayer ResetReading

2009-12-19 Thread Matthew Denno
Hi, I was wondering if someone could help me out.  I have been working on a little piece of code here and seems to be stuck.  The piece is very close to one of the examples on the website so I would think that it would be right...maybe I have missed something simple.  Anyway below is the code.  It

Re: [gdal-dev] Possible SWIG Python bug

2009-12-19 Thread Even Rouault
Leonardo, This part of swig/python/osgeo/__init__.py is in fact a copy & paste of code in osgeo/gdal.py, which is a SWIG generated file. It was definitely a bug in SWIG 1.3.39 that was fixed in 1.3.40 and in that latter version, the generated code looks like : try: _

[gdal-dev] Possible SWIG Python bug

2009-12-19 Thread Leonardo Piga
I'm working on creating an autotest for OGR GTM driver, I just started the work and I faced a little problem with the script run_all.py. I've already solved the problem, however, since I'm not a Python expert, I'm reporting the problem that I had. If it is not a bug, please excuse me. I've checked

[gdal-dev] [MITAB] Unsupported case or corrupt file

2009-12-19 Thread RICHARD Didier
Hi all, I'm trying to read a (big) mapinfo TAB file and I'm facing the following error (source is the today's trunk) with ogr2ogr as well as ogrinfo : $ ogrinfo -al rall.TAB Had to open data source read-only. INFO: Open of `rall.TAB' using driver `MapInfo File' successful. Layer name: