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

Method filter

io/private/stac/Item.cpp:263–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262
263bool Item::filter(const Filters& filters)
264{
265 validateForFilter(m_json);
266 m_id = stacId(m_json);
267
268 if (!filterAssets(filters.assetNames))
269 return false;
270
271 if (!filterIds(filters.ids))
272 return false;
273
274 if (!filterCol(filters.collections))
275 return false;
276
277 if (!filterDates(filters.datePairs))
278 return false;
279
280 if (!filterProperties(filters.properties))
281 return false;
282
283 if (!filterBounds(filters.bounds))
284 return false;
285
286
287 return true;
288}
289
290
291SpatialReference extractSRS(NL::json& props)

Callers

nothing calls this directly

Calls 2

validateForFilterFunction · 0.85
stacIdFunction · 0.85

Tested by

no test coverage detected