MIE::JOB_GEOSPATIAL Class Reference

#include <mie/geospatial.h>

Inheritance diagram for MIE::JOB_GEOSPATIAL:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 JOB_GEOSPATIAL (const FORMAT &format, const SETTINGS &settings)
virtual ~JOB_GEOSPATIAL ()
const SPATREF::COORDREFSYSGetCoordRefSys () const
const RVC::GEOREFERENCEGetGeorefObject () const
const DRECT3DGetObjectExtents () const
ERRVALUE ImportArcProjection (FastDelegate< ERRVALUE(char *str, int bufsize)> ReadLine)
void SetCoordRefSys (const SPATREF::COORDREFSYS &crs)
void SetGeorefObject (const RVC::GEOREFERENCE &GeorefObj)
void SetObjectExtents (const DRECT3D &rect)

Protected Member Functions

virtual ERRVALUE v_ImportBegin (const RVC::OBJITEM &DestObj)
virtual ERRVALUE v_ImportEnd (RVC::OBJITEM &DestObj)

Protected Attributes

DRECT3D m_ObjectExtents

Constructor & Destructor Documentation

MIE::JOB_GEOSPATIAL::JOB_GEOSPATIAL ( const FORMAT format,
const SETTINGS settings 
)
virtual MIE::JOB_GEOSPATIAL::~JOB_GEOSPATIAL (  )  [virtual]

Member Function Documentation

const SPATREF::COORDREFSYS& MIE::JOB_GEOSPATIAL::GetCoordRefSys (  )  const [inline]
const RVC::GEOREFERENCE& MIE::JOB_GEOSPATIAL::GetGeorefObject (  )  const [inline]

Get the Georeference object that WILL be saved under the geospatial object This will be initially setup with an Implied georeference and with the current CRS defined.

If the georeference parameters need to be changed, such as changing the type to affine or control points, this is the method to get the georeference object to perform such changes.

const DRECT3D& MIE::JOB_GEOSPATIAL::GetObjectExtents (  )  const [inline]

Get the extents of the object.

The import itself should update this, either by extending the m_ObjectExtents member (protected) or by calling SetObjectExtents()

ERRVALUE MIE::JOB_GEOSPATIAL::ImportArcProjection ( FastDelegate< ERRVALUE(char *str, int bufsize)>  ReadLine  ) 

Import a COORDREFSYS from Arc.

ReadLine should be a method that fills the string pointed to by str with at most bufsize bytes. The crs will be filled in and the Georeference object will be created under the object to which the job's OBJITEM refers.

Was _mieImportArcProjectio

void MIE::JOB_GEOSPATIAL::SetCoordRefSys ( const SPATREF::COORDREFSYS crs  ) 
void MIE::JOB_GEOSPATIAL::SetGeorefObject ( const RVC::GEOREFERENCE GeorefObj  ) 

Set the Georeference object that WILL be saved under the geospatial object This will be initially setup with an Implied georeference and with the current CRS defined.

If the georeference parameters need to be changed, such as changing the type to affine or control points, this is the method to set the georeference object to save such changes.

void MIE::JOB_GEOSPATIAL::SetObjectExtents ( const DRECT3D rect  )  [inline]
virtual ERRVALUE MIE::JOB_GEOSPATIAL::v_ImportBegin ( const RVC::OBJITEM DestObj  )  [protected, virtual]

Begin import.

Note, If v_ImportNeedTempFile returns true, then the OBJITEM passed will point to the temp file. Derived class should call base class implementation before doing any of its own implementation

Reimplemented from MIE::JOB_IMPORT.

Reimplemented in MIE::JOB_GEOMETRIC, MIE::JOB_HYPERSPECTRAL, MIE::JOB_IMAGE, MIE::JOB_RASTER, and MIE::JOB_VECTOR.

virtual ERRVALUE MIE::JOB_GEOSPATIAL::v_ImportEnd ( RVC::OBJITEM DestObj  )  [protected, virtual]

Finish the import.

Note, do not assume that v_ImportBegin was called or that anything else has been done to the job instance. In the case of importing as one object type and then converting to another, the v_ImportEnd will do the copy. Object conversion is done at the lowest possible JOB-derived class from which both the destination and source object type JOB classes are derived. So for example, since both JOB_VECTOR and JOB_CAD derive from JOB_GEOMETRIC, object conversion between them is handled in JOB_GEOMETRIC's v_ImportEnd.

Derived class should call base class implementation after doing its own cleanup.

Reimplemented from MIE::JOB_IMPORT.

Reimplemented in MIE::JOB_CAD, MIE::JOB_CAD_LINKABLE, MIE::JOB_GEOMETRIC, MIE::JOB_HYPERSPECTRAL, MIE::JOB_IMAGE, MIE::JOB_RASTER, and MIE::JOB_VECTOR.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:36:32 2012 for TNTsdk 2012 by  doxygen 1.6.1