Hi, we use postgres(14.22) with postgis(3.4.3) for our database backend. I've been looking through our datasets to figure out what we can optimize. I'm looking at how coordinates are being stored.
Because x/y/z's are stored as doubles, they have precision to 15 places. As you all know this is far beyond whats needed for any practical coordinate system. Would reducing this make any difference in performance? Is it even possible to alter the table to reduce permanently? I can use st_reduceprecision on some test datasets to see the difference, but new inserts just use the default precision level.
My second question is about Z's. We have some Z-enabled datasets and I'm seeing some weird values. Like negative values or astronomically high values which would put points into low earth orbit. Kinda funny but not valid elevations. I'm not sure how these are being generated. We only allow our end users to edit through web services, and for z-enabled features I have the default set to 0 through the feature service.
And for the some of these strange values I know the user has not entered a z elevation, so the insert value should be 0. Maybe some coordinate system conflict? Though theres nothing unusual about our setup. Our projected coordinate system is nad83 stateplane, our vertical CS is navd88(m). Has anyone seen this issue with their data?
Thank you