#include <mie/shprdbms.h>

Public Types | |
| enum | PROPERTY { PROPERTY_HostName = 1, PROPERTY_HostAddr, PROPERTY_PortNum, PROPERTY_DefaultPortNum, PROPERTY_DatabaseName, PROPERTY_SchemaName, PROPERTY_UserName, PROPERTY_Password } |
Public Member Functions | |
| FORMAT_RDBMS_SPATIAL (FORMATTYPE FormatType, const char *name, const char *filename) | |
| virtual | ~FORMAT_RDBMS_SPATIAL () |
| const char * | GetPropertyName (PROPERTY Property) const |
Private Member Functions | |
| virtual JOB_EXPORT * | v_AllocJobExport (const SETTINGS &settings) const =0 |
| virtual ERRVALUE | v_AnalyzeSource (const MISTRING &source, SETTINGS *settings) const |
| virtual bool | v_CanExportSupportCRS (const SPATREF::COORDREFSYS &crs) const |
| virtual ERRVALUE | v_Export (const MISTRING &dest, const SETTINGS &settings, const SIMPLE_ARRAY< JOB_EXPORT * > &jobs) const |
| virtual const char * | v_GetPropertyName (PROPERTY Property) const =0 |
| MIE::FORMAT_RDBMS_SPATIAL::FORMAT_RDBMS_SPATIAL | ( | FORMATTYPE | FormatType, | |
| const char * | name, | |||
| const char * | filename | |||
| ) |
| virtual MIE::FORMAT_RDBMS_SPATIAL::~FORMAT_RDBMS_SPATIAL | ( | ) | [virtual] |
| const char* MIE::FORMAT_RDBMS_SPATIAL::GetPropertyName | ( | PROPERTY | Property | ) | const [inline] |
Given a PROPERTY enum, return the name that the RDBMS source will look for.
Should return 0 for any property not supported
| virtual JOB_EXPORT* MIE::FORMAT_RDBMS_SPATIAL::v_AllocJobExport | ( | const SETTINGS & | settings | ) | const [private, pure virtual] |
Allocate a JOB_EXPORT for this format.
Will be temporary during the actual export. Default implementation uses format's m_ObjType to determine which JOB_EXPORT class to allocate. This may not be appropriate for geometric formats.
Reimplemented from MIE::FORMAT.
| virtual ERRVALUE MIE::FORMAT_RDBMS_SPATIAL::v_AnalyzeSource | ( | const MISTRING & | source, | |
| SETTINGS * | settings | |||
| ) | const [private, virtual] |
Determine what tables are linkable The default implementation assumes OGC compatible data source with a geometry_columns table having f_table_name and f_table_schema.
Reimplemented from MIE::FORMAT_LINKABLE.
| virtual bool MIE::FORMAT_RDBMS_SPATIAL::v_CanExportSupportCRS | ( | const SPATREF::COORDREFSYS & | crs | ) | const [private, virtual] |
Determine if a CRS can be exported to this format if it uses an EPSG codespace Derived class should override if a different codespace is used.
Reimplemented from MIE::FORMAT.
| virtual ERRVALUE MIE::FORMAT_RDBMS_SPATIAL::v_Export | ( | const MISTRING & | dest, | |
| const SETTINGS & | settings, | |||
| const SIMPLE_ARRAY< JOB_EXPORT * > & | jobs | |||
| ) | const [private, virtual] |
Virtual method to do the actual export.
Called once for each object selected for export if settings.GetSingleFile() is false (in which case the sources list contains a single item). Otherwise this method is called only once, and the sources list contains all the objects selected for export.
If you are exporting a raster, you should use MIE::JOB_EXPORT::SetRastObj() and MIE::JOB_EXPORT::ReadRaster() instead of the RVC::RASTER methods. This will convert the null mask of the raster (if any) to the null value specified by the user. Handles cell value conflicts.
Reimplemented from MIE::FORMAT.
| virtual const char* MIE::FORMAT_RDBMS_SPATIAL::v_GetPropertyName | ( | PROPERTY | Property | ) | const [private, pure virtual] |
Given a PROPERTY enum, return the name that the RDBMS source will look for.
Should return 0 for any property not supported
1.6.1