MCPcopy Create free account
hub / github.com/PDAL/PDAL / covers

Method covers

pdal/Polygon.cpp:260–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259
260bool Polygon::covers(const PointRef& ref) const
261{
262 throwNoGeos();
263
264 double x = ref.getFieldAs<double>(Dimension::Id::X);
265 double y = ref.getFieldAs<double>(Dimension::Id::Y);
266 double z = ref.getFieldAs<double>(Dimension::Id::Z);
267
268 OGRPoint p(x, y, z);
269 return m_geom->Contains(&p) || m_geom->Touches(&p);
270}
271
272
273bool Polygon::overlaps(const Polygon& p) const

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64