[gdal-dev] addRingDirectly is crashed
Ahmet Temiz
ahmettemiz88 at gmail.com
Sat Apr 18 04:00:26 PDT 2020
Hi,
What am I doing wrong?
addRingDirectly is crashed
f( poGeometry != NULL && wkbFlatten(poGeometry->getGeometryType()) ==
wkbPolygon )
{
OGRPolygon *poPolygon = (OGRPolygon *) poGeometry;
// Box,
OGRLinearRing * poLinearRing {};
OGRPolygon *bbox {};
OGREnvelope oEnv1;
poPolygon->getEnvelope(&oEnv1);
poLinearRing = new OGRLinearRing({});
poLinearRing-> addPoint (oEnv1.MinX,oEnv1.MinY );
poLinearRing-> addPoint (oEnv1.MaxX,oEnv1.MinY );
poLinearRing-> addPoint (oEnv1.MaxX,oEnv1.MaxY );
poLinearRing-> addPoint (oEnv1.MinX,oEnv1.MaxY );
poLinearRing-> addPoint (oEnv1.MinX,oEnv1.MinY );
bbox= new OGRPolygon({});
bbox-> addRingDirectly(poLinearRing ); ** crash occur
Segmentation fault (core dumped)
regards
--
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem Dairesi Başkanlığı
________________________
Ahmet Temiz
Geological Eng.
Disaster and Emergency Management
of Presidency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200418/6b8e961c/attachment.html>
More information about the gdal-dev
mailing list