[postgis-users] postgis help!!

Michael Fuhr mike at fuhr.org
Tue May 16 09:46:34 PDT 2006


On Tue, May 16, 2006 at 10:32:36AM -0600, Bruce Rindahl wrote:
> The Translate function changed from 8.1.1 to 8.1.2.  Everyone please state
> what version of PostGIS you are using to help track this down.

Do you mean 1.0 and 1.1 (PostGIS versions, not PostgreSQL versions)?
Here's what I get for the same test case on a server running
PostgreSQL 8.0.7, PostGIS 1.0.7cvs, and GEOS 2.1.5:

CREATE TABLE foo (id serial PRIMARY KEY);
SELECT AddGeometryColumn('foo', 'geom', -1, 'GEOMETRY', 2);
INSERT INTO foo (geom) VALUES (GeomFromText('LINESTRING(-177 -44,-176 -43)'));
UPDATE foo SET geom = Translate(geom, 360.0, 0.0, 0.0);
SELECT AsText(geom), AsText(Envelope(geom)) FROM foo;
           astext            |                       astext                       
-----------------------------+----------------------------------------------------
 LINESTRING(183 -44,184 -43) | POLYGON((183 -44,183 -43,184 -43,184 -44,183 -44))
(1 row)

-- 
Michael Fuhr



More information about the postgis-users mailing list