Re: [gdal-dev] Tkl/Tk files after running script through py2exe

2010-07-20 Thread Simon Lyngby Kokkendorff
Hi Rudi, py2exe includes a lot of things into the distribution by default, so you'll need to extend the "excludes" in your options in the setup script to get a smaller distribution, see http://www.py2exe.org/index.cgi/GeneralTipsAndTricks. I've been using gdal with py2exe, and I guess that if yo

Re: [gdal-dev] python bindings: strange behavior with layer

2010-07-20 Thread Francis Markham
Is there an FAQ somewhere we can put this? It bit me when I was starting with GDAL and Python too. Cheers, Francis On 21 July 2010 04:00, Howard Butler wrote: > > On Jul 20, 2010, at 12:51 PM, Python Gis wrote: > >> Hi >> this is my code: >> >> from osgeo import ogr >> >> def OpenLayer(shape_p

[gdal-dev] Re: [GRASS-dev] gdal-grass plug-in (grass7 support)

2010-07-20 Thread Markus Neteler
On Tue, Jul 20, 2010 at 10:10 PM, Massimo Di Stefano wrote: > Hi All, > > the gdal-grass plug-in for now don't build with grass7 but only with grass6.x. > I know it is an old issue, we discuss it some month ago, > have you any news about grass7 support inside gdalb (svn) ? For the record: http://

[gdal-dev] gdal-grass plug-in (grass7 support)

2010-07-20 Thread Massimo Di Stefano
Hi All, the gdal-grass plug-in for now don't build with grass7 but only with grass6.x. I know it is an old issue, we discuss it some month ago, have you any news about grass7 support inside gdalb (svn) ? thanks! Massimo.___ gdal-dev mailing list gdal-d

Re: [gdal-dev] Tkl/Tk files after running script through py2exe

2010-07-20 Thread Christopher Barker
Rudi von Staden wrote: Since I can't guarantee that the users will have Python, I ran the script through py2exe. 1) The resulting distribution folder includes Tcl/Tk files and folders. I can only guess that these are used by GDAL in some way - are they required? I'd be surprised that GDAL w

[gdal-dev] Overviews broken with PAM disabled

2010-07-20 Thread Gillian WALTER
Hi, I built gdal 1.7.2 with PAM support disabled by default, and found that I could no longer build overviews for many formats. When I set the environment variable GDAL_PAM_ENABLED=YES, the overviews would build. I traced the problem down to the following section of GDALPamDataset::IBuildOver

Re: [gdal-dev] python bindings: strange behavior with layer

2010-07-20 Thread Howard Butler
On Jul 20, 2010, at 12:51 PM, Python Gis wrote: > Hi > this is my code: > > from osgeo import ogr > > def OpenLayer(shape_path, shape_name): >drv_shp = ogr.GetDriverByName('ESRI Shapefile') >shp_ds = drv_shp.Open(shape_path, 1) >layer = shp_ds.GetLayerByName(shape_name) >print '

[gdal-dev] python bindings: strange behavior with layer

2010-07-20 Thread Python Gis
Hi this is my code: from osgeo import ogr def OpenLayer(shape_path, shape_name): drv_shp = ogr.GetDriverByName('ESRI Shapefile') shp_ds = drv_shp.Open(shape_path, 1) layer = shp_ds.GetLayerByName(shape_name) print 'Name from method: %s' % layer.GetName() return layer; layer =

Re: [gdal-dev] ogr2ogr truncating data?

2010-07-20 Thread Iván Sánchez Ortega
El día Tuesday 20 July 2010 17:23:26, Kris Arnold dijo: > I'm trying to use ogr2ogr to convert a KML file to a shapefile. Mostly > it works. But the description data from the kml file is getting > truncated in the shapefile. It looks like it is creating the attribute > as a text field with only

Re: [gdal-dev] Looking for GDAL windows bindings for python 2.6.5

2010-07-20 Thread Tamas Szekeres
The packages from http://vbkto.dyndns.org/sdk/ use python26 (MSVC2005/2008/2010). However the x64 versions doesn't include the numpy support as far as I remember. Best regards, Tamas 2010/7/20 Yvonne Hübner > Hi, > > > > I’m a pretty new user of the GDAL/Osgeo library under Python and Windo

Re: [gdal-dev] ogr2ogr truncating data?

2010-07-20 Thread Tamas Szekeres
To increase the field size you may use the sql cast operator as described in the following documents: http://trac.osgeo.org/gdal/wiki/rfc21_ogrsqlcast http://www.gdal.org/ogr/ogr_sql.html Best regards, Tamas 2010/7/20 Kris Arnold > Hello all, > I'm trying to use ogr2ogr to convert a KML fil

[gdal-dev] ogr2ogr truncating data?

2010-07-20 Thread Kris Arnold
Hello all, I'm trying to use ogr2ogr to convert a KML file to a shapefile. Mostly it works. But the description data from the kml file is getting truncated in the shapefile. It looks like it is creating the attribute as a text field with only 80 characters. Any way around this? imamuseum.org m

[gdal-dev] merging rasters setting opacity

2010-07-20 Thread Stefano Iacovella
Dear all sorry for the newbie question. I did some experiments with gdal but I was unable gettint to the target. I have a DTM in ASCII GRID, I produced an hillshade relief with gdaldem program and saved the ouput in a tiff file. What I would like to do now is to merge this tiff with an other tiff

Re: [gdal-dev] Looking for GDAL windows bindings for python 2.6.5

2010-07-20 Thread Rudi von Staden
I forgot to mention, I found this document very useful in getting my setup right: http://www.gis.usu.edu/~chrisg/python/2009/docs/gdal_win.pdf Rudi On 20/07/2010 13:39, Rudi von Staden wrote: Hi Yvonne, I've just done exactly what you refer to, and had the same challenges with links.

[gdal-dev] Tkl/Tk files after running script through py2exe

2010-07-20 Thread Rudi von Staden
Hi all, I've created a small Python script that reads a set of points from a CSV file, calculates the area of the outer hull of the points, and writes the result to a text file. I would like to call the script from an Access database. Since I can't guarantee that the users will have Python, I

Re: [gdal-dev] Looking for GDAL windows bindings for python 2.6.5

2010-07-20 Thread Rudi von Staden
Hi Yvonne, I've just done exactly what you refer to, and had the same challenges with links. I ended up using the following setup: Python 2.6 install: http://www.python.org/ftp/python/2.6/python-2.6.msi GDAL bindings for Python 2.6: http://pypi.python.org/packages/2.6/G/GDAL/GDAL-1.6.1.win32

[gdal-dev] Looking for GDAL windows bindings for python 2.6.5

2010-07-20 Thread Yvonne Hübner
Hi, I'm a pretty new user of the GDAL/Osgeo library under Python and Windows. Actually I'm using Python 2.5 and GDAL and I was looking for a GDAL version which is compatible to Python 2.6. I tried GDAL 1.7.1 from http://pypi.python.org/pypi/GDAL/ (at the page bottom) but I got an error that it