Example #1
0
size_t layer_raster::get_level(const frame& fr)
{
  const projection pj_rast(get_pj());
  const projection pj_fr(fr.get_pj());
  const double scale(pj_rast == pj_fr? fr.scale(): fr.transform(pj_rast).scale());
  return m_raster.snap_to_level(scale * scale);
}