SELECT AddGeometryColumn ('public','ride','end_geom',3857,'POINT',2); update ride set end_geom=ST_Transform(ST_SetSRID(ST_Point(end_location_long,end_location_lat),4326),3857); CREATE INDEX idx_ride_end_geom ON ride USING gist(end_geom);
on a plane - Points, Polygons, LineStrings, etc. • Area and distance calculation, buffer computation, geometric simplification, spatial index with quadtree and STR-tree, convex hull, spatial graphs, WKT/WKB/GML support and many more features • GEOS, a port of JTS into C/C++, is widely used and is present in QGIS, PostGIS, R, GeoDjango etc.