#include <mie/geospatial.h>

Public Member Functions | |
| JOB_GEOSPATIAL (const FORMAT &format, const SETTINGS &settings) | |
| virtual | ~JOB_GEOSPATIAL () |
| const SPATREF::COORDREFSYS & | GetCoordRefSys () const |
| const RVC::GEOREFERENCE & | GetGeorefObject () const |
| const DRECT3D & | GetObjectExtents () 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 |
| virtual MIE::JOB_GEOSPATIAL::~JOB_GEOSPATIAL | ( | ) | [virtual] |
| 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.
DRECT3D MIE::JOB_GEOSPATIAL::m_ObjectExtents [protected] |
1.6.1