Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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)

-1
votes
0answers
11 views

How to make an Excel sheet from TIF raster layers using QGIS? [on hold]

In this file you will find how a midterm grades were announced to students so every student could get his grade using his section no and bench no.. The midterm contained Q1 which was 50 MCQ and every ...
1
vote
0answers
27 views

How to convert 32-bit raster to double precision?

I have a raster that is currently 32-bit float, but need to convert it to a data type of Double Precision in order for it hold larger values within each cell (I'm doing some calculations). How can ...
1
vote
1answer
20 views

Add layer to RasterBrick R

I have a RasterBrick and I am trying to add new layers to it, (with addLayer) but every time I try I receive the following message: Error in sapply(x, fromDisk) & sapply(x, inMemory) : ...
0
votes
0answers
6 views

Extracting Sub-National admin boundaries or regions from GRUMPv1 or GPW v4

GRUMP and Gridded Population of the World (GPW), v4 provides population and demographic values for sub-national levels. However, I am unable to extract the polygons or boundaries from their datasets. ...
0
votes
0answers
8 views

Reclassified Raster To Polygon with mulitple features

How can I take a raster that has been reclassified into 8 classes and convert it to a polygon with 8 features?
0
votes
0answers
25 views

Error in write Array in Raster file: “”ValueError: expected array of dim 2“”

I'm using Python in my research and how I don't have large experience in this language, I need Help to understand this error that occur when I`ll write a array as raster file. data_res_b1_corrected = ...
2
votes
0answers
49 views

QGIS 3.44 heatmap to contour file

I am trying to convert a point file, currently displayed into a contour file. The methods that I have tried, all expect a raster file as an input, but my source file is a vector file points, i.e. I ...
3
votes
2answers
69 views

GeoServer not rendering GeoTIFFs after JPEG compression

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 ...
1
vote
0answers
70 views

Converting JPEG2000/MrSid files to GeoTIFF using GDAL [closed]

This question is related to one previously asked: Batch convert jpeg2000 to GeoTIFF? We certainly need to batch convert some JPEG2000 files to GeoTIFF; the problem is, it doesn't seem to work. We don'...
0
votes
1answer
96 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 ...
0
votes
0answers
35 views

Rasterizing a point layer without using an attribute field

I am following the "QGIS by Example" text book and a task requires that a point layer is rasterized using the following GDAL code gdal_rasterize -l layer name -burn 1 -a_nodata 0 -te coordinates - ...
2
votes
0answers
20 views

Multi/hyper-spectral file format that stores band information and meta-data

I usually use ERDAS LAN file format drivers to create a multispectral file that contains multiple rasters of different spectral bands. However, I can't find a way to store the information regarding ...
1
vote
0answers
47 views

Converting Land Cover Vector to Raster?

I have a question regarding converting a vector forest cover layer to a raster layer. The basis of what I am trying to do is determine what percent of forest cover is within a set of 1x1 km grid ...
0
votes
1answer
61 views

Using Zonal Statistics to determine percent forest cover in grid cells?

The basis of what I am trying to do is determine what percent of forest cover is within a set of 1x1 km grid cells in arcmap. I originally attempted to do this using fishnet, tabulate area tool, and a ...
0
votes
1answer
34 views

Clip Raster by Mask Layer to jpg not tiff

Is it possible to set your output file for the Clip Raster by Mask Layer tool as a jpg and not a tiff? Are there extra parameters or commands I can use to do this? I can export as tiff and convert ...
0
votes
2answers
69 views

Gdal.BuildVRT not creating any output

I am trying to create a mosaic of all the images in file_list, Using: > vrt_options = gdal.BuildVRTOptions(resampleAlg='cubic', addAlpha=True) > gdal.BuildVRT('C:\\my.vrt', file_list, ...
1
vote
1answer
32 views

Performing raster to polygon conversion in ArcMap?

I have done raster to polygon conversion in ArcMap 10.3. The polygon shape is not the same as the raster pixels. How can I polygonize the raster so that the polygons follow the raster's cell ...
0
votes
1answer
49 views

Raster to polygon conversion losing data?

I'm trying to do a simple conversion with Raster to Polygon. However, as you can see in the picture below not all data (the area in orange) makes the transition. Raster to the left and polygon to the ...
0
votes
2answers
205 views

Convert XYZ coordinates in .txt files to .tif files?

I have many .txt files containing UTM XYZ coordinates of my study area. The content of each .txt file looks like this: 493932.0669,5426301.1910,0.468 497932.0669,5426301.1910,0.421 501932.0669,...
1
vote
2answers
115 views

Define projection on raster problem

I have a raster map that needs to be defined in 2 different coordinate systems. I added control points to my unprojected map and rectified it. It's OK for the first coordinate system. (European datum ...
0
votes
1answer
48 views

Converting raster (TIFF) to .grc format in ArcGIS Desktop?

I want to convert a raster (TIFF) to .GRC format in ArcGIS but I cannot find the conversion tool to do it. Does someone have an idea ?
1
vote
0answers
58 views

Invalid data source in QGIS 2.18 [closed]

I am trying to run the raster process in QGIS 2.18. and every time I am getting an error as "Data source is invalid". What should I do? Python error that I am getting: 2018-09-24T13:56:09 1 ...
1
vote
1answer
119 views

Calculating Median/Quantile of Rasterstack and converting Results to Data Frame in R

I have a Raster Stack with 32 Raster Layers. What I want to do is to calculate the median for each Raster and also the 0.25 and 0.75 quantiles. Then I want to convert the results into a dataframe. ...
0
votes
0answers
35 views

Creation of a raster dataset from polylines

I face an issue with the Raster tool. I have Polylines that I want to convert to Raster. The spatial reference coordinate system is World Mercator (WGS 84). I used the "Convert Polyline to Raster" ...
2
votes
0answers
51 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. ...
1
vote
0answers
40 views

Rasterize causes black background, need white to match BioClim data

I am using the rasterize tool to convert a polygon layer into a .asc or .bil raster layer. As it is a UK study, there is a lot of sea that when rasterized, turns black. I need it to be white to match ...
0
votes
1answer
26 views

Divide all values in ASCII table (or raster file)

I have a pile of ASCII files representing 5min radar precipitation sums. The information is given in 1/10 mm which I need to convert into mm for further processing. Is there a way of doing this, ...
1
vote
0answers
29 views

Using Copy Raster in ArcPy gives different result to tool dialog?

I am trying to convert 16 unsigned bit tifs to 8 unsigned bit BMPs. When I used the Export Raster in ArcGIS, it works well. But when I used arcpy arcpy.CopyRaster_management(each, ...
1
vote
0answers
47 views

How to convert an image file of lines into a lines shapefile in QGIS? [duplicate]

I need to convert the following image into a line .shp file. I can make the image into whatever type of image file it needs to be before converting. For context, I had started mapping an area by ...
2
votes
2answers
113 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....
0
votes
0answers
21 views

Point/Feature to Raster-unwanted Grid of missing Data raster Cells-ArcGIS10.5

I tried to convert some point data (points on a regular grid of 100m by 100m) with the Feature to Raster Tool and the Point to Raster Tool (Rastersize of 100m) but in the resulting Rasterfile there is ...
0
votes
1answer
330 views

Normalizing a digital surface model? [closed]

I am trying to generate a normalized DSM by subtracting the original DSM (oDSM) from the DTM. To generate the DTM I had to first use a median filter on the oDSM (remove noise) and then use a ...
1
vote
0answers
67 views

QGIS .adf file saved as GTiff changes elevations

I have got two .adf DEMs which I need in GTiff format so they can be merged. When I 'Save As' the layer as a GTiff, the resulting output has elevations which are inconsistent with the original .adf ...
1
vote
0answers
39 views

Does raster snapping involve a transformation?

Arc Desktop 10.5.1 Background I am converting an Arc Grid raster to a tif using the Raster To Other Format (multiple) tool. In the tool's Environments... settings, I am snapping the output tif to ...
1
vote
0answers
290 views

Speeding up Raster to Polygon Conversion in ArcMap/arcpy

I am trying to convert a series of big binary rasters describing data in grey (value 0) and nodata in green (value 1) into polygons in order to derive the extent the data pixels are covering (see also ...
1
vote
1answer
187 views

How to convert ASTER HDF file to Geotiff

I just downloaded the ASTER LT1 HDF file. How do I convert it to Geotiff using ENVI. Or do you know any conversion tools that are accessible to use for free. Previously, when I downloaded ASTER data ...
5
votes
2answers
104 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 ...
0
votes
0answers
63 views

Any way to use the range slider in ArcGIS Pro with a floating point raster?

So I've created these classified floating point rasters showing specific heights. However, I need to enable range properties for them so that they can function with the range slider in ArcGIS Pro. I ...
0
votes
0answers
24 views

Unexpected output from rasterToPolygon in R raster package

I have a raster with values NA and 1. I am trying to convert cells with value 1 to a single polygon (e.g. polygon shows the perimeter of the area where value=1). The raster is projected ("+proj=aea +...
0
votes
0answers
156 views

QGIS - Export legend values from WMS to GeoTiff

I have a WMS layer of Sweden looking like this: With the following legend (mean temperatures in degrees): What I want to do is to export the layer as GeoTiff where the values from the legend (or the ...
0
votes
0answers
44 views

Vectorization of Raster tiles in QGIS and GRASS

I am unable to use r.to.vect with line option for converting parcel boundaries in the raster image into lines. The problem is because r.thin does not actually thin the layer but pixels along the ...
1
vote
1answer
222 views

Rounding raster pixel values to one decimal place in QGIS [duplicate]

I have single band raster whose values somehow were set to something like 1.399999999 instead of 1.4, 1.29999999999 instead of 1.3 (I'm not sure about the number of 9's there.), 1.2000047683 instead ...
0
votes
0answers
35 views

Polyline to raster cell size too small to run?

I'm trying to run a polyline to raster tool and would like the cell size of the outputted raster to match my DEM grid cell size of 1/3(0.0000925925926 degrees) or 1 arc second (0.000277778 degrees). ...
0
votes
0answers
688 views

How to convert a raster to a line vector layer?

I would like to convert all values having the value 1 in a binary raster to a line vector layer. The following image shows the binary raster (value 1=white and 0=black): The optimal output would ...
1
vote
0answers
304 views

Converting from SAFE (Sentinel-1) to BEAM-DIMAP?

I need to convert Sentinel-1 data from the SAFE format (used by the ESA's Sentinel project) to the BEAM-DIMAP format. I know that GDAL can convert GeoTIFF files (which are used by Sentinel-1) into ...
5
votes
0answers
599 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 ...
2
votes
1answer
513 views

How do I improve the resolution of a raster layer

I have a DEM raster layer created from contour lines in Qgis 3.0 using v.to.rast to get my contour raster and then r.surf.contour to get the DEM. The trouble is, somewhere in the process, the cell ...
1
vote
0answers
597 views

Creating a contour raster from contour lines shapefile [duplicate]

I'm trying to create a 3D view in Qgis 3.0 for the first time. It's asking for a raster file from which to calculate elevations. All I have for elevation data is a shapefile of contours (as lines). I'...
1
vote
0answers
63 views

Setting cell size when converting from GeoTIFF to ASCII

I would like to convert a GeoTIFF file to a .asc file using the translate option. When I use the translate tool in QGIS it converts it, but my cell size is something like 0.0002 (the pixel size of the ...
0
votes
0answers
522 views

Conversion of DEM raster to ASCII format in ArcGIS10.4

I have a DEM raster file in .tif format. I need to convert it to ASCII format. I used conversion tool in ArcGIS from raster to ASCII, but the result is in .txt instead of .asc. What should I do?