[postgis-users] ST_Union and 8.3?

Obe, Regina robe.dnd at cityofboston.gov
Wed Mar 19 07:00:44 PDT 2008


This is a known issue which I think Mark Cave-Ayland is working on.

I think Mike Leahy had suggested using 

ST_MemUnion as a work around.

Hope that helps,
Regina

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
William Temperley
Sent: Wednesday, March 19, 2008 9:42 AM
To: postgis-users at postgis.refractions.net
Subject: [postgis-users] ST_Union and 8.3?

Hello all

I'm having problems with ST_Union.

I get the error:
ERROR: Operation on mixed SRID geometries
SQL state: XX000

With the queries:
select st_union(the_geom) from tiles
select st_union(st_transform(the_geom, 4326)) from tiles

The second query cannot possibly have mixed srids!

st_collect works fine.
I've tried isvalid() and all is valid.
This works on the production server fine.

My version:
"1.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"
"PostgreSQL 8.3.0, compiled by Visual C++ build 1400"

Example inserts below:

insert into tiles values('2016~1326',
SetSRID(st_makebox2d(st_makepoint(-2.8125,53.38332836757156),st_makepoin
t(-2.724609375,
53.4357192066942)), 4326));insert into tiles values('2016~1327',
SetSRID(st_makebox2d(st_makepoint(-2.8125,53.33087298301704),st_makepoin
t(-2.724609375,
53.38332836757156)), 4326))

Any ideas what's wrong here?

Cheers

Will
_______________________________________________
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