public static void writeLineString ( ByteWriter writer , LineString lineString ) throws IOException { writer . writeInt ( lineString . numPoints ( ) ) ; for ( Point point : lineString . getPoints ( ) ) { writePoint ( writer , point ) ; } }
Write a Line String