| LineIsSingleSegmentFeatureValidation purpose.
Tests to see if a LineString is made of only one segment, meaning it only
has two points. If the LineString has more than two points, the test fails.
This method has been extended to work with MultiLineStrings - this is
the most common format that shapefile appears in and as such is forcing
our hand.
Example Use:
LineIsSingleSegmentFeatureValidation x = new LineIsSingleSegmentFeatureValidation("noSelfIntersectRoads", "Tests to see if a
geometry intersects itself", new String[] {"road"});
author: bowens, Refractions Research, Inc. author: $Author: jive $ (last modification) version: $Id: LineMustBeASinglePartValidation.java 27862 2007-11-12 19:51:19Z desruisseaux $ |