41 int main(
int argc,
char** argv)
54 #ifdef TERRALIB_MOD_GDAL_ENABLED 60 #ifdef TERRALIB_MOD_OGR_ENABLED 66 #ifdef TERRALIB_MOD_POSTGIS_ENABLED 74 std::cout << std::endl <<
"OGR to OGR: " << std::endl;
76 std::cout <<
"\tOK!" << std::endl;
78 std::cout << std::endl <<
"OGR to PostGIS: " << std::endl;
80 std::cout <<
"\tOK!" << std::endl;
82 std::cout << std::endl <<
"PostGIS to PostGIS: " << std::endl;
84 std::cout <<
"\tOK!" << std::endl;
86 std::cout << std::endl <<
"PostGIS to OGR: " << std::endl;
88 std::cout <<
"\tOK!" << std::endl;
93 std::cout << std::endl <<
"Intersection OGR to OGR: " << std::endl;
95 std::cout <<
"\tOK!" << std::endl;
97 std::cout << std::endl <<
"Intersection OGR to PostGIS: " << std::endl;
99 std::cout <<
"\tOK!" << std::endl;
101 std::cout << std::endl <<
"Intersection PostGIS to PostGIS: " << std::endl;
103 std::cout <<
"\tOK!" << std::endl;
105 std::cout << std::endl <<
"Intersection PostGIS to OGR: " << std::endl;
107 std::cout <<
"\tOK!" << std::endl;
112 std::cout << std::endl <<
"Buffer OGR to OGR: " << std::endl;
114 std::cout <<
"\tOK!" << std::endl;
116 std::cout << std::endl <<
"Buffer OGR to PostGIS: " << std::endl;
118 std::cout <<
"\tOK!" << std::endl;
120 std::cout << std::endl <<
"Buffer PostGIS to PostGIS: " << std::endl;
122 std::cout <<
"\tOK!" << std::endl;
124 std::cout << std::endl <<
"Buffer PostGIS to OGR: " << std::endl;
126 std::cout <<
"\tOK!" << std::endl;
131 std::cout << std::endl <<
"Identity OGR to OGR: " << std::endl;
133 std::cout <<
"\tOK!" << std::endl;
135 std::cout << std::endl <<
"Identity OGR to PostGIS: " << std::endl;
137 std::cout <<
"\tOK!" << std::endl;
139 std::cout << std::endl <<
"Identity PostGIS to PostGIS: " << std::endl;
141 std::cout <<
"\tOK!" << std::endl;
143 std::cout << std::endl <<
"Identity PostGIS to OGR: " << std::endl;
145 std::cout <<
"\tOK!" << std::endl;
152 catch(
const std::exception& e)
154 std::cout << std::endl <<
"An exception has occurred: " << e.what() << std::endl;
160 std::cout << std::endl <<
"An unexpected exception has occurred!" << std::endl;
Include files for Core Plugin Library.
void insert(const PluginInfo &pinfo)
Adds plugin with its plugin information to the list of unloaded plugins.
Basic information about a plugin.
void load(const std::string &plugin_name, const bool start=true)
It tries to load the informed plugin.
std::string name
The plugin name: an internal value used to identify the plugin in the system. Must be a unique value...
bool DissolvePGISToPGIS()
static PluginManager & instance()
Access the singleton.
void finalize()
It finalizes the TerraLib Platform.
static TerraLib & getInstance()
It returns a reference to the singleton instance.
bool IntersectionOGRToOGR()
void initialize()
It initializes the TerraLib Platform.
int main(int argc, char **argv)
bool IntersectionOGRToPGIS()
TECOREEXPORT PluginInfo JSONPluginInfoSerializer(const std::string &file_name)
A plugin finder that search for plugins in some special directories defined by compile time macros...
bool IdentityPGISToPGIS()
TECOREEXPORT std::string FindInTerraLibPath(const std::string &path)
Returns the path relative to a directory or file in the context of TerraLib.
bool IntersectionPGISToOGR()
This file contains include headers for the TerraLib Common Runtime module.
void clear()
Stop and unload all plugins, then clear the internal list of plugins.
bool IntersectionPGISToPGIS()