[pdal] las to geotif

Adam Steer adam.d.steer at gmail.com
Fri Jun 7 16:22:39 PDT 2024


Hi Sergey - try reprojecting your source las file into a projected (in
metres) system and running again.

PDAL/GDAL pass projections through. Your input data are in degrees, your
output resolution is interpreted as the same unit, so resolution 1.0 is
interpreted as '1 degree'.

Hope that helps,

Adam

--
Dr Adam Steer
https://spatialised.net
Available for consulting/open for headhunting

On Sat, Jun 8, 2024, 07:33 Sergey Yefimov via pdal <pdal at lists.osgeo.org>
wrote:

> Hi,
> I try to convert las to geotiff using this pipeline
>
> "pipeline":[
> {"type" : "readers.las",
> "filename":"C:\\KVData\\source\\las\\test.las"
> },
> {
> "type":"writers.gdal",
> "filename":"C:/KVData/source/tiff/ttest.tif",
> "resolution":1.0,
> "output_type":"all",
> "gdaldriver":"GTiff"
> }
>     ]
>
> After conversion invalid 2 KB tiff file created. las info:
>
> {
>   "file_size": 137422487,
>   "filename": "C:\\KVData\\source\\las\\test.las",
>   "now": "2024-06-07T17:09:19-0400",
>   "pdal_version": "2.7.1 (git-version: Release)",
>   "reader": "readers.las",
>   "stats":
>   {
>     "bbox":
>     {
>       "EPSG:4326":
>       {
>         "bbox":
>         {
>           "maxx": -75.606374,
>           "maxy": 35.9592838,
>           "maxz": 29.71,
>           "minx": -75.6350255,
>           "miny": 35.942234,
>           "minz": -11.88
>         },
>         "boundary": { "type": "Polygon", "coordinates": [ [ [ -75.6350255,
> 35.942234, -11.88 ], [ -75.6350255, 35.9592838, -11.88 ], [ -75.606374,
> 35.9592838, 29.71 ], [ -75.606374, 35.942234, 29.71 ], [ -75.6350255,
> 35.942234, -11.88 ] ] ] }
>       }, ..
> "statistic":
>     [
>       {
>         "average": -75.62226764,
>         "count": 4907929,
>         "maximum": -75.606374,
>         "minimum": -75.6350255,
>         "name": "X",
>         "position": 0,
>         "stddev": 0.005315505055,
>         "variance": 2.825459399e-05
>       },
>       {
>         "average": 35.95136764,
>         "count": 4907929,
>         "maximum": 35.9592838,
>         "minimum": 35.942234,
>         "name": "Y",
>         "position": 1,
>         "stddev": 0.002706953159,
>         "variance": 7.327595404e-06
>       },..
> }
>
>
>
>
>
> *|** P **|** T **|** F **|** S **|*
>
> Empowering Content
>
> 1801 Research Blvd
>
> Suite 310
>
> Rockville, MD  20850
>
> 301 654 8088 Ext 131
>
> www.ptfs.com
>
> syefimov at ptfs.com <udoh at ptfs.com>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20240608/8571862c/attachment.htm>


More information about the pdal mailing list