I use las2tin to generate tin(in .shp format) for a las.
las2tin64.exe -i input.las -o tin.shp
Then I use shp2pgsql to create a sql with this shape file:
shp2pgsql -s 4326 tin.shp temp_table > tin.sql
But this gives me error:
Unknown geometry type: 31
How can I debug this issue?
PS:
This worked for me:
First, use ogr2ogr utility(comes packed with postgis) to generate intermediate las containing geometry compatible with postgis
ogr2ogr -f "ESRI Shapefile" -nlt POLYGONZ -explodecollections output.shp input.shp
Then run shp2pgsql with this shp file:
shp2pgsql -s -I output.shp temp_table > tin.sql