class VectorUtils {

    public static String getWkt(Path pathToShp){
        Driver driver = ogr.GetDriverByName("ESRI Shapefile");
        DataSource dataSource = driver.Open(pathToShp.toString(), 0);
        Layer layer = dataSource.GetLayer(0);
        SpatialReference src = layer.GetSpatialRef();
        src.MorphFromESRI();
        String wkt = src.ExportToPrettyWkt();

        driver.delete();
        dataSource.delete();
        layer.delete();
        src.delete();

        return wkt;
    }

    private  VectorUtils();

}