Re: [gdal-dev] Python bindings on RedHat cluster (was: AttributeError: 'MaskedArray' object has no attribute 'typecode' -- when writing GeoTiff)

2009-07-21 Thread Scott Sinclair
Hi Greg, It's always a good idea to communicate via the list, there are more eyes and skills there. The conversations are also publicly archived, making it easier for others having similar problems to search for help. In this case, the mistake is mine, I see that this list behaves differently to

RE: [gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-21 Thread Smart, Gary
Oh - I see. I can open them now and wander through their layers and vector points. Thank you. I don't suppose there is a utility/convience function to 'rasterize' the information within a 2D vector file (e.g. vector map) by any chance (i.e. rather than drawing them using OpenGL or

Re: [gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-21 Thread Peter J Halls
There is the GDAL rasterize method, however that is designed to translate vector polygons into raster representations. Converting points to raster is a very simple task and does not really need a method; converting lines is slightly less trivial, however these are issues with regard to how to

[gdal-dev] Ruby bindings and geotiff...

2009-07-21 Thread Adam Fowler
Hi All, I'm trying to write a Ruby app to read the new and fantastic NASA ASTER Elevation DEM. This is of course in GeoTiff format. I'm wondering if anyone has examples in any language of using GDAL to read a particular location's data from a geotiff file? I can do the calculations to figure out

[gdal-dev] FOSS4G Abstracts announced + Early Bird registration looming

2009-07-21 Thread Frank Warmerdam
FOSS4G Abstracts announced + Early Bird registration looming Sydney, Australia. 20 July 2009. http://2009.foss4g.org Abstracts Announced A comprehensive list of presentations has been announced for the international Free and Open Source Software for Geospatial conference, in Sydney, Australia,

[gdal-dev] Messages: gdal_translate and gdal_rasterize

2009-07-21 Thread Steve . Toutant
Hello!!! When I launch this command gdal_translate -projwin -428734.998712 20337 1.497532 -387578.449250 172036.180727 EstMtl.img rssMtl.img I get this message Input file size is 7771, 7410 Computed -srcwin 1204 4838 1372 1045 from projected window. 0Warning 1: Lost metadata writing to GeoTIFF

Re: [gdal-dev] Messages: gdal_translate and gdal_rasterize

2009-07-21 Thread Frank Warmerdam
steve.tout...@inspq.qc.ca wrote: Hello!!! When I launch this command gdal_translate -projwin -428734.998712 20337 1.497532 -387578.449250 172036.180727 EstMtl.img rssMtl.img I get this message Input file size is 7771, 7410 Computed -srcwin 1204 4838 1372 1045 from projected window. 0Warning

Re: [gdal-dev] Messages: gdal_translate and gdal_rasterize

2009-07-21 Thread Steve . Toutant
Thanks Frank, the command cannot determine it from the .shp file Why? Is it because the EPSG code of this .shp is unknown to GDAL or GDAL can't get any SRS from a .shp? Should I add the EPSG code somewhere in a configuration file? Best regards, Steve Steve Toutant, M. Sc. Analyste en

Re: [gdal-dev] Messages: gdal_translate and gdal_rasterize

2009-07-21 Thread Frank Warmerdam
steve.tout...@inspq.qc.ca wrote: Thanks Frank, the command cannot determine it from the .shp file Why? Is it because the EPSG code of this .shp is unknown to GDAL or GDAL can't get any SRS from a .shp? Should I add the EPSG code somewhere in a configuration file? Steve, Presumably it

RE: [gdal-dev] General Questions about gdal usage with Grib1 Data Set

2009-07-21 Thread Cassanova, Bill
There is now an additional wrinkle to the project. We need to now extract the 4 closest values for a given lat-lon point to complete a bilinear interpolation for added accuracy. Would the correct method be: (1) Use the suggestion that Frank made below about a hybrid approach to my original

Re: [gdal-dev] General Questions about gdal usage with Grib1 Data Set

2009-07-21 Thread Frank Warmerdam
Cassanova, Bill wrote: There is now an additional wrinkle to the project. We need to now extract the 4 closest values for a given lat-lon point to complete a bilinear interpolation for added accuracy. Would the correct method be: (1) Use the suggestion that Frank made below about a hybrid

Re: [gdal-dev] Problem closing VRT GDALDataset *

2009-07-21 Thread Frank Warmerdam
Adeel Raza wrote: Hi, I 'm using the GDALAutoCreateWarpedVRT() function to warp a MEM GDALDataset. When I use the GDALClose() function to close the source (MEM) dataset nothing happens. However, when I close the warped (VRT) dataset using GDALClose() I get the following error: Unhandled

Re: [gdal-dev] Problem closing VRT GDALDataset *

2009-07-21 Thread Adeel Raza
Hi Frank, Thanks for the help. It seems like you were correct. When I dereference the MEM dataset the post-decrement reference count is not 0. My question is: do I not close the MEM dataset since its reference count is not 0? Best Regards, Adeel Raza. Frank Warmerdam wrote: Adeel Raza

Re: [gdal-dev] Problem closing VRT GDALDataset *

2009-07-21 Thread Frank Warmerdam
Adeel Raza wrote: Hi Frank, Thanks for the help. It seems like you were correct. When I dereference the MEM dataset the post-decrement reference count is not 0. My question is: do I not close the MEM dataset since its reference count is not 0? Adeel, You should not be closing the MEM

Re: [gdal-dev] Problem closing VRT GDALDataset *

2009-07-21 Thread Adeel Raza
Hi Frank, OK - my next question then is: If I close the VRT dataset if it references the MEM dataset using GDALClose(), would that operation also close the MEM dataset or would I need to close the MEM dataset after I close the VRT dataset? Best Regards, Adeel. Frank Warmerdam wrote: Adeel

[gdal-dev] Reading ArcInfo binary grids with the R rgdal package fails with GDAL Error 3: Attempt to read past EOF in ..../arc.dir

2009-07-21 Thread Jason Roberts
I have some R code that reads ArcInfo binary grids using the rgdal package. This code has worked for a long time. Now, with the latest versions of everything it is failing with the message: GDAL Error 3: Attempt to read past EOF in C:\Temp\GeoEcoTemp_Jason\tmphrgwuo\projected0/../info/arc.dir.

[gdal-dev] PG Driver for OGR 1.6

2009-07-21 Thread Trent Pingenot
Hello, I'm looking for the gdalplugin (ogr_PG.dll) for OGR for the PostGres/PostGIS for OGR 1.6 for Windows. I had a copy before for an older version, but have upgraded to 1.6 and can't seem to find one in the usual places. I had looked here http://download.osgeo.org/gdal/win32/1.6/ but