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
0answers
32 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
1answer
23 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
1answer
31 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 ...
1
vote
0answers
42 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
1answer
51 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
0answers
29 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 ...
0
votes
1answer
53 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
0answers
32 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
0answers
64 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
0answers
78 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 ...
2
votes
1answer
277 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
0answers
23 views

Store pixel acquisition time in tile PNG metadata

I have a global tileset of visual satellite imagery stored and served to a web frontend in XYZ-format. The tileset get's updated periodically, as new images come in. However, when adding new data, ...
0
votes
2answers
58 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 ...
2
votes
0answers
50 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 ...
1
vote
0answers
33 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="#...
1
vote
1answer
20 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. ...
1
vote
1answer
76 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 ...
2
votes
1answer
1k 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) ...
0
votes
1answer
293 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?
0
votes
1answer
48 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) ...
-1
votes
1answer
438 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.
3
votes
1answer
514 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 ...
0
votes
0answers
513 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.
1
vote
0answers
82 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 ...
2
votes
1answer
163 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 ...
2
votes
1answer
290 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 ...
0
votes
0answers
46 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 ...
0
votes
2answers
638 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/...
2
votes
0answers
910 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 ...
1
vote
3answers
140 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 ...
3
votes
1answer
813 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 ...
1
vote
1answer
55 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 ...
2
votes
2answers
3k views

How to convert 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....
2
votes
1answer
848 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 ...
1
vote
1answer
632 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 ...
1
vote
0answers
73 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 ...
2
votes
1answer
30 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?
0
votes
1answer
562 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 ...
0
votes
0answers
44 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 ...
2
votes
1answer
182 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"&...
0
votes
1answer
2k views

Change Leaflet Marker Icon(.png) color programatically [closed]

I have a list of markers. I am assigning an icon to each marker and creating that icon from a black .png circle. I want to change color of that marker based on input value from user. I have searched ...
1
vote
2answers
635 views

Calculate 16-bit elevation values from a 32-bit RGBA image?

Say a single-band 16-bit (UInt) raster with values representing elevation (meters) must be converted to a 32-bit RGBA PNG image (8-bits/band) for use in a web application. The image dimensions must be ...
-1
votes
2answers
641 views

Exporting image from GEE to Google Cloud Bucket in PNG/JPEG format? [closed]

The below lines of code shows the export of the image to the cloud. I am unable to convert my file to JPEG/PNG. I want my image to be saved in PNG/JPEG in the cloud. Export.image.toCloudStorage({ ...
3
votes
3answers
2k views

ERROR 1: Error : band 1 has no color table

I would like to convert a GeoTIFF to PNG or JPEG RGB, and my GeoTIFF is stripped of a lot of valuable data (I think..) I am on ubuntu and I am using gdal_translate to try and make a GeoTIFF turn into ...
1
vote
1answer
118 views

Saving content of map.div as PNG using widget with ArcGIS Web AppBuilder?

I basically need to take a screen capture of the div WITHOUT all of widgets and panels on top of it. My plan is to export map scenes for eventual use in PowerPoint, so I want a 'what you see is what ...
0
votes
1answer
50 views

ArcGIS file export

Am having issues exporting a Layout Map of an area from ArcGIS to any raster format (JPEG, TIFF and PNG). The map gets partially exported with no errors reported. Exporting to PDF works fine. My ...
5
votes
0answers
983 views

Convert TIFF raster layer to PNG

I have been given some images in TIFF format, and I need to convert them to the PNG format. I have been given that the TIFF file contains 4 bands: R, G, B, and NIR (which I do not need for the PNG). ...
1
vote
1answer
247 views

Alpha-channel PNG from gdaldem

I was hoping that the following command would give me an alpha-channel PNG which was transparent where the DEM has "nodata": gdaldem color-relief -alpha -of png dem.tif palette.dat out.png I get an ...
0
votes
1answer
785 views

Filling polygon with png pattern in OpenLayers?

I want to fill a set of polygons with png pattern. Here is an extract of my code : var canvas = document.createElement('canvas'); var context = canvas.getContext('2d'); var pattern; var imageObj ...
2
votes
0answers
37 views

When exporting, mask behind text becomes garbled (Data Driven Pages)

I am using Data Driven Pages with different rotations for a project. When I export to PDF or PNG, the mask behind the text moves and rotates. It does not seem to rotate in the direction of the data ...