You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with double precision points when returning points with PC_AsText #310
createtablesource_point_clouds_partitioned
(
id bigserialnot null,
patch pcpatch not null
);
Create a patch with one point:
INSERT INTO source_point_clouds_partitioned (patch) VALUES(PC_MakePatch(9, ARRAY[525282.053, 7179377.239, -13.125]));
Retrieve point:
SELECT PC_AsText(patch) pa from source_point_clouds_partitioned;
Output:
{"pcid":9,"pts":[[525282,7.17938e+06,-13.125]]}
Note the discrepancy between Y value inserted and retrieved. It was rounded from 7179377.239 to 7179380.
How can I store coordinates without loss of precision?
Activity