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

learn more… | top users | synonyms (1)

8
votes
1answer
508 views

How to add a band to an existing GeoTiff using GDAL?

This seems like it should be straightforward but I can't for the life of me figure it out. Given an existing GeoTiff containing a single band, how can you add another band to that GeoTiff? Is the ...
8
votes
1answer
1k views

How to make a new raster using con() script in Python?

I'm new to Python and have been trying to code a raster calculator style script. Basically, I want to convert a raster that has values 0 to -10,000 into a raster that is populated by 1s between ...
8
votes
1answer
2k views

GDAL RasterizeLayer Doesn't Burn All Polygons to Raster

I am trying to burn a shapefile to a raster using GDAL's RasterizeLayer. I pre-create an area of interest raster from a different shapefile, given a specific pixel size. This AOI then serves as a base ...
8
votes
3answers
516 views

How to extract breaklines from a given DEM?

Breaklines are very useful for describing a terrain - for example to build an exact TIN. My question is, how to extract these breaklines from a given DEM? I calculated the curvature (vertical) - ...
8
votes
3answers
987 views

calculate area of vegetations in a raster file

How do I calculate area of several vegetation types in a raster (.img file type) image. They are color coded. Am using QGIS (1.8.0) and ERDAS 9.2.
8
votes
4answers
381 views

Identify corrupt shapefiles or rasters via Python or ArcObjects

I'm interested in a way to identify rasters (e.g., ESRI GRID format) or shapefiles that are corrupt that would prevent them from being used in an analysis tool. I have a large number in structured ...
8
votes
3answers
285 views

R, rasterVis and RGL: how to prevent reflective surfaces?

I have been experimenting with digital terrain model files in ESRI ASCII grid raster format. Despite zero experience with this type of data I found it very easy to load into R, as per code below. The ...
8
votes
1answer
287 views

Where is this raster offset being introduced in the QGIS processing toolbox?

I'm using the (awesome!) processing toolbox in QGIS 2.0 to reclassify some NoData values in a raster from -9999 to 0, but at some point in the process there's an offset of about 0.2 degrees being ...
7
votes
2answers
2k views

How to build an artificial 'dam' across a river?

I have a DEM. Created all files related to watershed including accumulation, direction, streams etc... I'm stuck creating a dam. I request you to please let me know how to build an artificial 'dam' ...
7
votes
7answers
4k views

Extract raster values at points

How can I extract values from a raster by points. I prefer not in Arcgis. I prefer in Qgis or Mapwindow or other open source gis.
7
votes
7answers
2k views

how to overlay shapefile and raster?

I have a shapefile with polygons. And I have a global raster file. I want to overlay the shapefile's polygons onto the raster grid and calculate the mean raster value for each polygon. How can I do ...
7
votes
6answers
15k views

How to get X Y coordinates and cell value of each pixel in a raster using Python?

I’m really new to Python and I would like to know whether there is a quick method to get cell values of a raster pixel by pixel and the coordinates (map X Y coordinate of centre of each pixel) using ...
7
votes
6answers
5k 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): ...
7
votes
4answers
5k views

How to calculate raster statistics for polygons?

how can I calculate sums, averages etc of raster-points (multi-band) per polygon of a vector-layer. I was told that this is called "zonal statistics". I tried that with QGIS first. There is a way to ...
7
votes
3answers
3k views

Simple Question: Raster from ArcGIS to Geoserver

we have a couple raster files which could be open in ArcGIS. They come with the extension of .aux and .rrd and they are the GRID file format from ESRI. We want to put them on Geoserver to overlay them ...
7
votes
2answers
4k views

Find the intersection of two rasters

I have two raster images, Boolean classified (1 or 2). They overlap in given areas. I need a raster that is only the overlapping sections. Using Arcinfo 10. Answer can only use raster methods, no ...
7
votes
3answers
582 views

Merging hundreds of Aerial Photos into one big file?

I have tried to merge my 405 Aerial Photos into one. I have FME and ArcInfo 10.0 at my disposal on Windows 7 64bit. I have tried the following: create a mosaic; export all images from a ...
7
votes
3answers
2k views

