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
1answer
26 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
45 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
20 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 ...
1
vote
0answers
207 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
58 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
150 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 ...
1
vote
1answer
46 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
52 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
39 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
219 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
77 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
205 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
12 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
48 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
81 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
147 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
216 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
266 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
37 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
21 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
98 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
154 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
78 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
174 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
41 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
77 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
438 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
281 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
81 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
81 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
231 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
37 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
58 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
47 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
35 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
53 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
193 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
25 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
540 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
103 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
55 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 ...
2
votes
0answers
483 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
282 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
169 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
79 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 ...
1
vote
1answer
322 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
42 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
931 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 ...