Hello, Is there a way to get the OGRGeometry object out of a GDALDataset object in c++? My GDALDataset is a raster and i would like to get the associated OGRPolygon out of it. I've used: srcDataset->GetLayer(0)->GetNextFeature()->GetGeometryRef()->toPolygon() However i keep getting segmentation faults error. Any help would be appreciated. Thanks
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev