[gdal-dev] Getting the points from multipoints datatype
Ahmed Tolba
Ahmed.Tolba at schiebel.net
Wed Mar 1 08:26:27 PST 2017
Hi All,
I'm trying to get the multi points out of a geometry, how would I retrieve the points ?
// Variable initialised to contain Geometry point data for the field at the current index of i
OGRGeometry *Geometry = Feature->GetGeometryRef();
if(Geometry != NULL && wkbFlatten(Geometry->getGeometryType()) == wkbMultiPoint)
{
OGRMultiPoint *poMultipoint = ( OGRMultiPoint * )Geometry;
int NumberOfGeometries = poMultipoint->getNumGeometries();
// get points
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170301/0b40ea8a/attachment.html>
More information about the gdal-dev
mailing list