Hi,<br>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.<br>So I had:<br>- geos-svn installed from source;<br>- gdal installed from an Ubuntu package, with a previous version of geos.<br>
<br>So the solution would be, either to have everything installed from (compatible) packages, or everything installed from source. <br>As I am a Slackware user, I went to the second one :-)<br>So:<br>- compile and install geos from svn (that was done!)<br>
- recompile gdal to pick up the latest geos version (which involved not only a configure, but also a clean) and install it;<br><br>And it&#39;s working! :-)<br>                                         Jo<br><br><br><div class="gmail_quote">
2009/7/21  <span dir="ltr">&lt;<a href="mailto:geos-devel-request@lists.osgeo.org">geos-devel-request@lists.osgeo.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send geos-devel mailing list submissions to<br>
        <a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:geos-devel-request@lists.osgeo.org">geos-devel-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:geos-devel-owner@lists.osgeo.org">geos-devel-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of geos-devel digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Computational Geometry Problem + Exception (Mateusz Loskot)<br>
   2. Re: mapserver crash on exit, with svn head geos (strk)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 21 Jul 2009 01:10:46 +0200 (CEST)<br>
From: &quot;Mateusz Loskot&quot; &lt;<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>&gt;<br>
Subject: Re: [geos-devel] Computational Geometry Problem + Exception<br>
To: &quot;GEOS Development List&quot; &lt;<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:53125.90.195.2.67.1248131446.squirrel@loskot.net">53125.90.195.2.67.1248131446.squirrel@loskot.net</a>&gt;<br>
Content-Type: text/plain;charset=iso-8859-2<br>
<br>
Jo wrote:<br>
&gt; And running the program in a third computer, I get a different exception:<br>
<br>
<br>
Backtrace without a piece of code of program that caused it is useless.<br>
<br>
&gt; Anyway, it would be great if anybody had some ideas why the program is<br>
&gt; Could it be because the geos version installed is different from the geos<br>
&gt; version that was used when compiling gdal?<br>
<br>
Very possible.<br>
<br>
&gt; (In ubuntu I have some gdal binaries I have no idea-where-they-came-from<br>
&gt; and<br>
<br>
They come from Ubuntu official packages, likely.<br>
<br>
&gt; a svn version of geos...)<br>
<br>
You should not pass GEOS objects between your program linked against<br>
GEOS SVN and GDAL which uses older version of GEOS.<br>
Both should use the same version of GEOS.<br>
<br>
Solution:<br>
1) Build GDAL with GEOS SVN if you want to use GEOS SVN in your program.<br>
2) Link your program against GEOS of the same version used as GDAL uses.<br>
If GDAL is installed from Ubuntu packages, then simply install GEOS<br>
dev packages too and use it.<br>
<br>
Best regards,<br>
--<br>
Mateusz Loskot<br>
<a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 21 Jul 2009 16:43:12 +0200<br>
From: strk &lt;<a href="mailto:strk@keybit.net">strk@keybit.net</a>&gt;<br>
Subject: Re: [geos-devel] mapserver crash on exit, with svn head geos<br>
To: GEOS Development List &lt;<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a>&gt;<br>
Cc: <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
Message-ID: &lt;<a href="mailto:20090721144312.GC75089@keybit.net">20090721144312.GC75089@keybit.net</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
On Fri, Jul 17, 2009 at 04:57:01PM -0400, David Fuhry wrote:<br>
&gt; With GEOS from svn, mapserver crashes on calling exit(), as GEOS<br>
&gt; destroys the static string defined in GEOS&#39; WKBReader.cpp:<br>
&gt;<br>
&gt; string WKBReader::BAD_GEOM_TYPE_MSG = &quot;bad geometry type encountered in &quot;;<br>
<br>
Please check that mapserver is not linked to 2 different versions<br>
of the geos lib. I have had a similar problem with qgis/gdal due<br>
to this problem. A rebuild of both packages fixed it for me.<br>
<br>
--strk;<br>
<br>
 Free GIS &amp; Flash consultant/developer      ()  ASCII Ribbon Campaign<br>
 <a href="http://foo.keybit.net/%7Estrk/services.html" target="_blank">http://foo.keybit.net/~strk/services.html</a>  /\  Keep it simple!<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
<br>
End of geos-devel Digest, Vol 81, Issue 20<br>
******************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>&quot;#define QUESTION ((bb) || !(bb))&quot;  (Shakespeare)<br><br>