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
0 votes
1 answer
28 views

How can TAB files be created for TIFF and JPEG raster images using QGIS?

Although feature datasets can be exported from QGIS in TAB format, it doesn't seem to be possible to export a raster image, such as a JPEG or a TIFF format raster image from QGIS. Is there a plugin ...
Dave Matthews's user avatar
1 vote
0 answers
31 views

Take colours from a raster image into shapefile

I have georeferenced an image in my project, it's a thematic map in PNG, then I have transformed it in shapefile (Poligonyze). I'm trying to take back the original thematism in the shp. Manually with ...
Bernardo Chiaravalli's user avatar
0 votes
0 answers
35 views

Quickest way to merge or tile many thousands of rasters with empty space between them

I have many thousands of images (actually millions, but one step at a time) that are jpgs with associated world files. They were taken with a downward facing camera as a vehicle traversed terrain on a ...
Alex's user avatar
  • 1
1 vote
1 answer
30 views

Converting .TIF Image to PNG via GDAL

I have used this code line to convert my .TIF image to PNG : C:\Program Files\QGIS 3.26.0>gdal_translate -ot UInt16 -b 1 -b 2 -b 3 -r cubic -of PNG "C:\Users\Cemre\Downloads\0309_0_aug_1.tif&...
Stud17's user avatar
  • 23
0 votes
0 answers
35 views

How to assign a value to a set of 25 identical pixels in a raster layer?

I am using ArcGIS Pro 3.1 I would like to create a new raster layer from an existing raster composed of 4 possible discrete values (MIN=0, MAX=4, VAL=0,1,2,3,4). This existing raster illustrate ...
Raphael's user avatar
0 votes
0 answers
21 views

Can QGIS save a raster as best-fit off axis rectangle

I often have rasters from real world data collected along straight-ish routes that can largely be in any heading, eg 45 degrees, 160 degrees etc. The standard raster saving operation will pad this out ...
Campbell Smith's user avatar
0 votes
2 answers
33 views

Converting multiband raster to polygon in ArcMap

I'm currently using ArcMap 10.8 I want to convert a Multiband Raster with 3 band with each band represent the RGB value, so I can calculate the area of ​​each value (classification) in a smaller ...
Dwiki Muharrama's user avatar
3 votes
1 answer
372 views

How to write PNG file from a raster using rasterio?

I have an image, which has 3 bands (RGB). I stack the image using numpy and try to write it as PNG. But I'm confused with how to work with the resulting image indexes. import rasterio import numpy as ...
Nikko's user avatar
  • 571
1 vote
1 answer
41 views

QGIS Raster resampling without label changes

I am working on raster data that which is in a 5x5 meter resolution. I need to resample this to a 25x25 meter resolution. I have used resample.stats which works, but changes the label numbers into one ...
Hartje's user avatar
  • 123
0 votes
1 answer
64 views

Raster to Vector GDAL raster conversion error QGIS 3.28

I'm trying to convert a raster layer with values 1 to 0 in vector layer using GDAL raster conversion - Polygonize (Raster to Vector) in QGIS 3.28. After processing i got an error at the Log window: ...
Iven Pepa's user avatar
  • 341
0 votes
0 answers
32 views

Raster calculator in QGIS returns 8.367e-11 instead of zero

I've a raster layer with nine classes, values 1 to 0.05. In the processing toolbox-raster analysis-raster calculator of QGIS, version 3.28.9, I've used the formula: 0.00872-(raster layer*0.00872) Now ...
Tom's user avatar
  • 1
0 votes
0 answers
12 views

Vector convert from raster hangs just before fully rendering in QGIS

I've converted a raster to a vector layer (final size 200 megabytes), but when I load it in QGIS, it always hangs at about 95% and then takes sometimes 15 minutes to fully load. To be fair it does ...
qgisguy's user avatar
0 votes
1 answer
33 views

How do I map points from a CSV file against bands in a raster?

