Exactly what I needed - thanks Thomas!
--john
On Tue, May 13, 2014 at 3:15 PM, Thomas Leduc <[email protected]>wrote:
> "To test the orientation directly", I would suggest:
> CGAlgorithms.isCCW(Coordinate[] ring)
> (Computes whether a ring defined by an array of Coordinates is oriented
> counter-clockwise).
>
>
>
> On Tue, May 13, 2014 at 9:17 PM, John Cartwright - NOAA Federal <
> [email protected]> wrote:
>
>> Hello All,
>>
>> I have a multipart polygon geometry that is produced from an intersection
>> or union operation and am finding that the parts of that geometry don't
>> have the same CCW orientation as the geometries going into the operation.
>> I guess this is understandable based on information in the FAQ (
>> http://tsusiatsoftware.net/jts/jts-faq/jts-faq.html#B6) explaining how
>> JTS is not in agreement with the current OGC Simple Feature spec regarding
>> exterior rings being in CCW order.
>>
>> The Geometry#reverse method seems a convenient way to re-orient the
>> rings, but I don't see anything to test the orientation directly or infer
>> it from testing interior vs exterior ring.
>>
>> Am I missing something?
>>
>> Thanks!
>>
>> --john
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform
>> available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Jts-topo-suite-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>>
>> --
>> Thomas LEDUC
>> <https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user>
>
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user