Tagged Questions
0
votes
0answers
27 views
GDAL: add metadata to Bands when creating new GeoTIFF
This is a metadata question :-).
I am processing airborne laser scanning full-waveform data to extract information and I store this information by creating a multiband GeoTIFF using GDAL. I will have ...
0
votes
0answers
17 views
GDAL Utilties - Multiple Bands with Different Output Types
I have a raster dataset with 5 bands. 4 of the bands are 8bit unsigned and the 5th band is 32bit floating point. I need to clip the dataset into tiles using GDAL (I'm using gdalwarp with a cutline ...
0
votes
0answers
25 views
GDAL Error 1: Can't find RasterDMS field in Eimg_Layer with block list
I've got a dataset consisting of an .aux file and an .rrd file with the same names.
When I open this data using the GDAL C++ library (applying GDALOpen to the .aux file), the dataset seems ...
3
votes
1answer
49 views
Differences in raster extents in gdalinfo, SAGA & Quantum after resampling
I recently resampled a raster file using SAGA's Resampling module. The aim was to widen the extent of the new raster to two decimal places, where the original raster has three decimal places. The ...
2
votes
0answers
56 views
How to create raster attribute table to a raster data using gdal python?
I classified a remote sensing data and saved it as a raster using Gdal python. I want to create a raster attribute table for this classified result.. my classified raster has five classes with ...
2
votes
1answer
173 views
GDAL_translate: converting ESRI GRID to Geotiff in batch
The Challenge:
To batch convert 1000 rasters in ESRI Grid binary to Geotiff using either using a batch file or Python 2.7 without ArcGIS/Arcpy module.
The Tools:
Win7Pro, GDAL 1.9.2 (via OSGeo4W), ...
4
votes
2answers
113 views
GDAL does not ignore NoData value
I am trying to calcualate the statistics of a TIFF. The script should ignore the NoData value, but doesn't. What causes this?
import gdal
from gdalconst import *
# register all of the drivers
...
2
votes
1answer
68 views
How to sum or even perform more complex mathematical operations (multiply, add a constant, …) two GDAL grids?
I have two grids with same cell size, same starting position (top left) and same grid size. I want to sum the grids and create a sum grid as an result:
e.g. grid A + grid B = grid C
How can I ...
1
vote
0answers
78 views
Are there limitations with gdal virtual raster option?
I am new at Postgis and I'm groping...
I pretend to rasterize some weighty vector layers in Postgis, do some map algebra and reclassification with them and visualize intermediate as well as final ...
1
vote
0answers
52 views
How I can incorporate results of histogram stretching into georeferenced image?
I have one channel 8 bit raster and when I open it in QGIS with histogram stretching "on the fly" it looks fine. How I can recalculate original raster accordingly changed histogram?
4
votes
1answer
116 views
Add band to 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 ...
1
vote
0answers
103 views
How to use GDAL to burn a selected value from one raster into another?
I think this should be a relatively simple process, but I'm not quite sure how to approach it.
I have a shapefile containing 1000's of polygons. I also have 19 rasters. All of the polygons fall ...
3
votes
0answers
74 views
Build Raster Attribute Table with GDAL Utilities
Is there a way to build a raster attribute table using one of the GDAL utilities? I know you can view it using gdalinfo and I have successfully created one using Python, but it would be so much ...
2
votes
1answer
113 views
USGS GeoTiff extent via GDAL
I have 2006 land cover GeoTiff from the USGS site (for a county in VA, USA). The projection is Albers Conical Equal Area Units. The download came with an HTML metadata file that tells me the geo ...
5
votes
1answer
91 views
GDAL/OGR Determine if dataset is raster or vector
I am writing a script using the GDAL/OGR Python bindings and it is possible that the user may provide a raster dataset or a vector dataset as input. If the user provides a vector dataset, the script ...
1
vote
3answers
328 views
How to subset raster image using gdal?
I have read pixel values of an raster image using GDAL libraries in visual studio 2010(vc++).
Now I have to crop the image (subset) according to the grid given in shape file.
I have got a code for ...
3
votes
1answer
143 views
Python equivalent of gdalbuildvrt
Is there a way to perform the same task as the gdalbuildvrt utility using GDAL Python bindings? So far I have not found any way to do this other than creating a vrt of a single dataset and manually ...
2
votes
1answer
110 views
Tiling Rasters based on an existing Polygon Shapefile (Vector Grid)
I have a tile index representing the tile scheme used to tile Lidar data. I want to tile imagery rasters using the same tiling scheme. I have not found anyway using open source tools to tile a ...
7
votes
3answers
488 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 ...
8
votes
2answers
249 views
What to do with -3.4e+38 nodata values?
I am trying to process some bioclimatic raster files, such as can be downloaded from http://www.worldclim.org/current (bioclim set). They seem to have nodata values set to -3.4e+38 according to QGIS ...
2
votes
2answers
104 views
Coordinate system of a raster file to be introduced for transformation
I am working on raster data using GDAL. When I extract coordinate system information of the files I got this:
PROJCS["Geostationary_Satellite",
GEOGCS["GCS_Unknown datum based upon the custom ...
3
votes
2answers
174 views
set geotiff 0 values to nodata
Is there a way to set all the 0 value pixels on a raster to nodata using gdal or qgis?I world like to use fillnodata to fill some holes, but holes are set to 0,so I need to delete them first
3
votes
1answer
163 views
GeoTiff convert to PNG with transparency
I need to convert a GeoTIFF image to PNG format with "NoData" pixels in the original image being transparent in the output.
Is there any tool particularly in ArcGIS ArcToolbox or GDAL for this ...
5
votes
2answers
128 views
How to modify raster pixel inside a polygon?
I would like to set to novalue all the pixels of my raster inside a polygon.
I'm trying the gdalwarp command line with -cutline option.
But this command extract the values of my raster inside the ...
3
votes
1answer
95 views
gdal_warp of multiple rasters keeping maxium intensity value
I have multiple rasters which overlap eachother geospatially but do not completely occupy the same space. I can combine them with gdalwarp like:
gdalwarp -s_srs EPSG:4326 *.tif larger_output.tif
...
7
votes
2answers
247 views
Python, GDAL and building raster attribute tables
I have an integer raster for which I would like to build a raster attribute table using Python and GDAL. I can create a GDAL raster attribute table in Python as follows:
>>> rat = ...
1
vote
2answers
103 views
How to produce a mean raster file based on other raster files? [duplicate]
Possible Duplicate:
Tools to flatten the jp2 to a single band (average the bands)?
I have a number of raster files from a same area, that coordinates of corresponding pixels perfectly match ...
3
votes
1answer
153 views
Problem editing raster and saving with projection and transformation intact
I am trying to make a custom tool to Arcmap using Python. It is supposed to read in a raster DEM, a point shape file and a distance, and output another raster.
The output raster should be ...
10
votes
3answers
856 views
Writing numpy array to raster file
I'm new to GIS, and I'm lost with something I feel ought to be relatively simple. I have some code that converts infrared images of Mars into thermal inertia maps, which are then stored as 2D numpy ...
5
votes
1answer
228 views
What is the best practice for reading data from a raster band with Java and GDAL?
After using GDAL with Python for a year or so now, I'm getting back into Java and trying to figure out how to use GDAL with it. I am wondering if anyone has had experience with reading data from a ...
1
vote
0answers
55 views
Create 6 band IMG file with GDAL out of two JPG files, one with WorldFile coordinates
I have two JPG files
1 ortomap: http://imageshack.us/photo/my-images/703/ortofoto1.jpg/
with WorldFile:
0.683772574816354
0.000000000000000
0.000000000000000
-0.683739485024190
...
1
vote
1answer
143 views
Georeference Raster File with WorldFile into an aerial photo using GDAL [duplicate]
Possible Duplicate:
How can I transform a georeferenced JPG to a georeferenced TIF?
UPDATE:Corrected link
I must note that I am new to GIS so pleas be understanding.
PROBLEM:
I have a ...
-1
votes
1answer
130 views
PostGIS raster support
I have the following requirements to manage raster data
1) Convert raster-maps from BSB format to PNG or GeoTIFF
2) Cut the borders of the map
3) Merge individual maps to form a contiguous coverage ...
1
vote
1answer
131 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 ...
0
votes
0answers
18 views
Merging rasters in QGIS- Load DLL error [duplicate]
Possible Duplicate:
merge raster images: error message procedure not found
When I try to merge rasters (geotiffs) in QGIS 1.8 using the merge tool (Raster-> Miscellaneous -> Merge), I get ...
4
votes
3answers
388 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 ...
6
votes
2answers
756 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 ...
5
votes
1answer
491 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 ...
0
votes
0answers
330 views
How to add ECW support to GDAL bundled with PostGIS Windows
I'm currently trying the new raster functionalities of PostGIS 2.0 and I successfully imported some GeoTIFF file into PostGIS (although it only find one band so it's all black and white for some ...
5
votes
3answers
527 views
How to smooth / “reinterpolate” a raster with GDAL?
Short:
I want to change the resolution of a raster and smooth the gray ramp like shown in the images bellow. The preference is to use GDAL, PIL or Numpy.
Description:
I'm kriging points into rasters ...
3
votes
1answer
369 views
Merging raster data with different resolutions
I need to merge different raster datasets which have one layer and contain discrete values to a layer stack.
The resolutions of the data can have any value so not only multiples of the resolutions ...
2
votes
1answer
378 views
Converting Raster Data to Polygon data
I am trying to convert a raster data to polygon data. Previously I was using the shapefile.py to create point data on individual lat/lon on the raster. But that will create a Huge data and querying it ...
5
votes
2answers
182 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
...
5
votes
2answers
508 views
Creating a multispectral image from scratch
I want to make a multispectral image from cero to do some tests on it. Something really simple like 5 completely uniform bands with salt and pepper noise on them or a square of different values at the ...
3
votes
1answer
114 views
how to square the pixels of a GeoTiff
I have a GeoTiff that has been supplied to me with non square pixels (I suspect due to reprojection to lat lon at some point). However the next step in my processing chain requires a Arc ASCII grid as ...
1
vote
1answer
80 views
Can I avoid runtime raster interpolation by creating an image pyramid to match the zoom scales?
For image quality and performance reasons, it would be best to perform interpolation of my large TIFF image of the world (10GB) beforehand to all the zoom scales I need to display at so that MapGuide ...
1
vote
1answer
342 views
Filtering a raster by pixel value with GDAL
I have downloaded Globcover data in GeoTIFF format. I want to create a new grid which only has values where the Globcover data (the only band in the TIF file) has one certain value (==190).
Can I do ...
5
votes
1answer
224 views
Mosaicing indexed colour rasters with independent colour tables
I have a large number of single band rasters that are colour indexed TIF files. I want to mosaic them using GDAL (or similar non-proprietary software with a Python API I can call as part of a bigger ...
3
votes
1answer
192 views
gdalinfo gives no georeferencing information for a PostGIS raster
I have a PostGIS raster dataset which I am trying to access via GDAL. I've had various problems with making this work, so thought I'd try running the gdalinfo command to check that GDAL can actually ...
2
votes
3answers
542 views
Batch script converting and resampling orthophotos
I would like to convert more than 300 orthophotos produced at scale 1:8.000 with a pixel size of 0.8m X 0.8m from Ecw format to Tiff format and after resampling pixel values.
My aim is to batch ...