GDAL and Python: How to get coordinates for all cells having a specific value?

I've got an Arc/Info Binary Grid---specifically, an ArcGIS flow accumulation raster---and I'd like to identify all cells having a specific value (or in a range of values). Ultimately, I'd like a ...
7
votes
3answers
2k views

Statistical relationships between rasters

I am trying to analyze how sets of rasters relate to each other using some statistical techniques. As, I don't have much experience using the spatial statistics tools in ArcGIS I was exporting my ...
7
votes
3answers
809 views

Creating raster or vector raster from DEM point file?

i have a point shape of 75.000 elevation points in a regular 5 m grid. We now want to create a polygon grid with the elevation points as "centroids". Unfortunately, all attempts to do so fail: I ...
7
votes
4answers
3k views

How to install “1-band color raster color table”?

I would like to use the "1-band raster colour table" extension. I'm using QGIS Wroclaw 1.7.4. In the plugin installer I can't find this extension, even I quote for third party extensions thing. Does ...
7
votes
2answers
215 views

Finding specific pixel values ​​in ArcGIS using Python

I have a raster file containing some integer values. I need to find all pixels whose values are not defined in list like this one: l = [1,2,4,8,16,32,64,128]. Is there any easy way to solve that ...
7
votes
2answers
443 views

How to create a solar intensity map for a garden plot?

I'm interested in creating a raster surface that depicts the average solar intensity per unit area for a small garden plot. I imagine the inputs into the model would be the following: Plot ...
7
votes
1answer
5k views

Converting a polygon into a raster using R

I'm trying to convert a shapefile into a raster within R. My approach is to read in the raster as follows: library(rgdal) # Loads SP package by default demo <- readOGR('F:/data/', 'shapefile') # ...
7
votes
2answers
710 views

Extracting roads out of Landsat raster images

For a study into the expansion of road networks in the rainforest I am trying to extract roads out of Landsat images. We already have sharp and cloud-free composites on which the roads are clearly ...
7
votes
2answers
2k views

QGIS and Raster Mapping in 'Seamless' layer

I would like to use Ordnance Survey base mapping in QGIS. I would like to set up something like a seamless table in MapInfo. I think that the equivalent in QGIS is a Virtual Raster Table. The files ...
7
votes
2answers
3k views

Modify raster layer display and symbology properties programmatically with arcpy or ArcObjects

I have over 1500 NITF files that I need to be able to modify the layer display and symbology of programmatically from within ArcMap. I need to set the properties outlined in red below: I've looked ...
7
votes
3answers
432 views

R - How to sampleRandom() from large raster without NA values

I have a number of vary large rasters which need to be randomly sampled with the return value being a matrix of x, y, and value. The raster package sampleRandom(raster,n, na.rm=TRUE, xy=TRUE) will do ...
7
votes
4answers
277 views

How to compare areas in scanned historical land use maps

I am a relative beginner to using GIS, and am running QGIS 2.0.1 in Linux. I have two historical maps which I want to analyze, that show land use patterns in the same area at two different moments in ...
7
votes
1answer
985 views

How to keep spatial reference using arcpy.RasterToNumPyArray?

I am using ArcGIS 10.1, and want to create a new raster based on two preexisting rasters. The RasterToNumPyArray has a good example which I want to adapt. import arcpy import numpy myArray = ...
7
votes
1answer
423 views

Reduce extent of raster processing

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 ...
7
votes
2answers
1k views

How to animate raster time series using open-source GIS?

I have a bunch of rasters taken about 10 minutes apart, and I have a nice QGIS project that produces pretty enough maps of them. I'm wondering if there's a way to animate this raster series, with a ...
7
votes
1answer
999 views

GRASS - Will r.to.vect work on this scanned map?

Total GRASS noob here. I have several very large hand contoured maps to digitize, and this thread intrigues me. In the past I have spent hours upon hours digitizing these maps and revisions in ArcMap. ...
7
votes
3answers
2k views

Make the nodata area of a resampled orthophoto overview white?

I have a set of orthophoto images which are each fully filled with data, but when placed together the coverage does not form a rectangle so there are nodata areas. In MapGuide, I need to be able to ...
7
votes
2answers
706 views

Are there GIS tools for simulating landscape fragmentation?

I am currently looking for any GIS packages (or add-ons) that allow the simulation of landscape fragmentation on raster data. Maybe also other software than GIS tools? Does anyone of you have had ...
7
votes
1answer
476 views

What are the rules that the Gdal rasterize function follows to allocate a value to a cell?

How does the rasterize tool decide which value to represent when a cell covers an area which inclueds different values? I need it in this case for polygons but would like to know for lines and points ...
7
votes
2answers
364 views

Using ArcGIS to filter cells where 7 or 8 of the neighbors are different

I have land cover data that I would like to clean using some generalization tools. Majority filter does almost exactly what I want, but is missing one key option. Majority filter allows you to change ...
7
votes
1answer
130 views

How to improve the display of color images?

I've found some really nice color ramps for portraying rasters, but in ArcGIS and QGIS, they don't seem to be easily usable for a finished product because their complexity causes obvious steps rather ...
7
votes
1answer
184 views

Finding largest number of observations within a given radius

I have the following problem: Given the location of insured properties (say houses with fire insurance), i have to find the largest sum of insured values which fit into a 300m radius. Now, my first ...
7
votes
2answers
452 views

How to perform enhancement operations on an satellite imagery in QGIS?

I am a new user of QGIS please suggest how to perform image enhancement operations on an satellite imagery like ratioing, contrast stretching, edge engancement, filtering etc. in QGIS?
7
votes
1answer
1k views

Smoothing raster features into polygon

I have raster data representing urbanized areas, which I'd like to trace and convert to a polygon. Using ArcMap's Raster to Polygon tool, I'm able to get something close to that. Unsimplified: ...
7
votes
3answers
2k views

Poor image quality of raster pyramid files in ArcGIS (no anti-aliasing)

There are several GeoTIFF files (size ~7000x7000 px) which I try to open in ArcGIS Desktop 10.0. I have already created raster pyramids for them (.ovr files) using geoprocessing tool but their quality ...
7
votes
1answer
666 views

How can I change the class of one pixel in a classified image?

I have a classified image (I did it in ERDAS) with six categories. There are some misclassified pixels (especially high-density urban category). Is there any way that I can choose one pixel and then ...
7
votes
1answer
525 views

How to view a 155 MB raster stored in PostGIS?

I am using the following command to load a raster into a postgres database: raster2pgsql -I -C -e -Y -F -s 3086 -I -C -M myraster.tif myraster -F -t 30x30 | psql -U postgres -d database -h localhost ...
7
votes
2answers
292 views

How to remove long linear strips from polygons?

I have a polygon layer representing impervious land cover. This was taken from a land cover raster dataset. The impervious data represents all impervious surface that is not buildings or roads. I ...
7
votes
2answers
739 views

What Open Source (command line/API) method is there to orthorectify and georeference an aerial image given telemetry data?

How can I take an image and orthorectify it automatically with open source software? The information associated with each image is: camera specs latitude, longitude, elevation of the camera ...
7
votes
1answer
467 views

How to grid unevenly sampled categorical data?

I am looking for a method for gridding categorical data. I have extracted from nautical charts and field sheets a collection of points specifying the nature of the surface of the bottom of the ocean. ...
7
votes
2answers
349 views

How to extract vectors from map using QGIS?

I am trying to extract building footprints from a raster map (as shown in the example below). Please note that the maps are out of copyright, have been scanned and georectified by a library and have ...
7
votes
1answer
210 views

Phenological event extraction in IDL

I’m doing phenological study using a threshold method in IDL. I have a twelve-band image in 2005 (format is in .tiff not ENVI format). Twelve-band means that monthly images (Jan to Dec) have been ...
7
votes
1answer
253 views

Looking for US National Grid to Lon/Lat Converter in Python, C, or C++

I see here that there is Fortran source code for going from USNG to lon/lat: http://www.ngs.noaa.gov/PC_PROD/USNG/ Is there some python or C/C++ code that does the same? My understanding that this ...