Quantcast
Channel: Forum SIG - Systèmes d'Information Géographique et Géomatique
Viewing all articles
Browse latest Browse all 8030

[PostGreSQL] correction de fonctions postgis

$
0
0
Bonjour,
est ce que quelqu'un pourrait m'aider à corriger cette requête
Code:

$sql = "SELECT id, source, target, the_geom, st_distance(the_geom, st_GeomFromText('POINT(".$lonlat[0]." ".$lonlat[1].")', 4326)) AS dist
                                              FROM ".TABLE."
                                              WHERE the_geom && st_setsrid('BOX3D(".($lonlat[0]-0.1)."".($lonlat[1]-0.1).",".($lonlat[0]+0.1)."".($lonlat[1]+0.1).")'::box3d, 4326)
                                              ORDER BY dist LIMIT 1";

Merci d'avance et à bientôt

Ps: postgis version 2.0.1

Viewing all articles
Browse latest Browse all 8030

Trending Articles