[pdal] writers.gdal produces "corrupt" PNGs?
Adam Steer
Adam.Steer at anu.edu.au
Fri Jul 7 19:17:40 PDT 2017
HI Vladimir - can you check whether a PNG with just one ‘band’ (ie ‘max’ OR ‘idw’ but not both) works?
That’s all I can think of… I actually need to test this as well :) Next week…
Cheers
Adam
> On 8 Jul 2017, at 3:18 am, Vladimir Sandoval <vladimir.sandoval at yandex.com> wrote:
>
> Trying to make a PNG from a .laz file to display in Firefox.
>
> {
> "pipeline":[
> "somefile.laz",
> {
> "type":"writers.gdal",
> "resolution": 1,
> "output_type":"idw",
> "output_type":"max",
> "gdalopts":"of=PNG,outsize=128 128",
> "gdalopts":"co=WRITE_METADATA_AS_TEXT=NO",
> "filename":"outputfile.png"
> }
> ]
> }
>
> The pipeline runs and produces a PNG. I cannot view the PNG with Firefox, MS Paint, or Windows Photo Viewer, HOWEVER, I can open it and view it in Opticks (https://sourceforge.net/projects/opticks/).
>
> Opticks shows a single band grey scale image, probably representative of the original .laz.
>
> Anything I'm doing wrong here producing the "corrupted" PNG?
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
More information about the pdal
mailing list