---
name: "pklas2img"
section: "1"
platform: "linux"
package: "pktools"
version: "2.6.7.6+ds-1+b1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/pklas2img"
---

# pklas2img(1)

Rasterize LAS/LAZ point clouds with filtering/compositing options

## NAME

pklas2img - Rasterize LAS/LAZ point clouds with filtering/compositing options

## SYNOPSIS

**pklas2img**  **-i** *lasfile* **-o** *output* \[*options*\] \[*advanced options*\]

## DESCRIPTION

**pklas2img** converts a las/laz point cloud into a gridded raster dataset. The implementation is based on liblas ⟨http://www.liblas.org/⟩ API. You can define the bounding box, grid cell size and spatial reference set. The composite rule for multiple returns within a single grid cell can be set with the option FC**-comp**F\[0\]. The default attribute is z (height), but can also be intensity (if available), the scan angle rank (FC**-n**F\[0\] angle), the return number (FC**-n**F\[0\] return) or the total number of returns in that grid cell (FC**-n**F\[0\] nreturn). To select specific returns only, set the option FC**-fir**F\[0\] (first, last, single, multiple, or all).

## OPTIONS

- FC**-i**F\[0\] *filename*, FC**--input**F\[0\] *filename*

  Input las file

- FC**-o**F\[0\] *filename*, FC**--output**F\[0\] *filename*

  Output image file

- FC**-n**F\[0\] *attribute*, FC**--name**F\[0\] *attribute*

  names of the attribute to select: intensity, angle, return, nreturn, spacing, z

- FC**-comp**F\[0\] *composite*, FC**--comp**F\[0\] *composite*

  composite for multiple points in cell (min, max, absmin, absmax, median, mean, sum, first, last, profile (percentile height values), number (point density)). Last: overwrite cells with latest point

- FC**-fir**F\[0\] *type*, FC**--filter**F\[0\] *type*

  filter las points (first,last,single,multiple,all).

- FC**-angle\_min**F\[0\] *value*, FC**--angle\_min**F\[0\] *value*

  minimum scan angle to read points.

- FC**-angle\_max**F\[0\] *value*, FC**--angle\_max**F\[0\] *value*

  maximum scan angle to read points.

- FC**-a\_srs**F\[0\] *EPSG:number*, FC**--a\_srs**F\[0\] *EPSG:number*

  assign the projection for the output file in epsg code, e.g., epsg:3035 for European LAEA projection

- FC**-ulx**F\[0\] *value*, FC**--ulx**F\[0\] *value*

  Upper left x value bounding box (in geocoordinates if georef is true). 0 is read from input file

- FC**-uly**F\[0\] *value*, FC**--uly**F\[0\] *value*

  Upper left y value bounding box (in geocoordinates if georef is true). 0 is read from input file

- FC**-lrx**F\[0\] *value*, FC**--lrx**F\[0\] *value*

  Lower right x value bounding box (in geocoordinates if georef is true). 0 is read from input file

- FC**-lry**F\[0\] *value*, FC**--lry**F\[0\] *value*

  Lower right y value bounding box (in geocoordinates if georef is true). 0 is read from input file

- FC**-dx**F\[0\] *value*, FC**--dx**F\[0\] *value*

  Output resolution in x (in meter)

- FC**-dy**F\[0\] *value*, FC**--dy**F\[0\] *value*

  Output resolution in y (in meter)

- FC**-ot**F\[0\] *type*, FC**--otype**F\[0\] *type*

  Data type for output image ({Byte / Int16 / UInt16 / UInt32 / Int32 / Float32 / Float64 / CInt16 / CInt32 / CFloat32 / CFloat64}). Empty string: inherit type from input image

- FC**-of**F\[0\] *out\_format*, FC**--oformat**F\[0\] *out\_format*

  Output image format (see also [**gdal\_translate**(1)](/gdal_translate/1.md)).

- FC**-ret**F\[0\] *value*, FC**--ret**F\[0\] *value*

  number(s) of returns to include

- FC**-class**F\[0\] *number*, FC**--class**F\[0\] *number*

  classes to keep: 0 (created, never classified), 1 (unclassified), 2 (ground), 3 (low vegetation), 4 (medium vegetation), 5 (high vegetation), 6 (building), 7 (low point, noise), 8 (model key-point), 9 (water), 10 (reserved), 11 (reserved), 12 (overlap)

- FC**-v**F\[0\] *level*, FC**--verbose**F\[0\] *level*

  verbose mode

Advanced options

- FC**-nbin**F\[0\] *value*, FC**--nbin**F\[0\] *value*

  Number of percentile bins for calculating percentile height value profile (=number of output bands)

- FC**-nodata**F\[0\] *value*, FC**--nodata**F\[0\] *value*

  nodata value to put in image if not valid

- FC**-co**F\[0\] *option*, FC**--co**F\[0\] *option*

  Creation option for output file. Multiple options can be specified.

- FC**-ct**F\[0\] *filename*, FC**--ct**F\[0\] *filename*

  colour table in ASCII format having 5 columns: id R G B ALFA (0: transparent, 255: solid)
