[Gdal-dev] Missing aaigriddataset.o on make

2009-10-09 Thread Alan Hale
Hello I'm attempting to install gdal-1.6.2 but when I try to "make" I get the error: /usr/local/src/gdal-1.6.2/frmts/o/aaigriddataset.o: No such file or directory On a guess, I tried ./configure --without-AAIGrid but this did not help. Any advice please? Many tahnks Alan Hale -- View this me

Re: [gdal-dev] compiling hdf5 support into gdal-1.6.2

2009-10-09 Thread Frank Warmerdam
John Cartwright wrote: Hello All, I'm trying to compile in hdf5 support by specifying "--with-hdf5=/usr/local/contrib" to the configure script. The hdf 5 libraries are located in /usr/local/contrib/lib. However, configure tells me: configure: error: HDF5 support requested with arg /usr/local/

[gdal-dev] compiling hdf5 support into gdal-1.6.2

2009-10-09 Thread John Cartwright
Hello All, I'm trying to compile in hdf5 support by specifying "--with-hdf5=/usr/local/contrib" to the configure script. The hdf 5 libraries are located in /usr/local/contrib/lib. However, configure tells me: configure: error: HDF5 support requested with arg /usr/local/contrib, but no hdf5 lib

Re: [gdal-dev] Fastest vector format for combining shapefiles

2009-10-09 Thread Simon Greener
The need for a new vector file format has been discussed many times with no action initiated by the open source community on what to do. ESRI has said they will do so, but it's been several years since they first announced it and when it is finally is released there is no guarantee it will be u

Re: [gdal-dev] Python-OGR not looping over more than 500 PGSQL features

2009-10-09 Thread Even Rouault
Selon Even Rouault : Hmm, of course, read lyr2 = ds.GetLayerByName('testhuge2') in the last snippet. > Selon Matthieu Rigal : > > Matthieu, > > I've been able to reproduce the behaviour you've observed by running the > following snippet : > > >>> > import ogr > > ds = ogr.Open('PG:dbname=autotest

Re: [gdal-dev] Python-OGR not looping over more than 500 PGSQL features

2009-10-09 Thread Even Rouault
Selon Matthieu Rigal : Matthieu, I've been able to reproduce the behaviour you've observed by running the following snippet : >>> import ogr ds = ogr.Open('PG:dbname=autotest') lyr = ds.GetLayerByName('testhuge') feat = lyr.GetNextFeature() count = 0 while feat is not None: count = count +

Re: [gdal-dev] Doing segment-wise statistics

2009-10-09 Thread Petteri Packalen
I'd like to do some segment-wise statistics (mean, standard deviation, etc.) on rasters. The segments will be defined by polygons in a shapefile. I need to do this in a Python script, so anything without a GUI is fine. Is there a solution I can use? If not, I'd appreciate any suggestions or ide

[gdal-dev] ANN: Apt commandline installer for OSGeo4W now at v0.0-2

2009-10-09 Thread Matt Wilkie
Hello World, Apt.py v0.0-2, the command line osgeo4w installer, is now available. It can be found under Commandline Utilities in the GUI setup.exe installer or from svn. http://download.osgeo.org/osgeo4w/ "OSGeo4W Installer" http://trac.osgeo.org/osgeo4w/browser/trunk/apt

Re: [gdal-dev] Python-OGR not looping over more than 500 PGSQL features

2009-10-09 Thread Chaitanya kumar CH
Matthieu, I looked at the OGR's pg driver code. It is retrieving the data 500 records at a time using cursors. Can you provide some more lines from the log files, before and after the given two lines? In the mean time here is a quick and dirty solution. Recompile gdal after setting CURSOR_PAGE to

Re: [gdal-dev] Python-OGR not looping over more than 500 PGSQL features

2009-10-09 Thread Matthieu Rigal
Chaitanya, I looked into the log files and could see the following lines : 2009-10-09 15:23:56 CEST lua_db lua_admin STATEMENT:  FETCH 500 in OGRPGResultLayerReader 2009-10-09 15:23:56 CEST lua_db lua_admin STATEMENT:  CLOSE OGRPGResultLayerReader So it is OGR which is requesting only 500 featu

Re: [gdal-dev] Python-OGR not looping over more than 500 PGSQL features

2009-10-09 Thread Chaitanya kumar CH
Matthieu, GetFeatureCount in postgres driver is implemented with the COUNT() function. ( http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/pg/ogrpgtablelayer.cpp#L1895 ) So it was never returning more than 500 features. IMHO, the number 500 looks like an intentional limitation, probab

[gdal-dev] Python-OGR not looping over more than 500 PGSQL features

2009-10-09 Thread Matthieu Rigal
Hi people, I recently discovered a strange behaviour which was not happening before, I think... I'm using Python 2.5 with GDAL/OGR 1.6 and PGsql 8.3 on Linux. I am reading a table containing 858 features with several columns and geometry. I first do a SELECT on the table and the GetFeatureCount

Re: [gdal-dev] Doing segment-wise statistics

2009-10-09 Thread Jose Gomez-Dans
Hiya, 2009/10/9 Peder Axensten > I'd like to do some segment-wise statistics (mean, standard deviation, > etc.) on rasters. > The segments will be defined by polygons in a shapefile. > I need to do this in a Python script, so anything without a GUI is fine. > > Is there a solution I can use? >

[gdal-dev] Doing segment-wise statistics

2009-10-09 Thread Peder Axensten
Go'day, I'd like to do some segment-wise statistics (mean, standard deviation, etc.) on rasters. The segments will be defined by polygons in a shapefile. I need to do this in a Python script, so anything without a GUI is fine. Is there a solution I can use? If not, I'd appreciate any suggest