Re: [gdal-dev] field name in ESRI file

2010-03-24 Thread Oz Nahum
that shapefiles support dates. > > Best, > > Jason > > -Original Message- > From: gdal-dev-boun...@lists.osgeo.org [mailto: > gdal-dev-boun...@lists.osgeo.org] On Behalf Of Peter J Halls > Sent: Wednesday, March 24, 2010 11:15 AM > To: Oz Nahum > Cc: gdal-dev@lists.osg

[gdal-dev] field name in ESRI file

2010-03-24 Thread Oz Nahum
ld_LUC.SetWidth(15) dst_layer.CreateField(field_LUC) Yet, when I examine the output file the attribute table contains a field called "LAND USE C", so 3 characters are missing. Would be happy to know what am I doing wrong. Thank you very much, -- Oz Nahum Graduate Student Zentru

Re: [gdal-dev] problems with gdal_translate

2009-09-18 Thread Oz Nahum
-1.0 ) >>> print 'Origin = (',geotransform[0], ',',geotransform[3],')' Origin = ( 3366307.0 , 5814845.0 ) >>> print 'Size is ',dataSource.RasterXSize,'x',dataSource.RasterYSize, 'x',dataSource.RasterCount Size is 1483 x

[gdal-dev] problems with gdal_translate

2009-09-18 Thread Oz Nahum
? Here's the source code reference I'm looking at: http://gdal.sourcearchive.com/documentation/1.6.1-2/aaigriddataset_8cpp-source.html Any suggestions how to avoid/ solve this annoying warning will be appreciated. Thanks, Oz Nahum Graduate Student Zentrum für Angewandte Geologie U

[gdal-dev] convert shape file to ascii raster

2009-09-06 Thread Oz Nahum
I use other pathway to create ascii raster from shape files with out the creation of templates ? Can someone direct me to a python solution ? Many thanks, Oz Nahum Graduate Student Center for Applied Geosciences University of Tuebingen -- Imagine there's no countries

[gdal-dev] Re: Python Scripts

2009-06-06 Thread Oz Nahum
on Raster...' you can find more stuff here: http://docs.scipy.org/doc/numpy/reference/maskedarray.html Hope it helps some how Oz Nahum Graduate Student Center for Applied Geosciences University of Tuebingen -- Imagine there's no countries It isn't hard to do

[gdal-dev] Re: Re: Python Scripts

2009-06-06 Thread Oz Nahum
on Raster...' you can find more stuff here: http://docs.scipy.org/doc/numpy/reference/maskedarray.html Hope it helps some how Oz Nahum Graduate Student Center for Applied Geosciences University of Tuebingen -- Imagine there's no countries It isn't hard to do

Re: [gdal-dev] ERROR 4: `AOI.tif' not recognised as a supported file format.

2009-03-30 Thread Oz Nahum
thanks, That does the trick. Oz. On Mon, Mar 30, 2009 at 7:02 PM, Even Rouault wrote: > Oz, > > See the hereafter a correction to insert in your code that will hopefully > fix > your issue. > > Le Monday 30 March 2009 17:25:13 Oz Nahum, vous avez écrit : > > Hi, >

[gdal-dev] ERROR 4: `AOI.tif' not recognised as a supported file format.

2009-03-30 Thread Oz Nahum
rasterize -burn 255 -l AOI AOI.shp AOI.tif Runs ok. So I am confused, why I can't call gdal_rasterize from python ? Thanks, for any help Oz Nahum Universtät Tuebingen Applied Environmental Sciences -- Imagine there's no countries It isn't hard to do

Re: [gdal-dev] saving numpy array as ascii raster

2009-03-05 Thread Oz Nahum
Hi, Thanks for your quick reply. When I edit my code function to be: def WriteRaster (dst_filename, raster): format = "AAIGrid" driver = gdal.GetDriverByName( format ) dst_ds = driver.Create( dst_filename, 71, 73,\ 1,gdal.GDT_Float32,options=["COMPRESS=PACKBIT

[gdal-dev] saving numpy array as ascii raster

2009-03-05 Thread Oz Nahum
2 2 2 2 2 2 2 2 2 2 2 -19998 -19998 I would appreciate it if some one can supply a code snippet how to successfuly save numpy arrays into ascii raster. Thanks again, Oz Nahum Eberhard Karls Universität Tübingen Grad-student Applied Environmental Ge

Re: [gdal-dev] ASCII Rasters and 'null' values in python-gdal

2009-03-03 Thread Oz Nahum
guys. Oz. On Fri, Feb 27, 2009 at 5:40 PM, Frank Warmerdam wrote: > Oz Nahum wrote: > >> Hi, Thanks for the answer. >> Ok, I admit the way I presented my first email is a bit confusing. >> But the problem is not with the 'null' values. Rather the problem is wi

Re:Re: [gdal-dev] ASCII Rasters and 'null' values in python-gdal

2009-02-27 Thread Oz Nahum
all the "null" strings into > an unused pixel value like - in raster1.asc > > Regards, > -- > Chaitanya kumar CH. > > On Fri, Feb 27, 2009 at 2:34 AM, Oz Nahum wrote: > > Hi, > > I have to ascii raster that I created using a text editor: > >

[gdal-dev] ASCII Rasters and 'null' values in python-gdal

2009-02-26 Thread Oz Nahum
Hi, I have to ascii raster that I created using a text editor: the first is called raster1.asc and looks like this: ncols 6 nrows 4 xllcorner 3366820.019 yllcorner 5814589.037 cellsize 10 NODATA_value - 1 1 1