Questions tagged [raster-conversion]

Raster conversion between raster formats. Do NOT use for raster to vector conversion (and vice versa) - for that use vectorizing (and rasterizing)

Filter by
Sorted by
Tagged with
8
votes
2answers
11k views

How to convert .geotiff --> .tiff?

How to convert .geotiff files to .tiff files (ordinary plain images)? Basically, I have cropped the image to a rectangle of interest and knowing its left-lower location and having chosen the pixel ...
8
votes
2answers
419 views

Excluding extent when polygonizing raster file using Python?

I want to polygonize a raster file. The raster file looks like this. Here is the raster file Here is my codes in Python to polygonize the raster file. The codes source from Polygonize a Raster ...
8
votes
1answer
6k views

QGis Save Raster as Rendered Image

In QGIS 1.9.0 Master, when you right click on a raster in the Layers Panel and select "Save As", you can select the output mode to be "Raw Data" or "Renedered Image". When selecting the Rendered ...
7
votes
2answers
469 views

What resampling method is used in the raster 'Save as...' dialog?

I received a raster that was resampled using the Save as dialog in QGIS. Now I need to describe the resampling process in a report. But I could not figure out the method used in the resampling. Is it ...
7
votes
1answer
534 views

Creating virtual raster produces gaps along edges in QGIS?

I've got almost 1500 .adf raster files of LiDAR data that I need to merge/mosaic into one raster. The most efficient way that I found was to create a virtual raster of all of the files: gdalbuildvrt -...
6
votes
1answer
7k views

How to convert raster to polyline in QGIS?

How can I convert raster (stream segments result of a watershed analysis) to vector polylines, preferably shapefile. In ArcGIS this is easily acomplished with the Raster to Polyline tool. I only see ...
6
votes
1answer
3k views

Importing XYZ ASCII Grid Data Into QGIS: Why does GDAL resize the raster?

Question: Why does GDAL import of XYZ gridded data in QGIS modify the dimensions of a raster and can this be avoided? I'm importing XYZ ASCII gridded data that conforms to GDAL XYZ Gridded Data ...
6
votes
1answer
2k views

Downsampling, projecting and aligning a raster to fit another one in R: aggregate(), resample() and/or projectRaster(), and in which order?

TL;DR: I have to downsample, project and align a raster to perfectly fit another one. Is it better to a) use aggregate followed by projectRaster or b) first use projectRaster for reprojection only ...
5
votes
2answers
6k views

How to produce "SpatialPixelsDataFrame" from stacked RasterLayer?

How to produce "SpatialPixelsDataFrame" from staccked RasterLayer ? I have a stacked rasterlayer and I want to convert them to SpatialPixelsDataFrame. RasterLayer information is > RAD.all[[1]] ...
5
votes
1answer
1k views

Polygonizing a raster yields lots of little squares?

I have a pdf with the area of a county that I want to separate into multiple shapefiles (polygons) based on color. As shown in the first picture there are 4 colors so I would need to separate based ...
5
votes
1answer
3k views

Create conditional to check if raster has value

