[Gfoss] postgis - envelope restituisce points

Sandro Santilli strk a keybit.net
Gio 24 Mar 2011 15:14:19 CET


On Thu, Mar 24, 2011 at 03:08:33PM +0100, Benedetto Porfidia wrote:
> Salve a tutti,
> stò provando la seguente query su 2 db postgres/postgis 9.0/1.5 e 
> 8.2/1.4(?)  su una stessa tabella clonata sui due db.
> 
> SELECT DISTINCT ON (mytable.my_id) mytable.my_id, 
> asText(envelope(mytable.the_geom)) AS the_geom
>    FROM mytable
>   ORDER BY mytable.my_id;
> 
> Le geometrie di mytable.the_geom sono solo punti.
> 
> Il problema è che  col db vecchia versione, la funzione envelope 
> restituisce correttamente i POLYGON dei bbox dei punti raggruppati per 
> my_id, mentre con la nuova versione mi restituisce POINT.

PUo' darsi tu stia confondendo "envelope" con "extent".
Il primo e' una funzione, la seconda un aggregatore.

--strk; 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html


Maggiori informazioni sulla lista Gfoss