\connect nombrebd
ST_Distance(
geometry
g1, geometry
g2)
;SELECT ST_Distance( ST_Transform(ST_GeomFromText('POINT(-72.1235 42.3521)',4326),32717), ST_Transform(ST_GeomFromText('LINESTRING(-72.1260 42.45, -72.123 42.1546)', 4326),32717) ); st_distance
en metros
# SELECT PostGIS_version(); postgis_version --------------------------------------- 2.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1 (1 row)
No hay comentarios:
Publicar un comentario