Re: [gdal-dev] Oracle OCI connection in Python OGR

2010-02-15 Thread Eric Wolf
Thanks Ivan, NLS_LANGUAGE = AMERCAN Reading shapefile works (still). Rather aggravating... I may try it on another system to see what I get. -Eric -=--=---===---=--=-=--=---==---=--=-=- Eric B. WolfNew! 720-334-7734 USGS Geographer Center of Excellence in GIScie

Re: [gdal-dev] Oracle OCI connection in Python OGR

2010-02-15 Thread Ivan Lucena
Eric, Sorry for my typo. I mean, "it was a good clue". I did a quit test using GDAL 1.8dev, the trunk version. I build the python wrapper myself by running "setup.py bdist_wininst" with Python 2.5.4. That generates "GDAL-1.7.0.win32-py2.5.exe". That is how it goes: Python 2.5.4 (r254:67916, D

[gdal-dev] ECW/JPEG2000 on Windows Vista/7

2010-02-15 Thread Pinner, Luke
Hi all, Not strictly a GDAL issue as such, I'm just posting this to "publish" a workaround (as I couldn't find much info about this issue) so apologies in advance. Using GDAL 1.6.3 (OSGeo4W). The standard ERDAS ECW/JPEG2000 SDK "redistributables" (NCSEcw.dll etc...) crash when opening ECW/JP2 ra

[gdal-dev] RE: Simple Q: fatal error LNK1120: 19 unresolved externals

2010-02-15 Thread vona
Thanks Sjur :) I just took the required .h files from the source package downloaded from here: http://trac.osgeo.org/gdal/wiki/DownloadSource I also downloaded a bunch of binaries, but how do i know which of them i need to run? All i need is to get pixel values of geotiff files (load then into a

RE: [gdal-dev] Simple Q: fatal error LNK1120: 19 unresolved externals

2010-02-15 Thread Sjur Kolberg
Vona, This is because the linker doesn't find the gdal_i.lib. Did you build GDAL yourself or download binaries? Sjur :-) From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of vona Sent: 16. februar 2010 00:51 To: gdal-de

[gdal-dev] Simple Q: fatal error LNK1120: 19 unresolved externals

2010-02-15 Thread vona
What I did is: - downloaded the latest release of GDAL here: http://trac.osgeo.org/gdal/wiki/DownloadSource - created a project, created a .cpp file and put all the required .h files in the same directory - ran debugging and got the following error: fatal error LNK1120: 19 unresolved exter

Re: [gdal-dev] Oracle OCI connection in Python OGR

2010-02-15 Thread Eric Wolf
I'm beginning to think something is wrong at my end. I just installed Python 2.5, GDAL 1.5 and cx_Oracle for Python 2.5. I'm still getting the same behavior. cx_Oracle works, OGR doesn't. Is the clue in my last email? I mean, the Unicode version of cx_Oracle didn't work but the non-Unicode version

Re: [gdal-dev] Oracle OCI connection in Python OGR

2010-02-15 Thread Ivan
Eric, Eric Wolf wrote: I'm running Oracle 11g on the same machine as the Python script. I did test cx_Oracle and found that it wasn't working. I was using the Unicode cx_Oracle 5.0.3. Switching to the non-Unicode cx_Oracle got it working. But OGR is still not connecting. Does OGR rely on cx

Re: [gdal-dev] Oracle OCI connection in Python OGR

2010-02-15 Thread Eric Wolf
I'm running Oracle 11g on the same machine as the Python script. I did test cx_Oracle and found that it wasn't working. I was using the Unicode cx_Oracle 5.0.3. Switching to the non-Unicode cx_Oracle got it working. But OGR is still not connecting. Does OGR rely on cx_Oracle? I think I'll try re

Re: [gdal-dev] gdal_translate -scale and negative values

2010-02-15 Thread Hermann Peifer
didn't you notice that... Not really. I must have been blind. Thanks for your hint. This works fine. Hermann Original Message Subject: [gdal-dev] gdal_translate -scale and negative values From: Even Rouault To: gdal-dev@lists.osgeo.org Cc: Hermann Peifer , Frank Warmerda

Re: [gdal-dev] gdal_translate -scale and negative values

2010-02-15 Thread Even Rouault
Herman, didn't you notice that -32768 / 100 = -327.68 ~= -328 ... ;-) ? The issue is that when doing rescaling, gdal_translate doesn't currently explicetly set the source nodata value as the nodata value of the VRT source, so the pixels whose value is the nodata value are just rescaled as other

[gdal-dev] gdal_translate -scale and negative values

2010-02-15 Thread Hermann Peifer
Hi, I am trying to scale the values in an Int16 raster band. Basically, I want to have them divided by 100. It looks to me that negative values are not scaled at all, whatever ranges I give to -scale. What am I doing wrong? Hermann $ gdalinfo -mm infile.tif ... Band 1 Block=7200x1 Type=Int16

Re: [gdal-dev] elevation profile

2010-02-15 Thread jluis
Citando Jean-Claude REPETTO : Michele Sanges a écrit : Hello all, opening a raster file with values of elevation (for example DEM or DTED files), is there a GDAL C++ API to get all the values of elevation between two places (elevation profile)? Thanks. Best regards. Hello Michele, T

Re: [gdal-dev] elevation profile

2010-02-15 Thread jluis
Citando Jean-Claude REPETTO : Michele Sanges a écrit : Hello all, opening a raster file with values of elevation (for example DEM or DTED files), is there a GDAL C++ API to get all the values of elevation between two places (elevation profile)? Thanks. Best regards. Hello Michele, T

Re: [gdal-dev] elevation profile

2010-02-15 Thread Jean-Claude REPETTO
Michele Sanges a écrit : Hello all, opening a raster file with values of elevation (for example DEM or DTED files), is there a GDAL C++ API to get all the values of elevation between two places (elevation profile)? Thanks. Best regards. Hello Michele, There is an interesting paper about