[gdal-dev] problems reading a .img file containing only elevation data

2008-09-26 Thread Tom Flynn
Hi there, First a disclaimer: I come from a 3d graphics background and am somewhat of a GIS noob. Forgive me if I'm doing something blatently stupid. I have a 6000x5000 Erdas .img file containing elevation data as floating point numbers (GDT_Float32). I can bring up and view this file in Globa

RE: [gdal-dev] KML output fields

2008-09-26 Thread Christopher Condit
Hi Bruce- The KML driver should behave as follows: If you define a field using a creation option for NameField (the default is "Name") then it will be written out as the "Name" element. Likewise with "Description". You're saying that everything works fine using ogr2ogr but when you try to create

Re: [gdal-dev] query raster values by xy-location

2008-09-26 Thread Andruit
Thanks for your suggestion, As Jose proposed, I worked out the row and column of my pixel from my (x,y) location and extracted the value. I am using the function RasterIO() to do so. It works fine. I can read a xy file and a ESRI ASCII Raster. As a result I get an xyz file. Andi -- GMX Kos

Re: [gdal-dev] query raster values by xy-location

2008-09-26 Thread Dylan Beaudette
On Friday 26 September 2008, Dane Springmeyer wrote: > Hi Andi, > > I had a similar task where I needed to find the elevation value from a > geotiff at the upstream and downstream points of a river line segment. > Another idea is a tool called StarSpan. Cheers, Dylan -- Dylan Beaudette Soil R

[gdal-dev] Edit Metadata on MrSID image

2008-09-26 Thread Mullins, Steven
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would like to replace the projection WKT in a group of MrSID files. I do not need to modify the compressed image itself, only the metadata. Can I do this in GDAL? Thanks, Steve -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) - Win

[gdal-dev] KML output fields

2008-09-26 Thread Clay, Bruce
When I use ogr2ogr to convert a shapefile to KML there are no "Name" or "Description" fields in the output and all attributes are lined up. When I try to create a KML file from my code and populate the data both "Name" and "Description" fields are included in the output. I have tried not a

Re: [gdal-dev] query raster values by xy-location

2008-09-26 Thread Dane Springmeyer
On Sep 26, 2008, at 10:03 AM, Dane Springmeyer wrote: What I found was that writing out a sql insert statement was faster than hitting the database with updated queries during the lookup routine, but I may not have been using the psycopg2 driver in the most optimal way. Oh, and I should

Re: [gdal-dev] query raster values by xy-location

2008-09-26 Thread Dane Springmeyer
Hi Andi, I had a similar task where I needed to find the elevation value from a geotiff at the upstream and downstream points of a river line segment. This thread sums up my approach, based on a kick start from helpful postgis users: http://postgis.refractions.net/pipermail/postgis-users/

[gdal-dev] Out of Office

2008-09-26 Thread paar
Vielen Dank für Ihre Nachricht. Ich bin bis einschließlich 26.09.2008 nicht im Büro und kann Ihre Anfrage leider nicht bearbeiten. Ihre Nachricht wird nicht automatisch weitergeleitet. Ich werde Ihre eMail gerne nach meiner Rückkehr beantworten. Thank you very much for your message. I'm out of

[gdal-dev] help me

2008-09-26 Thread liu_daojie
hello: the following code,can not show tif: void CTrans::DrawImage1(void) { m_pMemoryDC->SelectObject(m_pMemoryBitMap); CRect rc(0,0,m_pViewWidth,m_pViewHeight); CBrush brush(RGB(255,255,255)); m_pMemoryDC->FillRect(rc,&brush); if( poDataset != NULL ) { GDALRasterBand *p

Re: [gdal-dev] query raster values by xy-location

2008-09-26 Thread Jose Gomez-Dans
Hi, 2008/9/26 <[EMAIL PROTECTED]> > > I have an ESRI ascii raster and would like to get the raster values at > defined x y locations. > At the moment I am capable to load the Raster Dataset and can perform > several operations like querying the Min/Max values, the origin, the > pixelsize and so

[gdal-dev] lib questions

2008-09-26 Thread Nidel, Mike
Two quick questions: 1. What is libgdalconstjni.so? I've been building and using the JNI interfaces and just blindly including this file, but I can't determine what this is and whether I need it. Sorry if this is a stupid question, I couldn't find the answer in any of the build docs. 2. Is there

[gdal-dev] query raster values by xy-location

2008-09-26 Thread Andruit
Hello, I have an ESRI ascii raster and would like to get the raster values at defined x y locations. At the moment I am capable to load the Raster Dataset and can perform several operations like querying the Min/Max values, the origin, the pixelsize and so on But is there a function to