I have a series of biome maps in QGIS 3.32 as multiband (RGB) raster layers. In a separate layer I have a series of points imported from a CSV file. How do I go about mapping the points (or rather a ...
Robert's user avatar
  • 3
1 vote
1 answer
491 views

Converting float32 format raster in integer type raster

To load my landscape map on Graphab, my raster needs to be in the format "integer type". However, it is in float32 format and I can't manage to convert it. I am using QGIS. Can someone help ...
Justine J's user avatar
3 votes
3 answers
255 views

Converting 5m DTM Raster to 0.5 m resolution in QGIS

I have 2 rasters (0.5m and 5m resolution respectively). There are some areas which the 0.5m raster doesn't cover. For these areas, I want to use the 5m raster. How do I merge these rasters into one ...
ChetanT's user avatar
  • 31
0 votes
1 answer
69 views

How to create grid/fishnet based on the cell resolution of a raster

I am interested in using water quality stations that are distributed throughout the Chesapeake Bay to attempt to explain waterbird distribution. For the sake of this question, we are only focused on ...
Devin Mendez's user avatar
1 vote
1 answer
411 views

Converting Esri Grid format (adf files) to GeoTIFF using Python and ArcPy

In ArcGIS Pro, I am attempting to convert and export Esri Grid Format (ADF) files that are rasters to TIFF files. I want to be able to do this in Python using ArcPy. However, when I attempt to use the ...
Connor Garrett's user avatar
0 votes
0 answers
34 views

Have to extract data in CSV from TIFF file a/c to my shapefile, have the data of entire coordinates but I only want the data as per my shapeile

I have the meteorological data of entire globe. I have uploaded the .tiff file into the raster layer in QGIS. I have also uploaded a layer of my desired country in .shp file. Now, I want to have the ...
Ravi's user avatar
  • 1
1 vote
1 answer
74 views

Rasterize (vector to raster) Error 4 - problem converting CVS point grid to raster [duplicate]

What I want to do: I have data with point-coordinates (integer) and composite probability (decimal). I want to convert this to raster data to be able to compare it to other layers. The cvs file is ...
kar-g's user avatar
  • 15
2 votes
1 answer
93 views

Error in RGB to HSV conversion in R: "cannot use this formula, probably because it is not vectorized"

I'm trying to convert a bunch of small rgb rasters (3 channels) into hsv rasters using the raster package in R, similar to the suggestion here: QGIS - RGB multiband to HSB(HSV?) multiband It has ...
Geos's user avatar
  • 21
0 votes
0 answers
65 views

"Heightmap" of the PolygonZ features in QGIS

Let's say I have 3D model of city made from multiPolygonZ features and I need to create black and white image, where each pixel brightness represents height of the building at that coordinate. I need ...
Matyas M. Svejdik's user avatar
0 votes
0 answers
42 views

Exporting as JPEG with the same boundary

I want to export without adding those white zones. Original images, which shapefile created from, width/height value is 7062/9307, I use these numbers as exported image size. In my mind expected ...
Kerim Mirzeyev's user avatar
1 vote
2 answers
115 views

How to use Raster Translate in QGIS to convert to PNG with color?

I am trying to use the QGIS Raster Translate to convert a geotiff of my slope to PNG. I was able to create a PNG image with transparency. However the resulting image was white/black and did not adopt ...
Nikko's user avatar
  • 571
1 vote
0 answers
638 views

Export different resolution of raster from QGIS

I'm currently sitting on a project where I have a DEM of an area that has been scanned. it currently has around 3-ish pixel per meter on export but I need to export it as 1 pixel per meter and also ...
TECHGUNK's user avatar
1 vote
2 answers
411 views

Raster Conversion Translate to 16 bit Tiff with custom min/max values

I'm new to QGIS. I have some bathymetric data of Australia I'm trying to output as a high bit depth Tiff, however it's not coming out the way I want. In QGIS I have set the singleband grey to a custom ...
Tom V's user avatar
  • 11
2 votes
2 answers
1k views

Terrain creation error using a GeoTIFF file with HEC-RAS 6.2 - "object reference not set to instance of object"

I am attempting to import a TIFF file created in QGIS, into HEC-RAS. I have a projection file as the SRS definition for HEC-RAS, which is derived from a shapefile that lines up with the spatial extent ...
Matt Canada's user avatar
2 votes
1 answer
140 views

Problem generating GeoTIFF from JPEG using GQIS Georeferencer tool

I am trying to follow this tutorial to convert a JPEG image of a WGS-84 Web Mercator world map to a GeoTIFF file using QGIS, but am failing to do it correctly-- the map comes out with black-hole-like ...
A__'s user avatar
  • 131
0 votes
0 answers
182 views

Why is my raster range changing when converting from one format to another?

I am trying to export some rasters from .bil to GRID format and my workflow is as follows. I open up the raster I want to convert and take a screenshot of the raster information under the source tab. ...
Noah P's user avatar
  • 49
0 votes
1 answer
1k views

Converting raster GeoTIFF or NetCDF to image in Google Earth Engine

I try to convert raster tif or netcdf file to ee.Image Google Earth Engine object in Python. The netcdf raster testing data (5-bands) is in this link. Here I converted the first band from raster file ...
Tuyen's user avatar
  • 209
2 votes
1 answer
301 views

Given table of coordinates, obtain attribute from GeoTIFF file for given location

I am completely new to GIS, am currently using QGIS to try and accomplish a major feat. Background: I have a file of over 150,000 property lat/long coordinates that exist in WA & OR (USA). I have ...
brisamh's user avatar
  • 21
0 votes
0 answers
232 views

Converting 64 bit raster to 16 bit

I have drone captured aerial image that I'd like to add as a layer to a project on GIS Cloud. The file is currently 64 bit which is not supported on GIS Cloud. Using QGIS I ran Raster-Conversion-...
JoshCTM's user avatar
3 votes
0 answers
277 views

MODIS MCD18A2 (PAR) reproject via rasterio vs. via HDF-EOS

I downloaded MODIS L3 PAR data (https://lpdaac.usgs.gov/documents/750/MCD18_User_Guide_V61.pdf, https://e4ftl01.cr.usgs.gov//DP128/MOTA/MCD18A2.061/2014.07.04/MCD18A2.A2014185.h18v04.061.2021258072101....
Timespirelegend's user avatar
1 vote
1 answer
137 views

Area based Heatmap (QGIS)

I am new to QGIS. I am trying to create a heat map based on area not points. What I want to acheive is similar to this question. I want to create a binary raster (0 for no point, 1 for point). Then, ...
Myaccount's user avatar
-1 votes
1 answer
183 views

Merge hundreds of rasters

I am willing to merge hundreds of rasters (around 500) but I cannot find a solution. I am running on qgis 2.6.1 and I have tried to use gdalbuildvrt. It seems to work for combining 10 rasters for ...
twister's user avatar
  • 11
1 vote
0 answers
25 views

GDAL QGIS Polygonize function does not work properly [duplicate]

I have a single band raster, range in values from -0,19 to 0,34. I am trying to convert it to a multipolygon shapefile, but I am only coming up with a single polygon, with only 0 or 1 values in its ...
Pedro Gomes's user avatar
0 votes
1 answer
3k views

Matching a raster projection to simple features spatial layer using R

I have two dataframes in R. One, df_points, has spatial information saved as points. The other, df_raster, is a raster file. I want to extract information from the raster to the points using: rasValue ...
tchoup's user avatar
  • 73
0 votes
0 answers
97 views

Create the loop for multiple raster convert to vector polygon using the arcpy scripting tool

This is my code which works only with the one raster image. But I need to create the tool that converts the multiple raster to vector in loop with arcpy. import arcpy from arcpy.sa import * arcpy.env....
harini ravi's user avatar
0 votes
0 answers
315 views

Error when attempting to rasterize vector layer in QGIS "ERROR CODE 127"

I am trying to rasterize a vector layer of data, a pretty simple function in QGIS on my MacBook and it is popping up with an error message which I included in the screenshot below. I have had this ...
Sadie Horner's user avatar
2 votes
1 answer
749 views

How to get float values instead of integers when polygonizing rasters using QGIS?

I'm using QGIS 3.16.13-Hannover to convert a TIF file (solar radiation grid cells) into a vector like a Geojson or Shapefile. I was confused that everytime I ran the polygonize workflow in QGIS, I was ...
Kyle Pennell's user avatar
1 vote
0 answers
255 views

Losing data when converting from vector to raster of 1 sqkm resolution?

I am dealing with 1000 species data over the region of my interest. when I convert my this 1000 species polygon into raster by 1km by 1km resolution in QGIS. All data is in one polygon. The resultant ...
user_3264's user avatar
  • 348
0 votes
0 answers
43 views

Vector to raster with name of species

I am dealing with polygons of species almost 500. I convert them into raster of 1km by 1km resolution to know the presence of species in each cell. When I convert them into raster they give me total ...
Daniel's user avatar
  • 306
1 vote
0 answers
128 views

TypeError: cannot unpack non-iterable NoneType object when converting raster file to csv file

I want to convert a raster file to csv file. When I use raster2xyz, my code raises TypeError: cannot unpack non-iterable NoneType object error. from raster2xyz.raster2xyz import Raster2xyz from ...
user195057's user avatar
0 votes
0 answers
172 views

Getting the pixel value from the user defined Image (which converted form a FeatureCollection)

There is a simple FeatureCollection, and the reduceToImage() function can convert this FC to a google-earth-engine image. How can I get the pixel value from this image. This is the JS code: https://...
dong fan's user avatar
1 vote
1 answer
1k views

Converting a TIFF file meant for a GIS program for use as a heightmap formatted for 3D modelling software [duplicate]

I've downloaded a TIFF taken by the Chang'e 2 orbiter. It's listed as a DEM file, and it came with 2 other files I didn't bother with because they are for GIS software - a .prj and a .tfw. When I ...
kim holder wants Monica back's user avatar
0 votes
0 answers
308 views

Converting float raster to integer failing in ArcGIS Pro

I'm trying to convert a 32 bit floating raster into an integer type using the 'int' spatial analyst tool within ArcGIS Pro (2.8.3). I have used the raster calculator to remove the decimals (in my case,...
Laura Caldwell's user avatar
2 votes
0 answers
52 views

How to get equal size cells when using rasterize in QGIS on slanted points

I'm trying to get nice, centered cells on every point. I'm using the tool rasterize in QGIS. I have gotten the method to work with uniform point data, however, I am having more trouble with slanted ...
user193672's user avatar
3 votes
1 answer
69 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?
Mahmoud Mohamed Ouf's user avatar
6 votes
1 answer
9k views

Convert sf data frame to raster in R

I am trying to export landscapemetrics output which is a sf dataframe as a raster, the first column of the df is the grid cell number, the second is the value and the third column has the polygon ...
Buffy Smith's user avatar
0 votes
0 answers
110 views

When saving an ASCII grid as a GeoTIFF in QGIS, the resulting raster has slightly different cell values than the input file

My input raster is a Arc ASCII grid that I drag into QGIS. It has a cell size of 1. If I try to convert that to a GeoTIFF by going Export>Save as> GeoTIFF, and using the same extent and cell ...
Karyn's user avatar
  • 217
0 votes
1 answer
108 views

Creating Raster Dataset from Point Values using ArcMap

I am using ArcMap. I'm trying to re-create a map similar to the attached image showing rain gauge locations with a raster dataset that estimates the rain in the surrounding areas based off the ...
Dmob17's user avatar
  • 5

1
2 3 4 5
7