Class SubHandlerLineString


  • public class SubHandlerLineString
    extends SubHandler
    Creates a simple OGC LineString element.
    Author:
    Ian Turton, CCG, Rob Hranac, Vision for New York
    • Constructor Detail

      • SubHandlerLineString

        public SubHandlerLineString()
        Empty constructor.
    • Method Detail

      • addCoordinate

        public void addCoordinate​(Coordinate coordinate)
        Adds a coordinate to the LineString.
        Specified by:
        addCoordinate in class SubHandler
        Parameters:
        coordinate - Coordinate to add to LineString.
      • isComplete

        public boolean isComplete​(String message)
        Determine whether or not this LineString is ready to be created.
        Specified by:
        isComplete in class SubHandler
        Parameters:
        message - The geometry type.
        Returns:
        Ready for creation flag.
      • create

        public Geometry create​(GeometryFactory geometryFactory)
        Create the LineString.
        Specified by:
        create in class SubHandler
        Parameters:
        geometryFactory - The geometry factory needed to do the build.
        Returns:
        JTS LineString geometry.