tds/src/main/java/thredds/server/wfs/GMLFeatureWriter.java
private String writeLine(Line line) {

        String xml = "";
        xml += "<gml:LineString><gml:posList>";

        for (Point point: line.getPoints()) {
            xml += point.getX() + " " + point.getY() + " ";
        }

        xml += "</gml:posList></gml:LineString>";

        return xml;
    }
private String writeLine(Line line) {

        String xml = "";
        xml += "<gml:LineString><gml:posList>";

        for (Point point: line.getPoints()) {
            xml += point.getX() + " " + point.getY() + " ";
        }

        xml += "</gml:posList></gml:LineString>";

        return xml;
    }
private String writeLine ( Line line ) { String xml = "" ; xml += "<gml:LineString><gml:posList>" ; for ( Point point : line . getPoints ( ) ) { xml += point . getX ( ) + " " + point . getY ( ) + " " ; } xml += "</gml:posList></gml:LineString>" ; return xml ; }
Takes in a line and iterates through all its points, writing the posList to xml

@param line the line
@return the xml
Takes in a line and iterates through all its points writing the posList to xml