OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Class for representing a ground control point. More...
#include <GroundControlPoint.h>
Public Member Functions | |
GroundControlPoint (const Json::Value &image_json_node) | |
Creates new GCP from JSON object. More... | |
virtual | ~GroundControlPoint () |
const std::string & | getId () const |
const ossimEcefPoint & | getECF () const |
const NEWMAT::SymmetricMatrix & | getCovariance () const |
virtual void | loadJSON (const Json::Value &json) |
virtual void | saveJSON (Json::Value &json) const |
![]() | |
JsonInterface () | |
virtual | ~JsonInterface () |
Private Member Functions | |
GroundControlPoint () | |
Private Attributes | |
std::string | m_id |
ossimEcefPoint | m_gcp |
NEWMAT::SymmetricMatrix | m_covariance |
Class for representing a ground control point.
TODO: mplement cross-correlation between GCPs
Definition at line 22 of file GroundControlPoint.h.
ossim::GroundControlPoint::GroundControlPoint | ( | const Json::Value & | image_json_node | ) |
Creates new GCP from JSON object.
The ground point (GCP) coordinates are specified in either ECF or geographic. The associated covariance must be in the same coordinate system. If correlations exist to other GCPs, those GCPs must share the same coordinate system. TBD: Perhaps the GCP information, including coordinates, covariances and cross-covariances can be ingested prior and accessed from the database with only GCP ID. Id so, the remainder of this message is not needed.
The JSON Format: { "id": <string>, "ecf": [ <X>, <Y>, <Z> ], OR "geo": [ <lat>, <lon>, <hgt_msl> ], "covariance": [ c11, c22, c33, c12, c13, c23 ], "crossCovariances": [ (Can be excluded if no correlation information available) { "id": <string>, The other GCP’s ID "crossCovariance": [ c11, c22, c33, c12, c13, c23 ] } ] }
Definition at line 20 of file GroundControlPoint.cpp.
References loadJSON(), and m_covariance.
|
virtual |
Definition at line 28 of file GroundControlPoint.cpp.
|
private |
Definition at line 15 of file GroundControlPoint.cpp.
|
inline |
Definition at line 58 of file GroundControlPoint.h.
References m_covariance.
|
inline |
|
inline |
|
virtual |
Implements ossim::JsonInterface.
Definition at line 33 of file GroundControlPoint.cpp.
References ossimGpt::hgt, ossimGpt::lat, ossimGpt::lon, m_covariance, m_gcp, m_id, ossimNotify(), ossimNotifyLevel_WARN, ossimEcefPoint::x(), ossimEcefPoint::y(), and ossimEcefPoint::z().
Referenced by GroundControlPoint().
|
virtual |
Implements ossim::JsonInterface.
Definition at line 101 of file GroundControlPoint.cpp.
References m_covariance, m_gcp, m_id, ossimEcefPoint::x(), ossimEcefPoint::y(), and ossimEcefPoint::z().
|
private |
Definition at line 77 of file GroundControlPoint.h.
Referenced by getCovariance(), GroundControlPoint(), loadJSON(), and saveJSON().
|
private |
Definition at line 76 of file GroundControlPoint.h.
Referenced by getECF(), loadJSON(), and saveJSON().
|
private |
Definition at line 75 of file GroundControlPoint.h.
Referenced by getId(), loadJSON(), and saveJSON().