void ossimUsgsQuad::getQuadList(vector<ossimUsgsQuad>& result, const ossimGrect& rect) { result.clear(); // QUAD_SIZE_IN_DEGREES; ossimGpt point = rect.ul(); while(rect.pointWithin(point)) { while(rect.pointWithin(point)) { result.push_back(ossimUsgsQuad(point)); point.lond(point.lond()+QUAD_SIZE_IN_DEGREES); } point.lond(rect.ul().lond()); point.latd(point.latd()-QUAD_SIZE_IN_DEGREES); } }
ossim_uint32 ossimDtedElevationImageSource::computeIndex( const ossimImageData& id, const ossimGrect& idRect, const ossimGpt& gpt, const ossimDpt& postSpacing) const { if ( ! idRect.pointWithin(gpt) ) { return OSSIM_INT_NAN; } ossim_uint32 line = static_cast<ossim_uint32>( (idRect.ul().lat - gpt.lat) / postSpacing.y ); ossim_uint32 samp = static_cast<ossim_uint32>( (gpt.lon - idRect.ul().lon) / postSpacing.x ); return ( (line * id.getWidth()) + samp ); }