public static String toGeojson ( Geometry geom ) { StringBuilder sb = new StringBuilder ( ) ; toGeojsonGeometry ( geom , sb ) ; return sb . toString ( ) ; }
Convert the geometry to a GeoJSON representation .