I have a problem with this code: ac = ExtractByMask(raster, "area.shp") arcpy.RasterToPoint_conversion(ac, "point.shp", "VALUE") The problem is that sometimes the raster has no value. (It's a flow ...
5
votes
3answers
3k views

How to display Flow Direction arrows + Burn Stream Netwok in QGIS?

I have used the automated r.watershed tool in QGIS 2.18 (GRASS plugin) to conduct a watershed analysis (basin boundaries, flow direction, flow accumulation etc). I'm stuck on the following operations:...
5
votes
1answer
4k views

Exporting 16 bit single-band to 8 bit in SAGA/QGIS

Everytime with every function (e.g convert data storage type or gdal-translat -ot Byte) the output is a completely white map with a black border. only the "save as" export works, but the TIFF also ...
5
votes
3answers
873 views

Resampling 30m DEM to 100m slope raster properly?

I need to resample a 30m DEM to a 100m slope raster. Do I just resample the 30m DEM directly to the 100m slope raster? or, do I convert the 30m DEM to a 100m DEM and then create a 100m slope raster ...
5
votes
1answer
1k views

How to fix the reprojection from EASE-2 grid product SMAP to geographic coordinates?

I have been working with SMAP satellite data, especially for moisture and soil properties. I follow the idea of use GDAL solve everything, and make something similar to this published in Link to ...
5
votes
0answers
732 views

Error running r.thin in QGIS

I get the following error when running r.thin: Traceback (most recent call last): File "C:/PROGRA~4/QGIS3/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", line 395, in ...
4
votes
2answers
5k views

Converting *.tif file into headerless (flat) binary file?

I am using NDVI files (value range -1 to +1) created from Landsat CDR images to produce a timeseries in TIMESAT software. My .tif file has following characteristics. File type TIFF,Data Type ...
4
votes
2answers
12k views

Flattening multi-band raster to single-band raster in ArcMap?

I need to convert a multi-band PNG image into a single-band raster, for analysis and visualisation. How can I do this in ArcGIS Desktop 10.2?
4
votes
1answer
112 views

How to polygonize raster with range of values?

I have a raster with range 0 - 1. I want to polygonize them in QGIS according to their value to be later classified from "Very Low" to "Very High". raster_value ...
4
votes
1answer
1k views

Converting a raster to shapefile for only one value?

I have a global land cover raster that I would like to convert into a shapefile. Rather than converting the entire raster I would like to "extract" just the forest value (40 in this case) and then ...
4
votes
2answers
2k views

Converting raster pixels to polygons with GDAL python

I want to convert raster pixels to vector polygons as below image that is output of "Processing Toolbox--> Vector Creation--> Raster pixels to polygons" in QGIS 3.8: I tried to do this vectorize with ...
4
votes
2answers
5k views

How do I convert an unsigned raster to a signed raster?

I'm using ArcGIS 10.2. I need to convert two rasters from 8bit unsigned to an 8bit signed raster so I can do a subtraction and get both positive and negative values. I've tried to use the copy ...
4
votes
1answer
904 views

Convert Whitebox .dep to ArcMap DEM .tiff? [closed]

I am having difficulty converting my whitebox raster float file to an ArcGIS raster file in ArcMap 10.2.1 I followed the protocol outlined at: http://www.uoguelph.ca/~hydrogeo/Whitebox/Help/...
4
votes
2answers
3k views

QGIS ASCII Grid output problem

I have this .asc file of maximum temperature of a local place. This file is a result of vector to raster (GeoTIFF) conversion then GeoTIFF to ASCII grid conversion, both using QGIS. Here is a snippet ...
4
votes
1answer
2k views

QGIS 2.2 Raster Merge losing color data

I'm trying to merge a couple of GeoTiff maps using Raster > Miscellaneous > Merge but the merge is only coming out in grayscale. The geotifs are using palettes color. How do I get the merge to keep ...
4
votes
1answer
1k views

Converting MrSID files to other formats in ArcMap?

I have some large MRSID files of counties in TN. They are 3 banded, about 4 - 7 GB, and 3rd generation. I've been in the process of converting them to 3 banded TIFF files using Export Raster Data. I ...
3
votes
2answers
884 views

Conversion of OSM building to elevation raster

I have a roof as an OSM building, which I need to convert to an elevation raster to be used for QGIS calculation, with a raster resolution of 9pts/sqm. Typical OSM building would be: http://city....
3
votes
1answer
1k views

Appropriate pixel size when converting vector to raster

I am converting vector polygons into raster datasets. Is there a standard calculation for converting the scale of the vector into an appropriate pixel size (e.g. 25 metres)? My vector has been ...
3
votes
4answers
5k views

Combine overlapping rasters and include cells with no data

I'd like to combine about a dozen rasters into one raster that contains the "summed" cell values where overlaps occur. In doing so, I need to be able to retain cells that either have no data, or that ...
3
votes
2answers
148 views

how to change the pixel value to zero when it corresponds to a slope above 15%

i have a landuse raster data and raster data containing slopes in percentage. i want to assign pixel value as zero which corresponds to slope more than 15%. i tried using 'extract by mask' but i'm ...
3
votes
2answers
352 views

Adjusting raster size for usage in QGIS raster calculator?

I want to make a visibility analysis of planned wind turbines in my region. I have a DEM raster and a polygon describing the possible area where the wind turbines might be set up. People are ...
3
votes
1answer
291 views

Is it possible to open a raster or raster dataset contained in a file geodatabase with QGIS 3.X?

I know that it is possible to extract vector data from .gdb's. I have found some similar questions here and here or even here on StackExchange, but they were either not exactly what I was looking for ...
3
votes
2answers
102 views

Create a raster map from more than one shape

I've some shapefile loaded in Arcmap (steets, buildings...) with an appropriate symbology ad I need to convert them to unique raster, to obtain a map (like topographic map) with a specified resolution ...
3
votes
1answer
888 views

Python: Convert DEM to 3D array organized as [lat, long, elevation]

I'm trying to convert a .tiff DEM to a numpy array using python. Ideally the array will store latitude, longitude (or some coordinate alternative), elevation). I'm using Gdal but currently it only ...
3
votes
1answer
1k views

Preserving nodata values when using gdal_translate -scale

I have four 12 - bit Bands in single images which I want to merge to one 8bit Geotiff using GDAL (GDAL 2.1.3) First thing I do is building a VRT: gdalbuildvrt -srcnodata 0 -separate bands_merge.vrt ...
3
votes
2answers
920 views

Polygon to raster (cell coverage)

I'm using Polygon to Raster tool to create a raster (10x10). The problem is that some cells of the output raster is not assigned any value. My understanding is that the tool always uses the cell ...
3
votes
1answer
165 views

Python output for batch "FeatureToRaster" in ArcPy

I am trying to batch process the conversion of shapefiles to rasters. I am stuck on how to specify the name for each output raster file. Part of the trick is that my input shapefiles are the names of ...
3
votes
1answer
36 views

Generating paths from proximity map in QGIS

I'm trying to generate paths from proximity map in QGIS, is there a way to convert the light areas into vector lines?
3
votes
1answer
107 views

Identifying and quantifying gullies and hags from aerial imagery in QGIS

We are involved in an extensive peatland restoration project in the Shetland Islands. We provide high resolution and accurate digital surface models and orthomosaics for initial analysis and on-going ...
3
votes
2answers
2k views

QGIS 3.4 - Rasterize creates layers with 1.79769e+ 308 min/max values

I have tried searching on here for my issues, read many threads, but to no avail. Essentially, I am trying to convert a line feature to a raster so that I can run proximity on it - because I want to ...
3
votes
1answer
927 views

How to preserve original resolution of scanned 1-bit PDF raster with gdal_translate?

I am using gdal_translate to convert non-spatial PDFs to non-spatial TIFFs (intended for subsequent manual georeferencing). This is my gdal_translate command: gdal_translate -of GTiff -sds -co NBITS=...
3
votes
1answer
45 views

Calculate focal statistics from a 10m raster to populate a 1km raster, using the 1km raster to define the window?

I have a binary raster (1-0), cell size = 10m. I would like to generate a 1km raster, where cell values equal the mean value of all cells within a 3 km radius. I know I can use focal statistics to ...
3
votes
2answers
665 views

Polygonize a multi-band raster

I have a polygon and I want to estimate areas of different types of land cover tha falls within the polygon. The problem is that the only freely available land cover data I found is https://catalogue....
3
votes
1answer
1k views

Create base maps from vector data

I may be trying to attack this problem incorrectly, so I'm sure I'll be corrected. I currently have quite a few shapefiles containing all of the major highways, streets, railroads, counties, etc. of ...
3
votes
1answer
3k views

How to convert WMS layers to raster layers QGIS 1.8.0

I need to export a series of maps for a report. The layers imported into QGIS are all WMS files provided by the GeoBC website. As I have now discovered, I cannot export these maps using the print ...
3
votes
1answer
2k views

Converting GMT grid to ArcGIS readable format?

I am trying to convert a GMT grid data into a format that is readable in ArcGIS. I have already attempted to load the data into GRASS and use GDAL translate to convert into a tif with unwanted results....
3
votes
2answers
526 views

GeoServer not rendering GeoTIFFs after JPEG compression [duplicate]

I previously asked about some problems I was having converting JP2/MrSid data to GeoTIFF for use in GeoServer. It was suggested that I needed to add overview data to the 4 GB-sized GeoTIFF -- and that ...
3
votes
0answers
115 views

Converting Surface Model to Elevation Model?

Is there a way to convert a digital surface model (DSM) to a digital elevation model (DEM) in QGIS? Surface models contain lots of noise (e.g. trees, buildings) when I only want to show the ground. ...
3
votes
0answers
1k views

Missing output from ArcGIS Split Raster tool? [closed]

I have a number of raster datasets from different sources sitting in one GDB. In the same GDB I have a polygon feature layer I am using to split each raster layer using the Split Raster tool, the ...
3
votes
0answers
1k views

QGIS RGB image to HSL (Hue Saturation Luminance)

is it possible using QGIS (2.10) on windows to convert an RGB image file to HSL (Hue Saturation Luminance) format. I've seen various formulas for this written in Java however they only seem to be for ...

1
2 3 4 5 6