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
1 answer
29 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 ...
user avatar
  • 1
0 votes
1 answer
48 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 ...
user avatar
  • 657
0 votes
0 answers
22 views

geotools GridCoverage2D set the color

When I save my GridCoverage2D as a tif file and search it, the color is white. I want to set the low value to green and the high value to red (green-yellow-red) And save it as a png file by specifying ...
user avatar
3 votes
1 answer
15 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 ...
user avatar
1 vote
0 answers
42 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> &...
user avatar
0 votes
2 answers
226 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') ...
user avatar
0 votes
0 answers
86 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({ ...
user avatar
1 vote
0 answers
76 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(...
user avatar
  • 428
1 vote
0 answers
101 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 ...
user avatar
  • 195
0 votes
1 answer
76 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 ...
user avatar
0 votes
0 answers
47 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 ...
user avatar
4 votes
1 answer
36 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 ...
user avatar
  • 333
1 vote
1 answer
74 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 ...
user avatar
  • 1,021
1 vote
0 answers
99 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 ...
user avatar
1 vote
1 answer
116 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 ...
user avatar
  • 63
0 votes
0 answers
51 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 ...
user avatar
0 votes
1 answer
82 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 ...
user avatar
0 votes
0 answers
59 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 ...
user avatar
1 vote
0 answers
181 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 ...
user avatar
  • 111
0 votes
0 answers
82 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 ...
user avatar
  • 21
3 votes
2 answers
696 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/...
user avatar
  • 71
0 votes
2 answers
106 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 ...
user avatar
2 votes
0 answers
68 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 ...
user avatar
1 vote
0 answers
65 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="#...
user avatar
1 vote
1 answer
54 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. ...
user avatar
2 votes
1 answer
185 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 ...
user avatar
  • 21
2 votes
1 answer
2k views

Georeferencing of PNG and Convert to TIFF using Python

I have a PNG image which I am trying to georeference using four corners of coordinate information of the defined input image. When I am trying to convert PNG to TIFF, I am getting 3 bands (R,G,B) ...
user avatar
  • 111
0 votes
1 answer
595 views

Export a map and a legend as a PNG with OpenLayers 6

I would like to export a map with a legend in the same PNG using OpenLayers 6. I searched in the OpenLayers documentation but I got just how to export a map (without a legend). How can I do this?
user avatar
  • 53
0 votes
1 answer
55 views

Shader is not working correctly / set(material.[]) is buggy

Concider this first Example: My CGA File: const dryWallCol = "Walltexture1/Drywall4.png" Lot --> primitiveCube(20,20,20) ...
user avatar
-1 votes
1 answer
632 views

Convert shapefile to PNG using GeoTools

I need to know how to export a .shp file to .png in Java using geotools. I found an example here: Convert geojson to png. But I need convert shapefile to PNG.
user avatar
  • 85
3 votes
1 answer
773 views

Exporting a raster map to PNG in QGIS keeping the exact legend colors

I'm developing a plugin for QGIS called 'Mappia_Example' to allows the community to publish its maps online. But i need some help, i am trying to export a map in QGIS to PNG but its using aproximated ...
user avatar
  • 73
0 votes
0 answers
690 views

How to convert GeoJSON to PNG image

I'm looking to use the geojson module in Python, as well as Pilllow to convert a .geojson to a .png image. I know how to extract the data from the file but I don't know what to do from there.
user avatar
1 vote
0 answers
100 views

Export to PNG produces wrong color background (but not for JPG)

I need to export a map as a PNG image, but when I do the background, which is supposed to be white, comes out gray. This also happens when I export it as a TIFF or EMF, but not as a JPG. I have tried ...
user avatar
2 votes
1 answer
218 views

Export Raster tiles in JPEG/PNG format using PostGIS

I imported my image with three bands (RGB) with 100*100 tiles using raster2pgsql into the DB. Now, I need to export those tiles separately. I used the following code but it produces a table select ...
user avatar
  • 63
2 votes
1 answer
436 views

gdal_translate problem translating 16bit PNGs

I am trying to use the SRTM earth images to convert them into heightmaps for 3D application. I can output a 8-bit PNG like this: gdal_translate -ot Byte -scale -of PNG srtm_44_05.tif heightmap.png ...
user avatar
0 votes
0 answers
50 views

Superimposing high resolution but partial coverage images on a smaller resolution images for use in GeoServer

For the same area, I have 2 sets of images, the first is high resolution but it doesn't cover fully the area and the images have somehow uneven borders just like this picture. The second one has ...
user avatar
0 votes
2 answers
809 views

Digitizing PNG image in QGIS

Following Getting polygons from PNG images for the QGIS Shapefiles I intended to digitize the following PNG image in QGIS 3.8 following this instruction: https://www.qgistutorials.com/en/docs/...
user avatar
  • 3,546
2 votes
0 answers
1k views

Getting polygons from PNG images for the QGIS Shapefiles

I would like to have ready polygons (borders) from some .PNG image and use them in QGIS as a shapefile. My file looks like this: which is crude raster PDF. My goal is to execute all borders (marked ...
user avatar
  • 3,546
1 vote
3 answers
174 views

ExportToPNG produces shifted images

I am using ExportToPNG (in ArcGIS 10.3.1) to produce images from a MXD with WMS data. If I use the interface command ExportMap with the option "1-BIT_MONOCHROME_THRESHOLD" and a threshold at ...
user avatar
3 votes
1 answer
976 views

Merge *.png files into one using GDAL

I built a Python script that downloads tiles from some map service. This service cannot be imported to QGIS as a tile layer so I decided to download tiles directly using requests module. The script ...
user avatar
1 vote
1 answer
65 views

Weird looking color when creating tiles from large GeoTIFF

I encounter some weird problem when creating tiles from GeoTIFF. Context: I am generating small tiles from a large GeoTIFF image. The B and R band were swapped so I had to do a gdal_translate to swap ...
user avatar
  • 233
4 votes
2 answers
3k views

Converting PNG files to GeoTIFF using Python

I have a big set of PNG files and EPSG:3006 coordinates of the edges of each file. (actually the coordinates of the edges are given in the file name, like this: 'image_666751_7023263_667007_7023519....
user avatar
  • 241
2 votes
1 answer
1k views

Exporting map error from QGIS

Whenever I try to export a map as an PNG image I get the 'successfully export' message but there is no file generated. The error happened in Zanzibar so I changed to Noosa but I still can't export the ...
user avatar
3 votes
1 answer
768 views

Batch export of layers as individual PNG files in QGIS 3.4?

I have hundreds of layers. I'd like to be able export each one as a PNG. I can do this by selecting one, and going to project, export map to image, calculate from layer -> select layer -> save. Is ...
user avatar
  • 83
1 vote
0 answers
75 views

CentOS 7, Mapnik, and Tilestache: Seems like image assets are ignored by Mapnik's point/pattern symbolizers

[Update 6.6.2019] Ok...new detail. I checked a different Apache error log and discovered that it's littered with these errors, generically corresponding to.. failed to allocate png_ptr Actual ...
user avatar
  • 6,122
2 votes
1 answer
31 views

Giving Projection for more than one .png format at same time using ArcGIS Desktop?

I want to give a projection for multiple PNG files at the same time i.e. not one by one. Is there a tool for this or can we give a projection to that folder?
user avatar
0 votes
1 answer
625 views

Use PNG external graphic for vector layer with OpenLayers 5.3

I am currently working on a webmapping project using Mviewer device, linked to OpenLayers 5.3. I am trying to create a new vector layer to locate points, with js. So far, I managed to create a layer ...
user avatar
  • 21
0 votes
0 answers
53 views

From EE GeoTiff to MS Word PNG/JPG?

I would like to put some images from Earth Engine (EE) in my report. So far I screenshot it and paste PNG on MS Word. I see EE can export images to Google Drive. But its geotiff, I can't just paste ...
user avatar
  • 503
2 votes
0 answers
2k views

Create GeoTIFF from PNG raster with PGW world file with GDAL

I've used GDAL tools for several other operations on GeoTIFFs. There is lots of information on how to splice GeoTIFFs into PGW world files and images, but I haven't found ANY documentation on how to ...
user avatar
  • 41
2 votes
1 answer
214 views

Add PNG as a layer in Mapnik

I'm playing around with Mapnik and trying to add a PNG image over a map created from an XML file. This is my XML file: <Map background-color="white" minimum-version="0.7.2" srs="+init=epsg:3395"&...
user avatar