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

How to covert a GeoTIFF DEM to a standard raster format without losing quality or resolution

I'm working on a project, a spin-off of my graduate dissertation, to digitize LiDAR data of a portion of Tampa Bay (20x20 km^2 at 1:1 scale) into a Minecraft map. Ideally I want not just accurate ...
0
votes
1answer
36 views

Converting a Raster to Polygon and Dissolving Issues using ArcMap 10.5

I have a large forest habitat raster dataset (several watersheds in state of Oregon) that I need to convert into a shapefile. The raster has 70 different categories of habitat types. Steps: I've ...
0
votes
1answer
21 views

Using gdal_translate to round pixel values in raster - I'm getting an error

I tried to follow along at question: Rounding raster pixel values to one decimal place in QGIS but my python script throws a syntax error at GTiff. I do have one that works for ArcGIS but my end ...
0
votes
1answer
50 views

GIS points to raster [duplicate]

I have a shapefile of 1241 dam locations in Washington, if I open the attribute table I have only latitude and longitude. I want to convert this to a raster with counts of the number of dams in each ...
0
votes
0answers
22 views

Overlaying Landsat 8 (raster) and shapefile using ArcMap

I would like to know what I can do correct such problem, those images are not overlaying while they have the same projection system. I used even the extent of the shapefile to change the one for the ...
0
votes
0answers
35 views

Fastest way to convert raster to polygon using R

I am trying to convert my raster file to vector using R. I tried to do it with ArcMap but it is taking more than expected time. RasterToVector is also not working because the file is too big. Can ...
1
vote
0answers
42 views

QGIS: Saving TIF as Geopackage raster loses NoData cells

Background: At 3.8.3, I right-click a TIF DEM (single-band, 32-bit floating point) and Export > Save As to a Geopackage raster. If I use all default settings in the Export > Save As window, the ...
1
vote
1answer
63 views

Create polygons from raster with only a selected amount of features (not each pixel a different polygon)?

I am trying to convert a raster into different polygons. The raster is based on a DEM and only contains three classes (each pixel has value 1, 2 or 3, obtained by using the raster calculator). I want ...
3
votes
1answer
178 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 ...
4
votes
2answers
316 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 ...
1
vote
0answers
34 views

Creating local copy of an online Potential Flood Inundation Map

I am completely stuck, usually I can figure out how to create a local copy of hosted services, but this one I can't seem to get anything to work and any suggestions would be great. Currently I can ...
1
vote
1answer
134 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 ...
1
vote
1answer
86 views

(QGIS) Shapefile with attribute table: Convert it to raster burning values of each polygon to the raster. “Heatmap”

I am working on QGis with a shapefile with an attribute table, I have created this shapefile through "Vector->Analysis tools->Count Points in Polygon", so this new shapefile got the count in the ...
1
vote
2answers
77 views

Converting BMP image into TAB MapInfo format using MapXtreme?

I am developing a plugin for MapInfo and I have BMP image with all the prop and I have rectbounds. I have done through GDAL using the below solution. But I am not getting proper output which I am ...
0
votes
0answers
26 views

Python code error when making fusion of multispectral image and DEM

I tried to fuse 4 multispectral bands from Landsat 8 with resampled SRTM, Aspect, Slope. It should contain 7 bands: R,G,B,NIR,DEM,Aspect,Slope. The code execution generates output raster, MS bands are ...
2
votes
0answers
421 views

Save Raster Layer As… not working in QGIS 3.4 [closed]

I am trying to save a VRT layer as a TIFF file using the layers panel in QGIS 3.4. I successfully created and saved the VRT from multiple ASC LiDAR tiles. My method is to work from the layers panel, ...
2
votes
0answers
94 views

Creating polygons from binary image using QGIS

Here I got a binary image of buildings (black and white image) and I need to convert them to building polygons: The expected outcome will be a vector file with building polygons based on the image ...
2
votes
0answers
31 views

Converting raster to polygon: vertical lines

I'm converting a reclassified raster (with a resolution of 25.18m) into a polygon. The reclassified raster has values of only 0s and 1s. However, the conversion results in a polygon with vertical ...
2
votes
1answer
208 views

Error in batch process converting raster from .img to .tif in QGIS 3.4.8

I'm a long time GIS user but new to QGIS. I can convert single raster files in .img format to .tif files in QGIS 3.4.8 without any issues. However, I cannot batch process the same files. The Python ...
2
votes
1answer
75 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 ...
0
votes
1answer
70 views

Zonal Statistics as Table: 999999 Error

I am receiving a 999999 error each time that I attempt to run Zonal Statistics as Table. I am attempting to overlay population data from an asc file with a shp file with French Alsatian municipal ...
1
vote
0answers
49 views

Reducing filesize for TIFF rasters

I'm using TINinterpolation in QGIS/pyQGIS to interpolate rasters from point-based model results. Subsequent post-processing to produce a series of rasters containing index values at the same ...
0
votes
2answers
408 views

Convert PNG raster MBTIles tiles to JPG raster MBTIles Tiles

I have a set of raster png MBTiles that are way too big in terms of file size. I need to get them down to close to half. I was hoping to achieve it by converting them to JPG Mbtiles, as they are ...
1
vote
0answers
180 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 ...
2
votes
1answer
463 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) : ...
1
vote
0answers
17 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
82 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
96 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
223 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
331 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'...
1
vote
1answer
486 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
39 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
23 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
162 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
276 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
118 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
280 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
49 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
130 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
545 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
431 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 ...
-1
votes
1answer
96 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
101 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
321 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
40 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" ...
3
votes
0answers
74 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
54 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
38 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
32 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
60 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 ...

1 2 3 4 5