Hello,

If I have an OGRGeometry object (said poGeom), I can get its coords by:

OGREnvelope * poE = new OGREnvelope();
poGeom->getEnvelope(poE);

// poE->MinX, poE->MinY, poE->MaxX, poE->MaxY are the limit coords

If I want the size of the Geometry:

double dSizeX = poE->MaxX - poE->MinX;
double dSizeY = poE->MaxY - poE->MinY;

Is it the correct way?

Thanks in advance
Jorge
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to