RE: [gdal-dev] 3D Shapefiles

2009-09-09 Thread Craig Miller
I think you want wkbPoint25D instead of wkbPoint in the CreateLayer call. > -Original Message- > From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev- > boun...@lists.osgeo.org] On Behalf Of Opel Fahrer > Sent: Wednesday, September 09, 2009 10:19 PM > To: gdal-dev@lists.osgeo.org > Su

[gdal-dev] 3D Shapefiles

2009-09-09 Thread Opel Fahrer
Hi, I stumbled across an unexpected problem when I tried to write my own shapefile following the tutorial found here: http://www.gdal.org/ogr/ogr_apitut.html I want to store 3D coordinates, which should be possible I guess. However, it seems that doing something like // OGRLayer *poLa

[gdal-dev] Python Batch Processing

2009-09-09 Thread Maurício de Paulo
Hi list, As I am a serious user of GDAL Utilities and FWTools, I've found myself manytimes trying to repeat a ogr2gr or a gdalwarp for whole directories and writing much bash and bat code for the task. As a solution the the guys who work with me I've written the PyBatchProc script that is a QT gui

[gdal-dev] OGRSpatialReference::MorphFromESRI handling WKT with single quotes returned by ArcGIS geoprocessor API

2009-09-09 Thread Jason Roberts
I am trying to understand how to use OGR to process spatial reference WKT obtained from ArcGIS. I have noticed that ArcGIS WKT strings returned by ESRI's geoprocessing API includes single quotes around names of things: >>> import arcgisscripting >>> gp = arcgisscripting.create() >>> d = gp.De

Re: [gdal-dev] Latest ShapeLib

2009-09-09 Thread Jérôme - GeoRezo.net
The http://download.osgeo.org/shapelib/ is up to date contrary to http://shapelib.maptools.org/dl Also you have a CVS link on http://shapelib.maptools.org/ Thanks Jérôme Selon spbhasker bachi : > Thank you Chaitanya. > > I had some vintage code.. wanted to use the Latest Shapelib to upgrade >

Re: [gdal-dev] Latest ShapeLib

2009-09-09 Thread spbhasker bachi
Thank you Chaitanya. I had some vintage code.. wanted to use the Latest Shapelib to upgrade that.. Cheers Bhasker On Wed, Sep 9, 2009 at 7:46 PM, Chaitanya kumar CH wrote: > Bhaskar, > > Any work done on the shapelib in GDAL's shapefile driver that is not > entered into the main stream shapelib

Re: [gdal-dev] Latest ShapeLib

2009-09-09 Thread Chaitanya kumar CH
Bhaskar, Any work done on the shapelib in GDAL's shapefile driver that is not entered into the main stream shapelib 'may' cause problems with other applications. If you intend to have the latest code, you can look at OGR's shapefile driver code. You can find OGR's shapefile driver's makefiles for

[gdal-dev] Latest ShapeLib

2009-09-09 Thread spbhasker bachi
Anyone having the Latest ShapeLib ??? The Latest one v 1.2.10 is located @ http://dl.maptools.org/dl/shapelib/ But in the GDAL trunks i have seen Frank do a Lot of Version for the ShapeFil.H & subsequents Codes.. of DBF ANyone having the Latest ShapeLib with the Latest Makefile pl send it acros

Re: [gdal-dev] Minor addition to Python bindings..

2009-09-09 Thread Howard Butler
On Sep 8, 2009, at 7:15 PM, Christopher Barker wrote: Hi all, I had a heck of a time figuring out what version of gdal I was using today. I eventually found: gdal.gdal.VersionInfo("RELEASE_NAME") It's a pretty well supported convention now for Python modules to have a __version__ attri

[gdal-dev] Shortening execution time of Python script

2009-09-09 Thread David Shi
I have a Python script that automatically downloads zip files containing large datasets from another server and then unzips the files to further process the data.   It has been used as a geoprocessor of ArcGIS Server.   The script works fine when two datasets each has several kilobytes size, but

Re: [gdal-dev] Shape files 3D -> 2D

2009-09-09 Thread Chaitanya kumar CH
Christoph, It looks like all three methods are working as they should. In the first one, the ogr2ogr converts it to two dimensions,. In the second one, the shapefile driver does that. In the third method you are getting the geometry type, which is in wkb format. I would guess them to contain the