[postgis-users] Collect vs. ST_Collect GeomUnion vs ST_GeomUnion
Obe, Regina
robe.dnd at cityofboston.gov
Wed Aug 22 04:58:25 PDT 2007
Hi Mark,
I used your install exe. The recreated template_postgis() is right and
has those aggregate functions. At first I thought maybe I ran the wrong
lwpostgis_upgrade.sql file after upgrading even though the version
changed from "needs upgrade". So I verified the upgrade file had changed
and reran again.
Looking at the upgrade file - I don't see definition of the new
aggregates, although as you said those aggregates do appear in
lwpostgis.sql file
Here are the details of my install
Before the installation I was running 1.2.1
1) Ran your install. (well it failed first time because presumably I had
something running using the dlls)
2) Restarted postgresql service
3) Reran install - ran okay this time - said it would drop
template_postgis responded yes
4) Completed successfully
5) Restarted my postgresql service
6) Did a select postgis_full_version() on the db I had - I forget what
exactly it said but it did say "need upgrading"
6) Ran the lwpostgis_upgrade.sql file in the
share/contrib/postgis/lwpostgis_upgrade.sql ( the file is dated
8/18/2007 5:13 AM which I assume is when you built it).
Now the first time I ran this I was actually going thru terminal
services so I thought maybe I had PgAdmin open on my local pc instead of
the server I was upgrading, but it did get rid of the need upgrading
part after install so I presumed it was okay and changed to
"POSTGIS="1.3.1" GEOS="3.0.0rc4-CAPI-1.3.3" PROJ="Rel. 4.5.0, 22 Oct
2006" USE_STATS"
7) Ran the tests I mentioned which failed
8) Reran the upgrade file verifying I had the correct one.
Thanks,
Regina
-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Mark
Cave-Ayland
Sent: Wednesday, August 22, 2007 3:48 AM
To: PostGIS Users Discussion
Subject: Re: [postgis-users] Collect vs. ST_Collect GeomUnion vs
ST_GeomUnion
On Tue, 2007-08-21 at 17:40 -0400, Obe, Regina wrote:
> I just installed the new version of 1.3.1 and noticed something which
> I'm not sure was intended or not or if something went amiss with my
> upgrade.
>
> Before there used to be 2 formats of collect
>
> That which takes two geometries used like so - which I see has an
> alias st_collect
>
> st_collect(geom1, geom2)
>
> and there was another variant of collect which is used as an aggregate
> function
>
> SELECT collect(geom)
> FROM sometable
> GROUP BY somefield
>
> In my version the old collect aggregate function does not seem to have
> been aliased as well to st_collect.
>
> E.g. doing
>
> SELECT st_collect(geom)
> FROM sometable
> GROUP BY somefield
>
> gives me an error while the old
>
> SELECT collect(geom)
> FROM sometable
> GROUP BY somefield
>
> still works.
>
> I have the same issue with geomunion vs. st_geomunion
>
> Am I missing something?
>
> Thanks,
> Regina
Hi Regina,
I can see the st_collect() in the lwpostgis.sql.in file, so it should be
defined for a new installation. Have you got more information on how you
performed your upgrade?
Kind regards,
Mark.
--
ILande - Open Source Consultancy
http://www.ilande.co.uk
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.
More information about the postgis-users
mailing list