Из PNG в GeoTIFF

That’s pretty easy to convert PNG + WLD file into GeoTIFF with gdal_translate command. Put *2_map.png and *2_map.wld files of any radar image into the same directory and use this command:

gdal_translate -co compress=lzw -of Gtiff -a_srs EPSG:3857 {source_image} {output_image}

Where:

  • {source_image} - name of the radar image in PNG format (example: MXAC_20191111_092600_2_map.png). It is important to have in the same directory with the same name WLD file (MXAC_20191111_092600_2_map.wld). Without WLD file, the image not be geofenced correctly.
  • {output_image} - name of the output GeoTIFF file with “tif” or “tiff” extension.

Example

First, download example files archive. Then, run the commands we explained earlier. You sould get similar output from that two commands: gdal_translate, which is geofence the radar PNG image, and the gdainfo, which shows the information in a geofenced image. It is important to have both PNG and WLD files of an image in the same directory with the same name.

Get RainViewer for Free
RainViewer RainViewer