CopyPoint in HDK

   1671   1   0
User Avatar
Member
17 posts
Joined: Oct. 2009
Offline
Hi, Im trying to write a custom delete sop in the HDK. One of the subtasks is to copy points from one input gdp to the SOPs gdp.

I try to iterate over the points like this:

const GEO_Point * copyThisPoint = inGdpAll->points();
GEO_Point * copyPoint = gdp->appendPoint();
copyPoint->copyPoint(copyThisPoint, sizeof(GEO_Point));
copyPoint->copyAttributeData (copyThisPoint, sizeof(GB_AttributeData));


However, the attribute is not copied. Am I doing something wrong with the sizeof(X) part?

Thank you in advance.
Portfolio / Tech. blog: http://www.theprocedure.se [theprocedure.se]
User Avatar
Member
17 posts
Joined: Oct. 2009
Offline
I've tried

gdp->copyPointAttributes (*destCopyPoint, *copyThisPoint);

and

destCopyPoint->copyPoint(copyThisPoint, inGdpAll->pointAttribs(), gdp->pointAttribs());

But that doesn't work either.
Portfolio / Tech. blog: http://www.theprocedure.se [theprocedure.se]
  • Quick Links