public static LineString readLineString ( ByteReader reader , boolean hasZ , boolean hasM ) { LineString lineString = new LineString ( hasZ , hasM ) ; int numPoints = reader . readInt ( ) ; for ( int i = 0 ; i < numPoints ; i ++ ) { Point point = readPoint ( reader , hasZ , hasM ) ; lineString . addPoint ( point ) ; } return lineString ; }
Read a Line String