code: 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;
  	}
docs: Read a Line String
  
  @param reader
  @param hasZ
  @param hasM
  @return line string