[postgis-users] problem with st_collect()
Kevin Neufeld
kneufeld at refractions.net
Thu Aug 20 09:39:37 PDT 2009
Be careful with ST_Collect. As the name implies, it will collect all the geometries in the set into a single geometry
object. If your table is gigabytes in size, running over the whole table will create a single geometry collection that
is gigabytes in size ... which in all likelihood is really rather useless in any GIS application and will probably
overwhelm your postgresql instance.
ST_Collects is definitely useful, but just be sure you really want a single (potentially very large and clumsy) geometry
object.
-- Kevin
Marc-André Trottier wrote:
> hi!
> i have a problem with this request :
> select st_collect(geometryN(setsrid(the_geom, 32198),1)) from 'table_name';
>
> this will return no results if "the_geom" contain too much rows or
> "the_geom" are too complex.
>
> How can i solve this problem ?
>
> thanks
>
> Marc-andré
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list