Browse samples per component: Database Connectors
This is a command-line sample. Click More info for run instructions.
This application demonstrates how to encode spatial data to an DB2 Spatial database, using a TLcdDB2SpatialModelEncoder.
Run the sample using the shell script in the samples
folder:
encoder.db2.spatial.bat source_file destination_db2_file
The connection to the database can be specified by means of a properties
file, in this case Data/Db2/states.db2
.
To convert a file, make sure the URL in Data/Db2/states.db2
points to your
DB2 Spatial database and convert for example Data/Shp/Usa/states.shp
into it.
This is a command-line sample. Click More info for run instructions.
This application demonstrates how to encode geodetic data to an Informix Geodetic database, using a TLcdInformixGeodeticModelEncoder.
Run the sample using the shell script in the samples
folder:
encoder.informix.geodetic.bat source_file destination_ifx_file
The connection to the database can be specified by means of a properties
file, in this case Data/Informix/states.ifx
.
Make sure the URL in Data/Informix/states.ifx
points to your
Informix Geodetic database. You can then convert Data/Shp/Usa/states.shp
to Data/Informix/states.ifx
This is a command-line sample. Click More info for run instructions.
This application demonstrates how to encode spatial data to an Informix Spatial database, using a TLcdInformixSpatialModelEncoder.
Run the sample using the shell script in the samples
folder:
encoder.informix.spatial.bat source_file destination_isd_file
The connection to the database can be specified by means of a properties
file, in this case Data/Informix/states.isd
.
Make sure the URL in Data/Informix/states.isd
points to your
Informix Spatial database. You can then convert
Data/Shp/Usa/states.shp
to Data/Informix/states.isd
This is a command-line sample. Click More info for run instructions.
This application demonstrates how to encode spatial data to a Microsoft SQL database, using a TLcdMSSQLModelEncoder.
Run the sample using the shell script in the samples
folder:
encoder.mssql.bat source_file destination_mss_file
The connection to the database can be specified by means of a properties
file, in this case Data/MSSQL/world.mss
.
Make sure the URL in Data/MSSQL/world.mss
points to
your Microsoft SQL database. You can then convert
Data/Shp/world/world.shp
to Data/MSSQL/world.mss
.
This is a command-line sample. Click More info for run instructions.
This application demonstrates how to encode spatial data to an Oracle Spatial Object-Relational database, using a TLcdOracleSpatialModelEncoder.
Run the sample using the shell script in the samples
folder:
encoder.oracle.spatial.bat source_file destination_ora_file
The connection to the database can be specified by means of a properties
file, in this case Data/Oracle/states.ora
.
Make sure the URL in Data/Oracle/states.ora
points to your
Oracle Spatial database. You can then convert
Data/Shp/Usa/states.shp
to Data/Oracle/states.ora
.
This is a command-line sample. Click More info for run instructions.
This application demonstrates how to encode spatial data to a PostgreSQL PostGIS database, using a TLcdPostGISModelEncoder.
Run the sample using the shell script in the samples
folder:
encoder.postgresql.bat source_file destination_pgs_file
The connection to the database can be specified by means of a properties
file, in this case Data/Postgresql/states.pgs
.
Make sure the URL in Data/Postgresql/states.pgs
points to
your PostgreSQL PostGIS database. You can then convert
Data/Shp/Usa/states.shp
to Data/Postgresql/states.pgs
.