[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 don

[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.

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

2009-07-21 Thread Even Rouault
Le Tuesday 21 July 2009 22:50:10 Adeel Raza, vous avez écrit : > 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 It depends if you drop the reference on the MEM dataset b

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

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 datase

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

2009-07-21 Thread Frank Warmerdam
Cassanova, Bill wrote: I had considered that but was a little concerned about accuracy. So for example: Original lat-lon point --> -77.78, 36.01 Extracted i-j --> 1015.63, 404.964 The 4 closest are the ceil/floor of both so: 1015 and 1016 for X and 404 and 405 for Y. However, the r

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 wrote

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

2009-07-21 Thread Cassanova, Bill
I had considered that but was a little concerned about accuracy. So for example: Original lat-lon point --> -77.78, 36.01 Extracted i-j --> 1015.63, 404.964 The 4 closest are the ceil/floor of both so: 1015 and 1016 for X and 404 and 405 for Y. However, the resolution of the data is 1

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 exce

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 app

[gdal-dev] Problem closing VRT GDALDataset *

2009-07-21 Thread Adeel Raza
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 exception at 0x01226b6e

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 (2).

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] 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 gé

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 1

[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 .

[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, 2

[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

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 r

RE: [gdal-dev] Converting raster pixel space to geospace

2009-07-21 Thread Smart, Gary
Yes I have the gdalinfo - it seems happy enough with the files I am experimenting with. I'm not sure what 'proj' is supposed to do and can't find any info on it - but it is in my path and runs? I have attached a small extract from my ever failing code - it compiles and runs. Perhaps someone c

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 something)