On Mon, Jul 27, 2009 at 8:14 PM, Jeff Whitaker<jsw...@fastmail.fm> wrote:
> Chris Petrich wrote:
>>
>> Hi,
>>
>> I get a Topology Exception with GEOS 3.1:
>>
>> import mpl_toolkits.basemap as bm
>> print "GEOS version: ", bm._geoslib.__geos_version__
>> print "basemap version: ", bm.__version__
>>
>> m = bm.Basemap(width=12000000,height=8000000, \
>>            resolution='l',projection='laea',\
>>            lat_0=55,lon_0=175.)
>>
>> output:
>>
>> GEOS version:  3.1.0-CAPI-1.5.0
>> basemap version:  0.99.3
>> GEOS_ERROR: TopologyException: found non-noded intersection between
>> 3.03025e+06 1.45852e+07, 3.02518e+06 1.45831e+07 and 3.02379e+06
>> 1.45823e+07, 3.02937e+06 1.45857e+07 3.02519e+06 1.45831e+07
>> Segmentation fault
>>
>>
>> Any solutions?
>> cheers
>>
>> Chris
>>
>>
>
> Chris:  This usually happens when you build mix different versions of geos,
> i.e. build with the 3.1 lib but the 2.2.3 headers, or link with the 3.1
> shared lib and then have it pick up the 2.2.3 shared lib at run time.  Do
> you have two versions of geos on your system?  If so, make sure basemap is
> only finding one of them, both at build time and run time.
>
> -Jeff
>
Thanks, Jeff,

that was it.
I had both geos 3.1 and 2.2.3 installed in /usr. basemap found 3.1
during build/installation while _libgeos tried to import 2.2.3 at run
time (this became obvious after I removed the 2.2.3 libraries).
Removed libgeos 2.2.3 and "python setup.py install"-ed basemap 0.99.3
from a fresh tar ball, works like a charm now!

I appreciate the effort you put into developing basemap. The result is awesome.
cheers

Chris

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to