Fair enough I am pretty sure the poor ring builder just starts walking 
around the two "holes" (in order to have a longer path) and thus gets 
confused.

Interesting problem (finding the largest ring to act as the outer edge), 
I was thinking you could make the choice based on length.... But you 
could have a very complicated start in the middle of a circle and the 
start would be longer in length.

Hopefully Sanjay or Mr Roehrig has a suggestion.

Cheers,
Jody
> That's correct Jody, the resulting geometry looks pretty much like the 
> ascii art in your email.  The top point of the "bow tie" that crosses 
> the edge is the point that causes the ring consistency check to fail.
>
> Graham.
>
>
> Jody Garnett wrote:
>
>> Perhaps it is time to call for another IRC meeting of the "Geometry 
>> Fan Club"?
>>
>> If I understand you have found one talented bug - our construction of 
>> Rings is not quite up to snuff.
>> +------------+--------+
>> |           / \       |
>> |          +   +      |
>> |           \ /       |
>> |            +        |
>> |           / \       |
>> |          /   \      |
>> |         +-----+     |
>> +---------------------+
>> Kind of like the classic "bow tie" test case, but this time with 
>> holes touching the outer edge.
>>
>> Nasty.
>>
>> Anyone have any ideas? Or are we off to look at the JTS codebase ....
>>
>> Cheers,
>> Jody


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to