| 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) |
no outgoing calls
no test coverage detected