Re: [gdal-dev] DXF to Postgis using ogr2ogr

2011-12-20 Thread Bob Pawley
When I run ogrinfo --config DXF_INLINE_BLOCKS FALSE W_Works.dxf it results in this message Open of `W_Works.dxf' using driver `DXF' successful. 1: blocks 2: entities And I’m using DraftSight as a drawing viewer.All of the information I want is on the model, but it still won’t import

Re: [gdal-dev] [python] CopyDataSource question

2011-12-20 Thread Even Rouault
Le mardi 20 décembre 2011 14:33:26, Frank Broniewski a écrit : > I am sorry that I was not precise enough in my previous email. On my > development system (Debian 6, Python 2.6, gdal 1.7.3) my scripts work as > expected. My server (Ubuntu 8.04, Python 2.5, gdal 1.8.0) has the > problems running the

Re: [gdal-dev] How to-- gdal_calc.py

2011-12-20 Thread Stephen Mather
Thanks Travis, Steve On Tue, Dec 20, 2011 at 10:24 AM, Travis Kirstine wrote: > Stephen, > > I haven't used the gdal_calc tool but if you use python you can easily > convert the image bands to a set of numpy arrays and use all the > great numpy functions. > > See the val_repl.py sample to conv

Re: [gdal-dev] how to use the filter option -where within an mysql request?

2011-12-20 Thread Stefan Schantz
Hello Even, that's it. It is really strictly string based... Thanks! Stefan Am 20.12.2011 16:58, schrieb Even Rouault: Selon Stefan Schantz: Hi again, I 've tried it now with ogrinfo --version GDAL 1.8.0, released 2011/01/12 but with the same negative result: without any filter, I get resul

Re: [gdal-dev] how to use the filter option -where within an mysql request?

2011-12-20 Thread Even Rouault
Selon Stefan Schantz : > Hi again, > I 've tried it now with > ogrinfo --version > GDAL 1.8.0, released 2011/01/12 > > but with the same negative result: > > without any filter, I get results like > > OGRFeature(sql_statement):1677 >value (Real) = 99.215000 >end_measure (DateTi

Re: [gdal-dev] How to-- gdal_calc.py

2011-12-20 Thread Travis Kirstine
Stephen, I haven't used the gdal_calc tool but if you use python you can easily convert the image bands to a set of numpy arrays and use all the great numpy functions. See the val_repl.py sample to convert a image to a numpy array(s) http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/val_r

[gdal-dev] How to-- gdal_calc.py

2011-12-20 Thread Stephen Mather
Hi All, Is there any casting (for lack of a better word) needed when using gdal_calc to take, e.g. a series of 16-bit images and perform float functions against them? Best, Steve ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo

Re: [gdal-dev] how to use the filter option -where within an mysql request?

2011-12-20 Thread Stefan Schantz
Hi again, I 've tried it now with ogrinfo --version GDAL 1.8.0, released 2011/01/12 but with the same negative result: without any filter, I get results like OGRFeature(sql_statement):1677 value (Real) = 99.215000 end_measure (DateTime) = 2011/12/20 0:00:00 POINT (8.64381981

Re: [gdal-dev] [python] CopyDataSource question

2011-12-20 Thread Frank Broniewski
I am sorry that I was not precise enough in my previous email. On my development system (Debian 6, Python 2.6, gdal 1.7.3) my scripts work as expected. My server (Ubuntu 8.04, Python 2.5, gdal 1.8.0) has the problems running the test. On both systems I am using package repositories, though on U

Re: [gdal-dev] how to use the filter option -where within an mysql request?

2011-12-20 Thread Stefan Schantz
Even, thank you for the quick reponse. My OGR-Version is "GDAL 1.7.2, released 2010/04/23", so it explains the errors. My main issue is, that I want to set up a WMS-Time with UMN Mapserver/OGR/MySQL and I couldn't get it work, because I didn't get any datas. For testing reasons I tried it wi

Re: [gdal-dev] how to use the filter option -where within an mysql request?

2011-12-20 Thread Even Rouault
Stefan, Please always mention the GDAL/OGR version you are using in your reports. It will save the readers from figuring out from the error message that you must use GDAL 1.7.x or an earlier version. The -where "end_measure = '2011-12-20'" clause doesn't work in GDAL 1.7.x or earlier because the

[gdal-dev] how to use the filter option -where within an mysql request?

2011-12-20 Thread Stefan Schantz
Hi, I don't understand the usage of the filter option "-where" of ogrinfo. If I try the following statement , it works and I get 1678 hits: ogrinfo -ro -so MYSQL:onmon,host=10.130.63.11,user=user,password=user,port=3306,tables=result_current -sql "SELECT result_current.value AS wert, result_cu

Re: [gdal-dev] [python] CopyDataSource question

2011-12-20 Thread Even Rouault
Frank, > Hi, > > I have (again) a question concerning the Driver.CopyDataSource() method > using OGR Python bindings > > I've written some code that copies a datasource to another format, using > a target driver and its CopyDataSource() method. This works fine for > GDAL version 1.7.3, but fails u

Re: [gdal-dev] GDAL/OGR 1.9.0 Beta1 Released

2011-12-20 Thread Even Rouault
Hi, There seems to be a permission problem when accessing to : http://download.osgeo.org/gdal/gdalautotest-1.9.0b1.tar.gz http://download.osgeo.org/gdal/gdalautotest-1.9.0b1.zip Best regards, Even ___ gdal-dev mailing list gdal-dev@lists.osgeo.org htt

[gdal-dev] [python] CopyDataSource question

2011-12-20 Thread Frank Broniewski
Hi, I have (again) a question concerning the Driver.CopyDataSource() method using OGR Python bindings I've written some code that copies a datasource to another format, using a target driver and its CopyDataSource() method. This works fine for GDAL version 1.7.3, but fails under 1.8.0. Faili