tds/src/main/java/thredds/server/wfs/GMLFeatureWriter.java
public String writeFeature(SimpleGeometry geom) {

        if (geom instanceof Point) return writePoint((Point)geom);
        else if (geom instanceof Line) return writeLine((Line)geom);
        else if (geom instanceof Polygon) return writePolygon((Polygon)geom);
        else return null;

    }
public String writeFeature(SimpleGeometry geom) {

        if (geom instanceof Point) return writePoint((Point)geom);
        else if (geom instanceof Line) return writeLine((Line)geom);
        else if (geom instanceof Polygon) return writePolygon((Polygon)geom);
        else return null;

    }
public String writeFeature ( SimpleGeometry geom ) { if ( geom instanceof Point ) return writePoint ( ( Point ) geom ) ; else if ( geom instanceof Line ) return writeLine ( ( Line ) geom ) ; else if ( geom instanceof Polygon ) return writePolygon ( ( Polygon ) geom ) ; else return null ; }
Checks the type of the Simple Geom and calls the appropriate method to build the xml

@param geom the Simple Geom
@return the xml
Checks the type of the Simple Geom and calls the appropriate method to build the xml