Linked Questions

5
votes
3answers
8k views

Get individual pixel values on a raster image using gdal and python [duplicate]

I'm now stuck with writing a piece of code to look up individual pixel values on a raster image. This piece of code mainly executes two tasks: (1) converting world coordinates to raster coordinates (...
1
vote
0answers
97 views

Extract raster values to multipoint shapefile and write to new field using gdal/python [duplicate]

I have a raster with one band and I would like to query a set of overlying points (.shp) to determine how many points as well as which points points fall under a range of certain pixel values ...
13
votes
3answers
4k views

PostGIS raster value of a lat/lon point

I have a tiff raster in my PostGIS 2.0 database. I want to get the value of the raster at a specified lat/lon point. I have: postgresql-9.1 postgis-2.0-svn with raster support a raster imported ...
6
votes
4answers
12k views

Retrieve pixel value with geographic coordinate as input with gdal

I have a list of X,Y coordinates in UTM called coords. I also have a .tif of a digital terrain model (DTM) also referenced in UTM. I would like to use the Python wrapper for gdal to return the pixel ...
8
votes
4answers
2k views

Extracting Values to Points without ArcGIS Spatial Analyst?

I have a raster DEM & multiple points. I want to determine the DEM elevation at each point. Other than manually examining the DEM at each point, (very time consuming with lots of points) is ...
7
votes
2answers
10k views

Extract raster values within shapefile with pygeoprocessing or gdal

I would like to know how to get all the raster values within a polygon using gdal or pygeoprocessing, without reading the entire grid as an array. pygeoprocessing and gdal can do zonal statistics but ...
6
votes
2answers
3k views

Get a pixel value

How can i do this operation: I want to get a pixel value fro the satellite image (Landat, GeoTIFF, 7 bands) using qgis-python. What operators should i use? (for example in qgis's Python Console)
11
votes
3answers
3k views

Image processing using Python, GDAL and Scikit-Image

I am struggling with a processing and hopefully I will be able to solve here. I work with Remote Sensing applied to Forestry, especially working with LiDAR data. The idea is to use Scikit-image for ...
1
vote
2answers
3k views

Extraction of raster with shapefile python

I have a raster tiff file containing vegetation index & also a shapefile of fields. I want to extract the field wise values from that raster file using GDAL. How can I do this? I can read the ...
5
votes
2answers
3k views

Finding the pixel coordinates using GDAL/numpy

Is there a way to get the XY cordinates of a pixel based on the array index using numpy/gdal? I have a new set of extents for a raster and, based on these newer extents, want to determine the ...
2
votes
1answer
2k views

Extract raster values from point using GDAL

I want to extract raster value from point shapefile geometry. Raster size is 45924 x 61671 and shapefile has 11.000.000 points. I'm using extract function from Raster package in R but is not very fast....
1
vote
0answers
1k views

GDAL tool for converting raster to point shapefile based on locations of another shapefile?

There is a shapefile with point data of rainfall sampled at a regular grid, and there is a shapefile with point data of soil attributes sampled at a regular grid, but the latter with smaller pixel ...
0
votes
2answers
539 views

Extracting coordinates from multipoint geometries?

I found this guide to get pixel value of raster under point: Getting pixel value of GDAL raster under OGR point without NumPy? I've a problem here: for feat in lyr: geom = feat.GetGeometryRef() ...
0
votes
1answer
539 views

How can I determine elevation levels for a region in Java?

I need to find out the elevation levels for a certain region (center is located at 132.159633, 43.350116). For this purpose I went to the Elevation finder and downloaded there the relevant part of ...
0
votes
2answers
481 views

How to get mean values of adjacent cells at point location when extracting values to points?

I use this code extract raster values to points. from osgeo import gdal,ogr import struct src_filename = '/tmp/test.tif' shp_filename = '/tmp/test.shp' src_ds=gdal.Open(src_filename) gt=src_ds....

15 30 50 per page