1

Has anyone ever got the cutline to work in C++?

I have it working off the command line no problem, but it doesn't seem to do anything when I populate that argument in C++ as below:

*//Create a OGRGeometry variable
OGRGeometry *thisGeom;
//parse an input WKT to char*
char* wktIn = (char*) pIn_wkt_geom;
//Create and polulate thisGeom with the input WKT geometry
OGRErr err = OGRGeometryFactory::createFromWkt(&wktIn, poSRS, &thisGeom);

//Add thisGeom as the cutline argument psWarpOptions->hCutline = thisGeom;*

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.