Ticket #390 (closed defect: fixed)

Opened 7 years ago

Last modified 4 years ago

GEOS: TopologyException occuring with identify tool

Reported by: neteler@… Owned by: gsherman
Priority: major: does not work as expected Milestone:
Component: Vectors Version: Trunk
Keywords: geos vector shape Cc: neteler@…
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

Hi,

via IRC I reported this problem and "wonder" fixed something already:  http://svn.qgis.org/trac/changeset/6071

I have now recompiled QGIS and latest 2.x GEOS. The identification now seems to work, but still these warnings appear:

Warning: GEOS: TopologyException: side location conflict (4.33168e+06,2.52514e+06)
Warning: GEOS: TopologyException: side location conflict (4.34597e+06,2.51173e+06)
Warning: GEOS: TopologyException: side location conflict (4.39699e+06,2.59723e+06)

The sample SHAPE file is here:  http://mpa.itc.it/markus/tmp/qgis/ It comes with some huge multipolygons.

I also contacted strk who told me (pasted with permission):

strk*refractions.net wrote on 11.11.2006 11:32:
> The topology exceptions are not considered real bug, but rather
> a limit of the algorithms. New algorithms in GEOS-3.0.0 
> use some heuristics on exception and try to reapply the operation
> on a sligtly modified input to reduce likelyness of robustness issues.
> 
> I think qgis should be using the C-API, where all of this comes for
> free (and GEOS-2.2.x should have the C-API already, so qgis will be
> binary compatible back to that version of geos). Alternatively you
> can probably still using the C++ api and make it compatible with both
> 2.2.x and 3.0.0 geos by adding some 'using namespace' directives IFF
> major_version > 2.
> 
> --strk;

Best regards, Markus

Change History

Changed 6 years ago by anonymous

  • milestone set to Version 0.9 Release

Changed 6 years ago by mhugent

  • status changed from new to closed
  • status_info unset
  • resolution set to fixed

I'm closing this ticket as it is possible to compile and link qgis against geos 3 (with -DPEDANTIC=off)

Changed 4 years ago by anonymous

  • milestone Version 0.9 deleted

Milestone Version 0.9 deleted

Note: See TracTickets for help on using tickets.