MCPcopy Create free account
hub / github.com/OSGeo/gdal / CreateGEOSEnvelope

Function CreateGEOSEnvelope

alg/zonal.cpp:1999–2009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1997
1998#ifdef HAVE_GEOS
1999 GEOSGeometry *CreateGEOSEnvelope(const OGREnvelope &oEnv) const
2000 {
2001 GEOSCoordSequence *seq = GEOSCoordSeq_create_r(m_geosContext, 2, 2);
2002 if (seq == nullptr)
2003 {
2004 return nullptr;
2005 }
2006 GEOSCoordSeq_setXY_r(m_geosContext, seq, 0, oEnv.MinX, oEnv.MinY);
2007 GEOSCoordSeq_setXY_r(m_geosContext, seq, 1, oEnv.MaxX, oEnv.MaxY);
2008 return GEOSGeom_createLineString_r(m_geosContext, seq);
2009 }
2010#endif
2011
2012 CPL_DISALLOW_COPY_ASSIGN(GDALZonalStatsImpl)

Callers 3

InsertIntoTreeMethod · 0.85
BuildTreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected