38 static ossimTrace traceExec (
"ossim2dTo2dTransform:exec");
39 static ossimTrace traceDebug (
"ossim2dTo2dTransform:debug");
41 static const double DEFAULT_THRESHOLD = 1000.0*
DBL_EPSILON;
42 static const int DEFAULT_MAX_ITERATIONS = 10;
49 theConvergenceThreshold (DEFAULT_THRESHOLD),
50 theMaxIterations (DEFAULT_MAX_ITERATIONS),
61 static const char MODULE[] =
"ossim2dTo2dTransform::inverse";
108 r_diff = input - right;
113 inverse_norm = dr_dy.
x*dr_dx.
y - dr_dx.
x*dr_dy.
y;
115 if (inverse_norm != 0)
117 l_diff.
x = (-dr_dy.
y*r_diff.
x + dr_dy.
x*r_diff.
y)/inverse_norm;
118 l_diff.
y = ( dr_dx.
y*r_diff.
x - dr_dx.
x*r_diff.
y)/inverse_norm;
142 <<
"transform for point: " << input <<
"\n";
155 const char* prefix)
const 204 const char* dxdy = kwl.
find(prefix,
"dxdy");
208 std::vector<ossimString> splitArray;
209 tempString = tempString.
trim();
210 tempString.
split(splitArray,
" ");
211 if(splitArray.size()==2)
213 theDxDy.
x = splitArray[0].toDouble();
214 theDxDy.
y = splitArray[1].toDouble();
229 modify_this = output;
236 modify_this = output;
277 <<
"dxdy: " <<
theDxDy <<
"\n";
Represents serializable keyword/value map.
const char * find(const char *key) const
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
static ossimString toString(bool aValue)
Numeric to string methods.
void split(std::vector< ossimString > &result, const ossimString &separatorList, bool skipBlankFields=false) const
Splits this string into a vector of strings (fields) using the delimiter list specified.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimString trim(const ossimString &valueToTrim=ossimString(" \\)) const
this will strip lead and trailing character passed in.
static const char * MAX_ITERATIONS_KW
ossimReferenced & operator=(const ossimReferenced &)
static const char * CONVERGENCE_THRESHOLD_KW
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.