Questions tagged [png]
Use this tag when asking questions related to, Portable Network Graphics (PNG), a bitmapped image format that employs lossless data compression
202 questions
2
votes
0
answers
19
views
Area size generated by editor behind legend elements is missing when exporting PNG with QGIS Layout
I use QGIS Version 3.28.3-Firenze.
In a QGIS Layout, I add the sum of area to each class in the legend via the editor.
I use the following expression:
@symbol_label
|| ' ('
|| round(aggregate(@...
0
votes
1
answer
53
views
Export GTiff to PNG
I'm trying to export a raster as a PNG file only for visualization purposes. Currently, gdalinfo -stats shows this:
Driver: GTiff/GeoTIFF
Files: ./downloads/2023-06-01.tiff
Size is 764, 693
Coordinate ...
2
votes
1
answer
295
views
Opening local XYZ Tiles source on QGIS
I am trying to add an XYZ Tiles source of a map that I downloaded in PNG format to QGIS. It has been cached with Global Mapper. It works very well with Global Mapper and SASPlanet, but it appears like ...
0
votes
1
answer
384
views
Creating a GeoTIFF with PNG & XML [closed]
I want to make a GeoTIFF file to use in a navigation app. What I currently have is a PNG with the map and a XML that goes along with it. Does anyone know how to somehow combine them and export it as a ...
0
votes
0
answers
105
views
Opening .png.aux.xml file in QGIS
I received a .png.aux.xml file. I have tried to read it with the GDAL translator and by making a URL from the code. I haven't been able to open the file in QGIS.
Any ideas?
2
votes
0
answers
552
views
React Native with offline maps
I am developing a React Native app functionality that will allow user to navigate with offline map.
I had luck with react-native-maps package and raster .jpg tiles. The main downside is that tiles for ...
1
vote
0
answers
91
views
What is the proper syntax in gdal_translate to change image.png to a geotiff by assigning latlong pairs to pixels?
I cannot find comprehesible documentation on how to assign latlon to pixels in an orthogonal image that must be made into a proper geotiff.
INPUT kat.png (ORDINARY) OUTPUT kat.tif (GEOTIFF)
512px by ...
0
votes
0
answers
87
views
TIFF resolution decreases when opening it in the layout (QGIS)
I have a TIFF which I want to put in to the layout in order to add the legend etc. However, when I open it in the layout the resolution decreases significantly. I tried it with the TIFF as well as ...
1
vote
1
answer
104
views
Setting path for QgsLayoutItemPicture using PyQGIS
In PyQGIS I want to define a path for a QgsLayoutItemPicture.
Example:
project = QgsProject.instance()
manager = project.layoutManager()
layout = QgsPrintLayout(project)
layout.initializeDefaults()
...
0
votes
1
answer
295
views
Exporting four band TIFF for transparency (alpha channel) using ArcMap
I am using ArcMap 10.8. I try to add a fourth band with my TIFF to extract it by mask and NOT have a black box arroud with NoData values. In the end I need a four band PNG with transparency layer. ...
0
votes
0
answers
42
views
Raster to Polygon is converting the entire image as one polyon
I am attempting to use the raster to polygon tool with a RF Propagation overlay that is in .png format. The png is tied to a KML for the georeferencing from its output software. If i leave the png ...
0
votes
0
answers
122
views
ArcGIS Pro not reading PGW file
When I upload the PNG file into ArcGIS Pro it doesn't seem to access or read the associated PGW file. The error I get is that it has "Unknown Coordinate System"
How do I go about correcting ...
1
vote
0
answers
212
views
Trouble with clipping a GeoJSON polygon from a PNG raster tile in a Django Python app with rasterio
I am currently working with a Django Python app that is associated with a PostgreSQL database where PostGIS is installed. There's a specific table in the database with a column of the polygon type, ...
0
votes
1
answer
160
views
Converting PNG to GTiff increases file size using Python
I am running this script to convert PNG to GTiff and tag it with coordinates and a crs of my choice. It works just fine but after the conversion the geotiff file is 177 MB (the png is 1 mb or smt) and ...
2
votes
2
answers
2k
views
Exporting Map Series to multiple PNGs using ArcGIS Pro
In ArcGIS Pro, how can I export a Map Series to multiple PNGs?
in the GUI, there's an easy option to export to multiple PDFs, but not for PNGs.
I found this article (under "MapSeries example 2&...
0
votes
1
answer
357
views
How to georeference a PNG in ArcMap without losing transparency?
I am creating a geologic map in ArcMap and I want to georeference a PNG of my topographic contours. I need to use a specific set of contours, so I cannot generate them within Arc. I have PNG file that ...
1
vote
1
answer
280
views
Arcpy : setting DataFrame scale to export map over specific domain
I am trying to automate the export of a map to png over a given domain (SW and NE coordinates) in ArcPy (ArcMap version 10.7.1). I've searched a bit but fail at setting the correct automatized scale (...
0
votes
1
answer
86
views
The PNG image I created using GDAL's createcopy method looks 48-bit on Windows
I use GDAL ceatecopy() method to convert a 16bit TIF file to a PNG file. Why the PNG file generated is 48bit? But I can successfully display it on ArcGIS. Thumbnails on Windows are black.
1
vote
1
answer
863
views
How to write a single band colored PNG in rasterio?
I am trying to convert a single band GeoTIFF file to PNG with pseudocolor. What I am trying to achieve is not a thumbnail but an image with geospatial reference that I can serve as an Image Overlay in ...
0
votes
1
answer
259
views
Draw a polygon over PNG image R
I have a PNG image wich I have opened in R and in order to give coordinations converted into a SpatRast object with the following code:
library(terra)
r <- rast("yanomamis.png")
#Warning: ...
1
vote
2
answers
435
views
Read a PNG and JPEG image with world file in Java
I have a program where given an image I want to read the coordinates for each pixel.
I have implemented the code if the given image is a TIFF image and it works fine. The code that gives me the object ...
1
vote
1
answer
2k
views
Saving TIFF file as PNG with colour ramp
I have one TIFF image having the pixel value of 1 and 2. It's a classified image. I want to save the TIFF file as a PNG with heading and colour index for 1 and 2. I can able to plot the raster but ...
1
vote
1
answer
250
views
QGIS 3.22 : Put some custom PNG icons on a map programmatically,to creare a tracker [closed]
I'm developing a framework using QGIS SDK. It must show some icons updated during time like a tracker. "Some boats on a map with different icons" I have also to perform a selection on an '...
0
votes
0
answers
719
views
Images imported as symbol through Picture Maker have backgrounds using ArcGIS Pro
I am using ArcGIS Pro.
I am attempting to upload a PNG image (Turbine 1 attachment) as a point symbol, however anytime I try to do this the image has either a fully white or black background.
I have ...
0
votes
1
answer
84
views
Embedded PNG with a transparent background not exporting in certain area of the map
I am using ArcMap 10.8.1.
I've managed to find that an embedded PNG image (with a transparent background), whether saved as a part of a map or not, is not exported with the map itself in a right part ...
0
votes
2
answers
383
views
Is there any way to get the information in XML, or GeoJSON or in any text format for this ArcGIS from URL?
I have a URL like this
https://arcgisserver.lund.se/arcgis/rest/directories/arcgisoutput/extern/Extern_Stadsplanering_MapServer/_ags_mapd3b02fb986704186a28a270abd0baff1.png
Source Page
https://...
0
votes
0
answers
918
views
R : Reading KMZ and appending geography to polygon from png
Question: How do I make a png embedded within a kmz useable as a polygon?
Context:
I am trying to read a KMZ file generated by a free 3rd party tool and to make the .png image within useable as a ...
0
votes
0
answers
296
views
Convert multiple PNG files to one JPEG
Here I have converted a .mbtile file to PNG. The output creates a main folder with multiple subfolders. Those subfolders contain multiple PNGs. I would like to convert all those PNG files to one JPEG ...
2
votes
1
answer
591
views
Should I use TIFF or PNG Maps [closed]
I have a school project in which I should forecast the UV index based on historical data in former UV maps.
This website http://www.soda-is.com/pub/files/iresen/ includes the UV maps both in TIFF and ...
0
votes
1
answer
578
views
Export PNG in QGIS, same extent but outputs are not exactly the same
I export the PNG with same extent, same resolution and scale
but the output width are not exactly the same.
It's quite annoying to me, and I have no idea why could this happen
Are there any ...
0
votes
1
answer
889
views
Georeferencing PNG from bounding box in GDAL?
I have an image in PNG format and bounding box coordinates (upper left, lower right). How do I georeference it using command-line interface tools such as GDAL (or Python if it is not possible)?
In the ...
3
votes
1
answer
263
views
<geotools/HeatmapProcess> convert GridCoverage2d to BufferedImage
I got the heatmapprocessTest code from geotools github
However, I can't confirm that the heat map is coming out well.
Ultimately I want to create and save the heatmap as a BufferedImage. (png)
For ...
1
vote
0
answers
361
views
OpenLayers - Add PNG image static from local disk? [closed]
I have some layers in GeoServer, where I used the OpenLayers technology to act as a viewer for these.
The code is the following:
<!doctype html>
<html lang="es">
<head>
&...
2
votes
2
answers
2k
views
Converting PNG to GeoTIFF using GDAL Python
I want to ask how to convert PNG to GeoTIFF using GDAL in Python. I ran this code but it's not work and I want to export the output into my computer.
How can I fix my code?
ds = gdal.Open('input.png')
...
0
votes
0
answers
420
views
Show map tiles made in MapTiler in OpenLayers?
I converted GeoTIFF to png-tiles using MapTiler. Here is the folder structure:
Now I'm trying to add this folder with png-tiles to OpenLayers as XYZ source:
var layer = new ol.layer.Tile({
...
1
vote
0
answers
719
views
Export QGIS layout as georeferenced PNG image with PyQGIS
I am using PyQGIS to export a map layout like this
exporter = QgsLayoutExporter(layout)
settings = exporter.ImageExportSettings()
settings.dpi = 100
path = 'C:/data/test1.png'
exporter.exportToImage(...
1
vote
0
answers
922
views
Saving 16bit raster to RGB PNG (or TIF) in QGIS
I was following this post here: Converting Grayscale GeoTIFF to PNG using QGIS results in all black image
I don't want a grayscale but RGB PNG.
When I do Raster->translate and select byte I only ...
1
vote
2
answers
1k
views
GTiff to PNG conversion- Gdal Python
I am trying to convert a Gtiff image to PNG using Gdal in python with gdal_translate.
My gtiff has the following properties:
Width 255
Height 255
Data type Float32 - Thirty two bit floating point
...
0
votes
0
answers
230
views
Only one image is showing up on OpenLayers map
I can only get one of the following DEM_image PNGs to show up on my map. Its always the first one "DSS.layer.DEM.image0" that shows up, the rest do not render. I can see in the console ...
4
votes
1
answer
185
views
Gradients Changed on Export in QGIS when Coord Mode set to Viewport
I made a map in QGIS that includes a couple different gradients. Here you can see an indicator map that has a gradient fill enabled. (This image is from the print layout/composer.)
(Here is the ...
1
vote
1
answer
378
views
Extracting all polygons from GeoTIFF raster layer as PNG images using QGIS
I have a GeoTIFF file with multiple separated polygons on it as the following:
I'd like to find a way of extracting all these polygons as separated individual PNG images, just so I can have them as ...
2
votes
0
answers
369
views
Convert a one-band GTIFF to PNG with adjusted color ramp using GDAL
I have a one-band fCover GTiff with values ranging between 0 to 0.4 and I would like to convert it to a png using a color ramp adapted to this tiff.
I already have a png from this tif but the color ...
1
vote
1
answer
299
views
Reading from PNG file in Java from using GDAL
I've used gdalwarp.exe to project a tif-file from EPSG:4326 to EPSG:32635 and storing it in the PNG-format:
gdalwarp.exe -dstalpha -t_srs EPSG:32635 -s_srs EPSG:4326 -if GTiff -of PNG -et 0.125 -r ...
0
votes
0
answers
361
views
Is there a way to use QGIS' qgis:tilesxyzdirectory algorithm from a shell script?
I currently have a KML file which I upload to QGIS as a layer. From there I navigate the UI to Raster tools -> 'Generate XYZ tiles (Directory)' under the processing toolbox.
For the EXTENT ...
1
vote
1
answer
319
views
Looping through features in layer to zoom to feature and export to PNG using ArcPy with ArcGIS Pro
I have a shapefile with a large number of features with consecutive IDs, and I need to zoom in each one and export the map as a PNG file. I found a previous identical question where the code that was ...
0
votes
0
answers
226
views
Fastest way to generate PNG tiles from a KML file
I have several KML files and each KML is being parsed, turned into a geometry with PostGIS' ST_GeomFromKML() and saved to a database. This database is parsed and uses ST_AsPng() to process each ...
1
vote
0
answers
2k
views
Converting GeoTIFF to PNG results in completely black image
I have a set of DEM tiles (TIFF format) retrieved from https://cteco.uconn.edu/data/download/flight2016/index.htm which I would like to convert to 16-bit PNG format so that I can use them as ...
0
votes
0
answers
85
views
Exporting very large map to image in QGIS [duplicate]
I'm trying to use QGIS 3.10.14 to create a hydrological map to edit (as a PNG) in image editing software. My purpose is recreational.
I've paired the Copernicus EU-hydro river network with ESRI ...
4
votes
2
answers
3k
views
How to convert GeoTiff to PNG + World file in QGIS
I have quite a big area with DTM as a GeoTIFF. I want to save it to PNG with world file, but how to do it just in QGIS?
I know I can export view to PNG with world file, but it looses quality (Project/...
0
votes
2
answers
294
views
ArcPy exporting maps to PNG problem - raster DEM does not show up in exported map file
I sm using ArcGIS Desktop (ArcMap) 10.8.1 and PyCharm 2020.3.3.
I'm trying to use a simple script to loop through a folder and export a PNG file for each MXD in the folder. The script works fine, and ...