Re: PostGIS return multiple points

Поиск
Список
Период
Сортировка
От ludwig@kni-online.de
Тема Re: PostGIS return multiple points
Дата
Msg-id 299605504.242991.1288281173099.JavaMail.tomcat55@mrmseu0.kundenserver.de
обсуждение исходный текст
Ответ на PostGIS return multiple points  (trevor1940 <antonys@nsom.org.uk>)
Список pgsql-general

Just some thoughts:- create a multipoint with 100 vertices instead of a single point and query once with st_Intersect
- prepare the single-point-query and execute the prepared query 100 times with the changing coordinates

Ludwig



----- Ursprüngliche Nachricht -----
Von: trevor1940
Gesendet: 28.10.10 10:00 Uhr
An: pgsql-general@postgresql.org
Betreff: [GENERAL] PostGIS return multiple points

Hi I have a PostGIS table and I wish to get the location/name of multiple points at once the command for selecting one point is select PolyName from MyPolygones where st_Contains(the_geom, GeomFromText('point($LAT $LONG)4326'); where $LAT $LONG are perl varables So how can i do this if iI have 100 points without hitting the database 100 times? -- View this message in context: http://postgresql.1045698.n5.nabble.com/PostGIS-return-multiple-points-tp3240107p3240107.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления:

Предыдущее
От: Ozz Nixon
Дата:
Сообщение: Re: Why Select Count(*) from table - took over 20 minutes?
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Why Select Count(*) from table - took over 20 minutes?