Raster is a data format consisting of regular grids of values, usually stored in an image-like format.

learn more… | top users | synonyms

6
votes
1answer
186 views

Is there a difference between projecting shapefiles then rasterizing & rasterizing shapefiles then projecting?

I currently have a project where I rasterize shapefiles into simple presence/absence (1 & 0) rasters and then add each one to a running total to create a total richness raster at the end. The ...
0
votes
0answers
207 views

Calculate optimal paths between different points

How can I calculate all the possible paths between a group of points, taking into consideration the SRTM and the Slope ? I am trying to do this in ArcGIS, my dataset is a group of points (shape ...
1
vote
1answer
173 views

gdal_rasterize -at function still won't capture covered pixels properly

I'm currently using the gdal_rasterize tool in bash. My code looks like this: gdal_rasterize -l $(basename $file .shp) -burn 1 -a_nodata 0 -te -180 -90 180 90 -tr 0.1 0.01 -at -ot Byte $file ...
2
votes
1answer
202 views

How to rename rasters in directory based on field value of their centroid feature class in ArcGis?

I have a lot of rasters named like r001.tif, r002.tif and so on. There is a point shapefile with centroids of these rasters and their real name in the attribute table. I'm looking for a way or some ...
0
votes
2answers
360 views

Detect whether there is a spatial polygon in a spatial extent

Given a spatial extent (for example cbind(c(0,0),c(10,10)),I want to see whether there is a part of a SpatialPolygons falls in this extent? How can I do this? Thank you very much!
7
votes
3answers
3k views

Loading geotiffs into PostGIS using raster2pgsql

I have an issue with loading some Ordnance Survey raster data into PostGIS. I have been using the following raster2pgsql command to load a tif that I have placed in my C:\Program ...
4
votes
2answers
572 views

focal statistics with variable radius

is there an easy way to do focal statistics on a raster, with a variable radius for the neighbourhood to be searched? As in: that search radius would be stored in another raster? i tried something ...
6
votes
7answers
5k views

How can I align two non-coincident equi-resolution raster grids?

I have two rasters: a digital elevation model (DEM) and a Landsat band. The grid resolution of both is 30 m, but the grids are not coincident (see image: the dark raster on top is the DEM; the light ...
10
votes
2answers
283 views

Count raster value in a bounding box (spatial extent)

I have simple question: given a bounding box, how can I count the number of specific values (say, I am interested in the number of value == 1 ) in a raster in 1) arcpy, or 2) raster package in R?
3
votes
3answers
237 views

How to compare a set of images with a shapefile?

I have around 150 images (rasters), each one is just a map of certain "classes", e.g. pixel value 1=forest. I also have a shapefile that consists of roughly the same area as the 150 images constitute ...
0
votes
1answer
129 views

Coloring pixels based on values

I have an image where pixel values are integers, they go from 0 to 6 and I also have some 999. I want the value 999 to be transparent, which I could achieve by myself. I would like values 0 to 6 to be ...
0
votes
0answers
225 views

QGIS Georeferencer and Coordinate Systems

I'm having an issue with Ubuntu and Windows versions of QGIS where the georeferencer does not properly assign the coordinate system to the output raster. When I assign the output CRS to 'EPSG:900913 ...
8
votes
1answer
509 views

Reduce extent of raster processing in ArcPy or ArcGIS Desktop?

I need to reduce the processing extent of my raster by some sort of automatic procedure in python. Currently the borders of the dataset I've been using has anomalies (due to the classification of the ...
6
votes
2answers
830 views

How to simply label raster cells?

I think the title says everything but: I want to generate a small sample raster (eg. euclidean distance or cost distance) to explain the method of cost-distance analysis, and I'd like to label the ...
7
votes
3answers
3k views

How to change null values raster values to 0 in QGIS?

I need help... I'm having problems with QGIS. I have some rasters that appear to have null values, even though I reclassified them to obtain a boolean raster :( How can I change the NULL values to 0?
4
votes
2answers
1k views

How to render PostGIS raster with Mapnik XML?

I'm trying to manage raster files from PostGIS, which to be rendered using Mapnik. I used raster2pgsql to load those GeoTIFF images to PostGIS, and I think the loading process turned out OK. The ...
2
votes
1answer
79 views

How could I assign point values to a raster stream segment?

I need to assign a point value in raster format to a raster stream segment, which contains the point. See bellow: The expected result is a segment, whose value is the point value. How could I?
3
votes
3answers
4k views

How to get values of each cell in raster attribute table?

How do I get the values of each cell in the raster attribute table. Usually the attribute table gives you the value and number of counts. But, in my case I want each cell listed and corresponding cell ...
3
votes
1answer
252 views

Help with null values in rasters

I need to add different boolean rasters of the distribution of some species, since we need to obtain a single file that shows the locations where there are more than one species occurring. To do ...
3
votes
1answer
540 views

Georeference problem including EPSG 102067 projection

I'm Qgis user from Czech Republic. We have a spatial national coordination system (Krovak system) having positive X axes pointing to the south and positive Y axes to the west. Many geographical ...
5
votes
3answers
1k views

Kriging with barriers in R?

I wonder if there is a way to interpolate xyz points in a raster within certain bounds using R? In ArcGIS this is called interpolation with barriers. I wonder if there is something similar in R? I ...
0
votes
1answer
559 views

zonal histogram fails to create output table when looping

Using python I'm having problems when trying to attempt a FOR LOOP with the ZonalHistogram function of ArcGIS 10.1. It works fine if I use it only for one image but it gives me this error while for ...
2
votes
1answer
225 views

How can I apply correct colours to an elevation raster?

I have a problem to display elevation data with pseudocolours. The channel 1 is from -3.40282e+38 to 149.717 . A colleague used 1.7. and it looks like it should (from blue to Red) when I use QGis 1.8 ...
20
votes
5answers
4k views

What is Change Detection and how I can perform such analysis with open source tools?

From wikipedia page: Change detection for GIS (geographical information systems) is a process that measures how the attributes of a particular area have changed between two or more time periods. ...
1
vote
2answers
235 views

Break between two raster layers (topographic maps)

I have the following problem [in QGIS]. In displaying two raster layers (topographic maps), a white area appears between the two. If I apply transparency to one of the layers, this white area still ...
6
votes
3answers
2k views

How do I extract a raster's extent in python?

I am looking for an easy way to extract a raster's extent in python. Currently, I am using gdalinfo and then parsing out the corner coordinates. The problem with this approach is that gdalinfo is ...
4
votes
2answers
382 views

QGIS Two Raster Data Sets with black line between the two sets where they join?

Where the two Digital Raster Quad sets (topo maps 7.5 Quad) overlap there is a significant thick black line (not a single line but wide and is wider the further south you go on the map). I am looking ...
10
votes
3answers
6k views

How to fully load a raster into a numpy array?

I have been trying to check my filters on DEM raster for pattern recognition and it is always resulting in missing last rows and columns(like..20). I have tried with PIL library, image load. Then with ...
4
votes
1answer
2k views

Can I access a raster attribute table in QGIS?

I have some Python code that makes Raster Attribute Tables for GeoTiffs using GDAL. In ArcGIS I can see these attribute tables fine and they behave how I like (as classifications). But in QGIS the ...
5
votes
1answer
1k views

Export selected raster cells to polygon

I have selected certain values in a raster (roughly 1000 cells), and would like to export them to be able to create a polygon. Converting it to points first then to polygons does not work. Can anyone ...
2
votes
2answers
1k views

query raster in ArcGIS 10

I am using ArcGIS 10 (includes spatial and geostatistical analyst). I have a raster (GRID) with a value range of -167 to 18. I would like to query the raster and create a new one with only the values ...
3
votes
0answers
184 views

Geoprocessing Service to return Multidimensional Raster from a NetCDF file

I have tried to make this work for weeks with no results. I am trying to create a model in ArcMap that uses the Multidimension Tool "Make NetCDF Raster Layer" and return a raster to which I can apply ...
1
vote
2answers
471 views

Cannot get arcpy.MosiacToNewRaster to work with list

Below I have a snippet of a much larger code that I cannot get to work and I am not sure why. It seems that I always have trouble using arcpy functions with rasters. Can anyone help me get this code ...
1
vote
4answers
564 views

Determining gradient of road segment

I've a shapefile of roads data. It contains information about terrain of road segments, i.e., hilly, flat, undulating, etc. I want to determine gradient of every road segment. I know this might ...
0
votes
2answers
442 views

Set Raster Cells Based on NoData from other Raster

I have just no clue on this problem. I want one raster to set its values to 0 or NoData based upon another raster noData or 0 values. It's like a reclassify, but between two different raster's. I have ...
4
votes
3answers
1k views

How to speed up Postgis raster layer display in QGIS?

i've been importing some digital orthophoto geotif files into postgis 2.0.1 via raster2pgsql tool (i also made 3 levels of an overview table - pyramid). Then i tried to import the layer into qgis via ...
2
votes
2answers
198 views

Is there anywhere that I can obtain global UV data in either raster or vector format?

I'm looking for some UV data (currently with no spatial or temporal resolutions in mind, but ideally split into UV-A and UV-B) for the whole earth. Can anyone recommend a source for data like this or ...
0
votes
0answers
220 views

QGIS Invalid Data Source in raster calculator

I just installed QGIS and am new to it. I want to use the raster calculator, but after assigning a name to the output layer QGIS tells me "Invalid Data Source" and "filename.tif is not a valid or ...
9
votes
6answers
7k views

Rasterfile clipping error: Cannot compute bounding box of cutline

I have a raster file and want to clip it, a vector file is supposed to be the mask layer. I use the most obvious method (Raster->Extraction->Clipper). No matter what I do, I get this error (see pic): ...
2
votes
0answers
345 views

Can hdf4 images be used in QGIS?

I'm trying to use hdf4 raster image in QGis 1.8. This image come from the MODIS satellite. I've loaded the file, it appears on the layer window bu it is impossible to see it on the display window. ...
6
votes
3answers
3k views

How can I select vector features that overlay raster in arcpy?

I have two datasets: point feature class and raster (stored in file geodatabase). The spatial extent of the raster is smaller than the point dataset. Is there a way I could select (or create new, ...
10
votes
2answers
442 views

What are the advantages/disadvantages of populating a PostGIS database with Raster information?

...as opposed to keeping the rasters as locally stored GEOTIFFs? I have a large project that will require making available approximetely 50,000, 10mb GEOTIFFs as WMS to an OpenLayers based web map. ...
1
vote
0answers
198 views

Reclassify ESRI raster using variables from a SQL Server table (connecting with pyodbc)

I am trying to reclass a raster file (representing vegetation and land cover types) using values stored in a SQL Server Express table. I have a set of ~400 species records in the table, with each row ...
5
votes
1answer
2k views

How do you add a long list of rasters together in Python?

If you have produced a long list of rasters (lets say 50) and want to add them together, is there any shorter way to write in python rather than typing all the inputs, like so: outRas = inRas1 + ...
0
votes
0answers
185 views

SAGA grid VRT, file how to apply a LUT?

I've created a heap of saga grid files for some hydro survey work. I'm looking at a way to read these into a mapguide raster/grid layer, I'm able to load up the grids using a vrt file, I can't figure ...
-2
votes
1answer
461 views

how to make grid cells by point data [closed]

I have a csv data. the X, and Y columns show bottom left corner of each grid. It is supposed to show as grid square, but it shows points. what is the problem? and is there any way I can make cell ...
5
votes
1answer
840 views

Are there limitations using a PostGIS out-db raster?

I have been trying to import a large raster into a PostGIS 2.0 database and hit a few stumbling blocks. Initially when I tried to import the raster using raster2pgsql, I would receive the following ...
0
votes
1answer
180 views

QGis : superimpose 2 rasters georeferenced (adjustment)

I am pretty new in QGis and I encounter the following problem. I have 2 rasters, let's say, "cadaster" and "tranchot". The raster "tranchot" was georeferenced from the raster "cadaster" with QGis. ...
2
votes
2answers
881 views

Conditional combining of multiple rasters to produce one output using Python?

I have two rasters for same spatial extent and need to compare both rasters cell by cell and produce one output raster. Each has 10 land cover classes. Based on those 10 classes the comparison should ...
3
votes
0answers
125 views

How to view Esri GRID format file in wxpython file browse window? [closed]

I'm trying to browse for all kinds of vector and raster data using a filebrowsebutton. The problem is I don't know how to let the browse window see the Esri GRID files (which contains a folder and a ...