Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OGRLineString * convertFromGEOStoOGR(LineString * ls) {
- OGRLineString * lineString = (OGRLineString*) OGRGeometryFactory::createGeometry(wkbLineString);
- for(int i = 0; i < ls->getNumPoints(); ++i) {
- Point * pt = ls->getPointN(i);
- lineString->addPoint(pt->getX(), pt->getY());
- }
- return lineString;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement