[postgis-users] Problems with GEOS and Postgis functions working together

strk strk at keybit.net
Tue Nov 11 03:02:04 PST 2003


christian.fuerpass wrote:
> Hello,
> 
> After installing GEOS all GEOS functions are working wonderful, but the 
> "old" functions are not working correct.
> 
> I´ll show an example:
> My sytem:
> * PostgreSQL 7.3.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
> * postgis-cvs (nov 10 2003)
> * proj 4.4.7
> * geos 1.0.0
> 
> My query:
> 
> select envelope('SRID=31297;MULTIPOINT((617640.798913 472905.257284),(633201.0949 484575.479274))');
> 
> My result with GEOS:
> 
> SRID=31297;POLYGON((-1.99461388621126 77.2785797330432,617640.798913 472905.257284,617640.798913 484575.479274,633201.0949 472905.257284,617640.798913 472905.257284))
> 
> My result without GEOS:
> SRID=31297;POLYGON((617640.798913 472905.257284,633201.0949 472905.257284,633201.0949 484575.479274,617640.798913 484575.479274,617640.798913 472905.257284))
> 

There was a bug in the envelope() function causing memory to be
uninitialized - nothing to do with GEOS.

Update your postgis cvs and try again.
Thanks for your contribution.


-- 
pallamondo.net  <-- take a look !



More information about the postgis-users mailing list