Opened 12 years ago

Closed 12 years ago

#511 closed defect (invalid)

Point.distance( Point ) drops core

Reported by: idbill Owned by: strk
Priority: major Milestone: 3.3.4
Component: Core Version: 3.3.3
Severity: Significant Keywords:
Cc:

Description

from python shell:

from django.contrib.gis.geos import Point ul = Point( -122.3664859009467, 47.73815095398494, None, 4326 ) lr = Point( -122.2239295843569, 47.60646046610466, None, 4326 ) lr.distance( ul )

python: GeometryComponentFilter.cpp:35: virtual void geos::geom::GeometryComponentFilter::filter_ro(const geos::geom::Geometry*): Assertion `0' failed. Aborted (core dumped)

I can do this on 2 different (but similar) machines.

Centos 6.2 64-bit

django.get_version()

'1.3.1'

gis.gdal.gdal_version()

'1.7.2'

gis.geos.geos_version()

'3.3.1-CAPI-1.7.1'

Change History (7)

comment:1 by idbill, 12 years ago

These boxes were created from the base and epel repositories.

Django 1.3.1 installed from source

Package gdal-1.7.2-1.el6.x86_64 already installed and latest version Package gdal-python-1.7.2-1.el6.x86_64 already installed and latest version Package gdal-static-1.7.2-1.el6.x86_64 already installed and latest version Package proj-4.7.0-1.el6.x86_64 already installed and latest version Package geos-3.3.1-1.el6.x86_64 already installed and latest version Package geos-python-3.3.1-1.el6.x86_64 already installed and latest version Package ogdi-3.2.0-0.14.beta2.el6.x86_64 already installed and latest version

This works on my Ubuntu box... so I must be missing a library, but i don't know what it is.

Any suggestions would be appreciated.

comment:3 by idbill, 12 years ago

Looking at: http://trac.osgeo.org/geos/ticket/377

I tried with revision 3572 and got the same error.

I tried with (revision 3572 and release 3.3.2): ./configure --enable-python CFLAGS="-O1" CXXFLAGS="-O1"

and the tests appear to be passing.

comment:4 by strk, 12 years ago

Milestone: 3.3.23.3.3

Did you try 3.3.2 ?

comment:5 by idbill, 12 years ago

Version: 3.3.13.3.2

I assumed revision 3572 was 3.3.3 but it is actually 3.3.4alpha, which gave me issues once installed.

I also don't see 3.3.3 available for download on the geos download page.

So, no I did not try 3.3.3. If you provide a link to the source, I'll try it.

comment:6 by strk, 12 years ago

Milestone: 3.3.33.3.4
Version: 3.3.23.3.3

comment:7 by strk, 12 years ago

Resolution: invalid
Status: newclosed

I think it's a compiler bug (same as #377)

Note: See TracTickets for help on using tickets.