Questions tagged [png]

Use this tag when asking questions related to, Portable Network Graphics (PNG), a bitmapped image format that employs lossless data compression

Filter by
Sorted by
Tagged with
0 votes
0 answers
33 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?
Pedro Castro Gomez's user avatar
0 votes
0 answers
79 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 ...
Andrei Shingirii's user avatar
1 vote
0 answers
65 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 ...
Molly's user avatar
  • 35
0 votes
0 answers
46 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 ...
Lina's user avatar
  • 223
1 vote
1 answer
54 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() ...
eagleadmiral's user avatar
0 votes
1 answer
110 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. ...
Frauke's user avatar
  • 59
0 votes
0 answers
35 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 ...
SA_Nerd's user avatar
0 votes
0 answers
49 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 ...
Paul Martin's user avatar
1 vote
0 answers
150 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, ...
ybz's user avatar
  • 11
0 votes
1 answer
99 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 ...
CEB420's user avatar
  • 1
2 votes
2 answers
1k 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&...
Felipe D.'s user avatar
  • 2,401
0 votes
1 answer
160 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 ...
Andrew's user avatar
  • 1
1 vote
1 answer
211 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 (...
thom_hlh's user avatar
0 votes
1 answer
73 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.
keweizhou's user avatar
1 vote
1 answer
615 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 ...
Nikko's user avatar
  • 581
0 votes
1 answer
153 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: ...
Aniel's user avatar
  • 15
1 vote
2 answers
365 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 ...
Rute's user avatar
  • 31
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 ...
Asmita Guha's user avatar
1 vote
1 answer
213 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 '...
Gab74's user avatar
  • 31
0 votes
0 answers
525 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 ...
Robbie-G95's user avatar
0 votes
1 answer
56 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 ...
Barbora Lachová's user avatar
0 votes
2 answers
287 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://...
Self's user avatar
  • 3
0 votes
0 answers
673 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 ...
Mark O's user avatar
  • 1
0 votes
0 answers
260 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 ...
Donny's user avatar
  • 1
2 votes
1 answer
299 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 ...
UV-Sam's user avatar
  • 39
0 votes
1 answer
391 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 ...
Ll Nu's user avatar
  • 1
0 votes
1 answer
734 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 ...
sutan's user avatar
  • 911
3 votes
1 answer
183 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 ...
user203217's user avatar
1 vote
0 answers
294 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> &...
MrShaggy87's user avatar
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') ...
ghea ayunda's user avatar
0 votes
0 answers
370 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({ ...
user13892757's user avatar
1 vote
0 answers
458 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(...
JUNGLE's user avatar
  • 510
1 vote
0 answers
727 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 ...
Oliver's user avatar
  • 195
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 ...
Karantai's user avatar
0 votes
0 answers
209 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 ...
Zach Hassler's user avatar
4 votes
1 answer
131 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 ...
Ben's user avatar
  • 405
1 vote
1 answer
286 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 ...
raylight's user avatar
  • 1,221
2 votes
0 answers
312 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 ...
Camille C's user avatar
1 vote
1 answer
282 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 ...
Paul's user avatar
  • 477
0 votes
0 answers
298 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 ...
steepcurve's user avatar
1 vote
1 answer
254 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 ...
Eladdave's user avatar
0 votes
0 answers
216 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 ...
steepcurve's user avatar
1 vote
0 answers
1k 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 ...
Matt's user avatar
  • 111
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 ...
Will's user avatar
  • 21
4 votes
2 answers
2k 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/...
Lynx's user avatar
  • 81
0 votes
2 answers
260 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 ...
S Koenig's user avatar
2 votes
0 answers
112 views

Do PNG files suffer performance for scaled read over ERDAS Imagine (.img) files?

So I have a 20 GB in size Raster Image in .img format. Though I will be examining the code, to find out why, I am AMAZED at how quickly QGIS renders the entire file in a scaled format, and prior to ...
John Sohn's user avatar
1 vote
0 answers
274 views

How to request GeoServer elevation data from GeoServer to PNG file with the minimum loss of precision

I'm requesting alt data on GeoServer from a layer group as a PNG file. The colormap of the style associated with the layer is the following : <ColorMap> <ColorMapEntry color="#...
bellot nicolas's user avatar
1 vote
1 answer
309 views

Exporting data frame as PNG after adding Layer File using ArcPy in ArcMap

My question relates to the answer found at Exporting data frame as PNG in ModelBuilder using ArcMap I've followed the steps in the answer provided by @PolyGeo, but my output PNG is just a blank image. ...
The Silent Cartographer's user avatar
2 votes
1 answer
710 views

QGIS crashing when exporting very large image

I'm trying to export a PNG of the OS 250k raster with OS Open Rivers over the top. Trying to export the entirety of the national grid caused it to crash, so I tried again with the bottom half of Great ...
Will's user avatar
  • 21