Example #1
0
void oms::ImageModel::centerToGround(ossimGpt& gpt)const
{
   if(thePrivateData->theImageHandler.valid())
   {
      imageToGround(ossimDpt(thePrivateData->theBoundingRect.width()/2.0,
                             thePrivateData->theBoundingRect.height()/2.0),
                    gpt);
   }
}
void ossimIvtGeomXform::viewToGround(const ossimDpt& viewPt, ossimGpt& gpt)
{
  ossimDpt ipt;
  gpt.makeNan();
  viewToImage(viewPt, ipt);
  if(!ipt.hasNans())
  {
    imageToGround(ipt, gpt);
  }
}
Example #3
0
void oms::ImageModel::imageToGround(const ossimDpt& imagePoint,
                                    ossimGpt&  gpt,
                                    unsigned int resolution)const
{
   if(resolution)
   {
      ossimDpt inputPt = imagePoint;
      double scale = 1<<resolution;
      inputPt.x*=scale;
      inputPt.y*=scale;
      
      imageToGround(inputPt,
                    gpt);
   }
   else
   {
      imageToGround(imagePoint,
                    gpt);
   }
}