I am new to PostGIS. I am looking to have a simple bounded (-200 < x, y, z < 200) data set of 1,000,000 points on a plain XYZ graph. The only query I need is a fast K nearest neighbors and all neighbors such that the distance is less than < N. It seems that PostGIS has a LOT of extra features that I do not need.
- What do SRID do I need? One that does not concern with feet or meters.
- Am I right that I need to use the function ST_3DDistance to query for the K nearest neighbors with LIMIT K? or with a maximum distance of N.
- To add a column, I need to use
SELECT AddGeometryColumn ('my_schema','my_spatial_table','geom_c',4326,'POINT',3, false);
. Is that correct?- What is the difference between a 3D point and a PointZ?
- Will AddGeometryColumn ensure that my distance query is fast?
- Is PostGIS the right choice for my use case? The rest of my DB is already integrated with PostgreSQL
Thanks!