OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.9k stars 2.55k forks source link

Feature request: better support for PNM format #5159

Open boxerab opened 2 years ago

boxerab commented 2 years ago

I'm not sure how important PNM is to geospatial work flows. It seems that some ppm and pgm formats are supported, judging by QGIS ability to open files from this repo :

https://github.com/GrokImageCompression/input_image_test_suite

PAM is an extension of PNM that supports monochrome and RGB with alpha. It is a simple uncompressed format that is easy to parse. http://davis.lbl.gov/Manuals/NETPBM/doc/pam.html

I am unable to find any viewers capable of opening this format. So would be nice to have this support, but it may not be high priority for this project.

rouault commented 2 years ago

So would be nice to have this support, but it may not be high priority for this project.

if you want to tackle this, the PNM driver driver is in https://github.com/OSGeo/gdal/blob/master/frmts/raw/pnmdataset.cpp