code: private static String decodeLineString(LineString lineString) {
  		if (lineString == null || lineString.isEmpty()) {
  			return "";
  		}
  		StringBuilder buffer = new StringBuilder();
  		Coordinate[] coordinates = lineString.getCoordinates();
  		for (int i = 0; i < coordinates.length; i++) {
  			buffer.append(getX(coordinates[i]));
  			buffer.append(" ");
  			buffer.append(getY(coordinates[i]));
  			if (i < (coordinates.length - 1)) {
  				buffer.append(", ");
  			}
  		}
  		return "M" + buffer.toString();
  	}
docs: Decode LineString.
  
  @param lineString
  @return