[gdal-dev] OGR SDE driver failing on empty tables

2010-06-25 Thread Bart van den Eijnden (OSGIS)
Hi list, using Mapserver on OGR SDE layers we get error messages for empty tables. msOGRFileNextShape(): OGR error. SE_shape_generate_rectangle: -139/The specified coordinate exceeds the valid coordinate range To me it seems this should fail silently, and we should just end up with an empty

[gdal-dev] Re: gdalwarp large imagery faster?

2010-06-25 Thread Hermann Peifer
On 24/06/2010 16:40, GeoSpatial - Kevin wrote: Hi all, I am trying to re-project a very large imagery (size 40,000 by 40,000 pixels, resolution ~120m) located at high latitudes (60N) to a standard wgs84. By searching some previous posts, I come up with the following command: gdalwarp -of EHdr

[gdal-dev] RE: can't open HDF5 subdatasets

2010-06-25 Thread benbendor
Hello: I do not want to receive the mail which temporarily at present comes from gdal-dev-requ...@lists.osgeo.org. Thanks so much. bendor From: dor_ben2...@hotmail.com To: gdal-dev@lists.osgeo.org Subject: can't open HDF5 subdatasets Date: Mon, 15 Mar 2010 10:13:49 +0800 Hello: I

Re: [gdal-dev] Modify an image color table?

2010-06-25 Thread Frank Warmerdam
Marco Stelluti wrote: Hi, I'm a new gdal user and I've a little problem. I have to modify the color to an ASCII raster. 1_ I converted the raster using gdalbuildvrt; 2_ I modified the file *.vrt adding: ColorInterpPalette/ColorInterp ColorTable Entry c1=255 c2=255 c3=255 c4=255/ Entry

[gdal-dev] Using gdalwarp over NCEP - keep pixel resolution

2010-06-25 Thread António Rocha
anyone has a tip on how to figure this correspondence in order to use that value in the Gdalwarp expression? Thanks Best regards, Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 5228 (20100625) __ The message was checked by ESET NOD32

Re: [gdal-dev] The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception. when gdal.Allregister() calls

2010-06-25 Thread Tamas Szekeres
Hi, What kind of exception has been thrown? Perhaps a missing dll may cause like this. Tamas 2010/6/25 mail2vajram mail2vaj...@gmail.com i installed fwtols2.4.7 previously.That time i worked with gdal with out any problem but now when i work with gdal it throws the following

[gdal-dev] Handling nodata values

2010-06-25 Thread NopMap
Hi! I am trying to create contour lines (and later hillshading) from CGIAR data. They use –32768 as a nodata value for sea areas which results in tremendous cliffs if the data is processed by gdal_contour as it is. I am looking for a way to replace this nodata value in the geotiffs by a simple

Re: [gdal-dev] Handling nodata values

2010-06-25 Thread Frank Warmerdam
NopMap wrote: Hi! I am trying to create contour lines (and later hillshading) from CGIAR data. They use –32768 as a nodata value for sea areas which results in tremendous cliffs if the data is processed by gdal_contour as it is. Nop, If the nodata value is not recognised by GDAL you can

Re: [gdal-dev] Multithreading with OGR

2010-06-25 Thread Frank Warmerdam
Martin Dobias wrote: Hi Frank On Wed, Jun 23, 2010 at 4:58 PM, Frank Warmerdam warmer...@pobox.com wrote: Martin, Generally speaking it is not safe to have multiple threads making calls into a single OGRLayer at the same time. At the very least you will encounter the messing up effect on

Re: [gdal-dev] Multithreading with OGR

2010-06-25 Thread Martin Dobias
On Fri, Jun 25, 2010 at 5:55 PM, Frank Warmerdam warmer...@pobox.com wrote: My intent is to use two OGRLayer instances of the same layer: one instance for handling various stuff in main thread, the other one in worker thread for rendering. Can I expect the GetNextFeature calls to be reentrant,

Re: [gdal-dev] gdal compile from svn for python - how to specify a user defined numpy directory for compilation

2010-06-25 Thread Christopher Barker
hannes wrote: How to compile gdal against a user specified numpy I THINK the GDAL build calls python distutils (setup.py) to do the actual python extension build. Ideally, the setup.py uses numpy.get_include() to get the numpy include directory. If so, it should just work with your setup,

[gdal-dev] OGR: Accessing ESRI Personal Geodatabase on OS X

2010-06-25 Thread Bob Cave
Hello, I see that OGR supports reading ESRI Personal Geodatabases. We are considering adding this capability to our product, which has both Windows and Mac OS X implementations. I have tried the basic functionality on Windows (using FW_Tools), and the OGR documentation has instructions for

[gdal-dev] Re: Handling nodata values

2010-06-25 Thread NopMap
Thank you for your reply. I played around a little bit but without success. When I apply val_repl.py to the data, it appears to cut off all the higher elevations while the lower areas remain untouched. So the resulting TIF is unusable. What could cause this problem? gdal_contour seems to

Re: [gdal-dev] OGR: Accessing ESRI Personal Geodatabase on OS X

2010-06-25 Thread William Kyngesburye
PGeo support depends on a working ODBC driver for MDB databases. On Linux, this is done with mdbtools. I have not been able to get this working on OS X with the system iODBC (I last looked at it a year ago). It compiles (with some hackery), but does not load. I haven't tried mdbtools with

[gdal-dev] How to retrieve map data from Envi file?

2010-06-25 Thread LKeene
Hi folks, I'm a new GDAL developer with what I believe is a simple question: We're trying to use GDAL in our app to access Envi files. I'm able to get access to the file bands as well as some other information by using the GDALDataset and GDALRasterBand objects, but how can I access other

Re: [gdal-dev] How to retrieve map data from Envi file?

2010-06-25 Thread Chaitanya kumar CH
Lionel, Most the data you asked for can be obtained with various methods from the GDALDataSet and GDALRasterBand objects. I'm not sure what you mean by units type , but I'm sure it can be derived from them. FYI, reference pixels are called GCPs (Ground Control Points) in GDAL. Datum can be