I am working with "SpatiaLite" and i have a table with a geometric column. this column is a BLOB with POINTS. for example to insert a point i do:
"INSERT INTO exampletable(geom) VALUES(GeomFromText('POINT(-101.1 46.6)', 4326))"
I want to get all points in this table that the distance between them is less than some distance (3000m for example).
I have in this table 1800 row with different points.
Thx
You can use the same table twice in your query. And the spatial index is very useful here.
Try with this (it's quite self-explaining):