[geos-devel] Re: why this exception happened

jingping.xie jingping.xie at jicoux.com
Tue Apr 26 22:25:38 EDT 2005


Thanks a lot,,strk.

I compiled the veriosn of "[2004/12/16] geos-2.1.1.tar.bz2" with 
VisualStudio.

and it got complie error, so I  made the following change.

$B-!(Bchange the file name of "source\headers\geos\platform.h.vc" to 
"source\headers\geos\platform.h",
"source\headers\geos\version.h.in" to "source\headers\geos\version.h".

$B-"(Bdownload "Stackwalker.h","Stackwalker.cpp" from www.codeproject.com , then 
add them to the folder of "\source\test"

$B-#(Bremove the following files from solution
remove 
"BasicCoordinateList.cpp","CoordinateList.cpp","CoordinateListFactory.cpp","PointCoordinateList.cpp" 
from "Source File\geom\"
remove "CPCLException.cpp","CustomPointCoordinateList.cpp" from "Source 
File\examples\"

$B-$(Badd the following files to solution
add "Profiler.cpp" to "Source Files\util"
add 
"CoordinateSequenceFactory.cpp","DefaultCoordinateSequenceFactory.cpp","DefaultCoordinateSequence.cpp","CoordinateSequence.cpp" 
to "Source Files\geom"

add 
"ElevationMatrix.cpp","ElevationMatrixCell.cpp","ElevationMatrixFilter.cpp" 
to "Source Files\geom\operation\overlay"

that's all
jingping xie



>Xie, I tried with current CVS and the exception is not thrown.
>What version are you using ?
>--strk;

>On Tue, Apr 26, 2005 at 04:20:25PM +0900, jingping.xie wrote:
>> All
>>
>> When I make two polygon booled operation for example union operation,
>> somtimes one exception happened.
>>
>> the two polygon is all valid, I think it shouldn't get a excetion if I 
>> union >
>> two polygon anyway.
>>
>> Why it happened and how to solve it?
>>
>>
>>
>> the following is test.xml written by me:
>>
>> <run>
>>   <precisionModel type="FLOATING" />
>> <case>
>>   <desc>A/A-3-2-1: two polygons touching at multiple points
>> [dim(0){A.A.Bdy.CP = B.A.Bdy.CP}, dim(0){A.A.Bdy.V = B.A.Bdy.V}]</desc>
>>   <a>POLYGON( (-40489.278096372727 4372.207298020518,-40296.371428571423
>> 4384.328571428571,-40288.871021184132 
>> 4292.242313959804,-40473.478571428568
>> 4280.385714285714,-40489.278096372727 4372.207298020518))</a>
>>   <b>POLYGON( (-40539.639285714278 4369.042857142857,-40372.370476402626
>> 4379.553177980468,-40369.146156502444 
>> 4148.052935215692,-40519.282142857141
>> 4149.947619047619,-40539.639285714278 4369.042857142857))</b>
>> <test>
>>   <op name="union" arg1="A" arg2="B" arg3="FF2F01212">true</op>
>>   </test>
>>   </case>
>> </run>
>>
>> this is the exception message:
>>
>> Exception: TopologyException: no outgoing dirEdge found
>> (-40539.6,4369.04,1.7e-3
>> 08)
>>
>> thanks
> jingping xie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20050427/497d533d/attachment.html


More information about the geos-devel mailing list