não fazia ideia que o <-> faz uso do índice qd se usa o order by... podia-se
usar limit 1 em vez de limit 10 nessa query e obtinha-se o mais próximo...

mas o problema de termos de usar uma geometria estática mantém-se? se
calhar, só mesmo usando um script que cria o sql dinamicamente para cada
registo...



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Postgis-2-0-Analise-de-Vizinho-mais-proximo-usando-index-GIST-funcao-tp4945669p4952823.html
Sent from the OSGeo Portuguese Local Chapter mailing list archive at Nabble.com.
_______________________________________________
Portugal mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/portugal

Responder a