create EXTENSION if not exists pointcloud; INSERT INTO pointcloud_formats (pcid, srid, schema) VALUES (5, 0, ' 1 4 X coordinate as a long integer. You must use the scale and offset information of the header to determine the double value. X int32_t 0.01 2 4 Y coordinate as a long integer. You must use the scale and offset information of the header to determine the double value. Y int32_t 0.01 3 4 Z coordinate as a long integer. You must use the scale and offset information of the header to determine the double value. Z int32_t 0.01 4 2 The intensity value is the integer representation of the pulse return magnitude. This value is optional and system specific. However, it should always be included if available. Intensity uint16_t 1 none ' ); CREATE TABLE IF NOT EXISTS pa_compression_none ( pa PCPATCH(5) ); \d pa_compression_none INSERT INTO pa_compression_none (pa) SELECT PC_Patch(PC_MakePoint(5, ARRAY[x,y,z,intensity])) FROM ( SELECT -127+a/100.0 AS x, 45+a/100.0 AS y, 1.0*a AS z, a/10 AS intensity, a/400 AS gid FROM generate_series(1,100000) AS a ) AS values GROUP BY gid; TRUNCATE pointcloud_formats;