'Unknown geometry type: 31' error with shp2pgsql

23 views
Skip to first unread message

Manish G

unread,
Jun 17, 2025, 3:40:53 PMJun 17
to LAStools - efficient tools for LiDAR processing
Hi All,

I have raised a SO question here.

Summary:
I generate a .shp file using las2tin, and then I try to generate a sql script to insert generated .shp into postgres using shp2pgsql utility that comes with postgis. But it fails to do so with error
'Unknown geometry type: 31'.

What may be the cause here?

Manish

Jochen Rapidlasso

unread,
Jun 17, 2025, 3:52:03 PMJun 17
to LAStools - efficient tools for LiDAR processing
Hi Manish,
las2tin generates SHP files with MultiPatch polygons (Type 31). It seems shp2pgsql does not support this kind of polygons.

Cheers,

Jochen @rapidlasso

Reply all
Reply to author
Forward
0 new messages