[geos-devel] Computational Geometry Problem + Exception (Mateusz Loskot)

Jo doublebyte at gmail.com
Sat Jul 25 12:35:34 EDT 2009


Hi,
Just to let you know, the problem I had, was related to the fact that my
gdal libraries were compiled with an older version of geos.
So I had:
- geos-svn installed from source;
- gdal installed from an Ubuntu package, with a previous version of geos.

So the solution would be, either to have everything installed from
(compatible) packages, or everything installed from source.
As I am a Slackware user, I went to the second one :-)
So:
- compile and install geos from svn (that was done!)
- recompile gdal to pick up the latest geos version (which involved not only
a configure, but also a clean) and install it;

And it's working! :-)
                                         Jo


2009/7/21 <geos-devel-request at lists.osgeo.org>

> Send geos-devel mailing list submissions to
>        geos-devel at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.osgeo.org/mailman/listinfo/geos-devel
> or, via email, send a message with subject or body 'help' to
>        geos-devel-request at lists.osgeo.org
>
> You can reach the person managing the list at
>        geos-devel-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of geos-devel digest..."
>
>
> Today's Topics:
>
>   1. Re: Computational Geometry Problem + Exception (Mateusz Loskot)
>   2. Re: mapserver crash on exit, with svn head geos (strk)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 21 Jul 2009 01:10:46 +0200 (CEST)
> From: "Mateusz Loskot" <mateusz at loskot.net>
> Subject: Re: [geos-devel] Computational Geometry Problem + Exception
> To: "GEOS Development List" <geos-devel at lists.osgeo.org>
> Message-ID: <53125.90.195.2.67.1248131446.squirrel at loskot.net>
> Content-Type: text/plain;charset=iso-8859-2
>
> Jo wrote:
> > And running the program in a third computer, I get a different exception:
>
>
> Backtrace without a piece of code of program that caused it is useless.
>
> > Anyway, it would be great if anybody had some ideas why the program is
> > Could it be because the geos version installed is different from the geos
> > version that was used when compiling gdal?
>
> Very possible.
>
> > (In ubuntu I have some gdal binaries I have no idea-where-they-came-from
> > and
>
> They come from Ubuntu official packages, likely.
>
> > a svn version of geos...)
>
> You should not pass GEOS objects between your program linked against
> GEOS SVN and GDAL which uses older version of GEOS.
> Both should use the same version of GEOS.
>
> Solution:
> 1) Build GDAL with GEOS SVN if you want to use GEOS SVN in your program.
> 2) Link your program against GEOS of the same version used as GDAL uses.
> If GDAL is installed from Ubuntu packages, then simply install GEOS
> dev packages too and use it.
>
> Best regards,
> --
> Mateusz Loskot
> http://mateusz.loskot.net
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 21 Jul 2009 16:43:12 +0200
> From: strk <strk at keybit.net>
> Subject: Re: [geos-devel] mapserver crash on exit, with svn head geos
> To: GEOS Development List <geos-devel at lists.osgeo.org>
> Cc: mapserver-dev at lists.osgeo.org
> Message-ID: <20090721144312.GC75089 at keybit.net>
> Content-Type: text/plain; charset=us-ascii
>
> On Fri, Jul 17, 2009 at 04:57:01PM -0400, David Fuhry wrote:
> > With GEOS from svn, mapserver crashes on calling exit(), as GEOS
> > destroys the static string defined in GEOS' WKBReader.cpp:
> >
> > string WKBReader::BAD_GEOM_TYPE_MSG = "bad geometry type encountered in
> ";
>
> Please check that mapserver is not linked to 2 different versions
> of the geos lib. I have had a similar problem with qgis/gdal due
> to this problem. A rebuild of both packages fixed it for me.
>
> --strk;
>
>  Free GIS & Flash consultant/developer      ()  ASCII Ribbon Campaign
>  http://foo.keybit.net/~strk/services.html<http://foo.keybit.net/%7Estrk/services.html> /\  Keep it simple!
>
>
> ------------------------------
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>
> End of geos-devel Digest, Vol 81, Issue 20
> ******************************************
>



-- 
"#define QUESTION ((bb) || !(bb))"  (Shakespeare)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20090725/dd533f5c/attachment.html


More information about the geos-devel mailing list