gt; gdal-dev] query raster values by xy-location
>> Bryan Keith bryan at ideotrope.org
>> Mon Sep 29 16:10:24 EDT 2008
>> * Previous message: [gdal-dev] query raster values by xy-location
>> * Next message: [gdal-dev] query raster values by xy-location
>> * Message
Attached is some python code you can use to return the value at a cell
given an xy. It does not interpolate. I have a different function for
that if that's what you want.
Bryan
> Hi,
>
> 2008/9/26 <[EMAIL PROTECTED]>
>
>>
>> I have an ESRI ascii raster and would like to get the raster values at
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
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
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
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/
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
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