Oracle SDO のエクスポート

Oracle® データベース (「Oracle Spatial のリーダーとライターのクラス」を参照) に地理参照オブジェクトを格納するために使用される IlvSDOWriter および IlvObjectSDOWriter クラスに加えて、地図エクスポート API (「地図エクスポート API」を参照) を使用して地図の一部を SDO データベースにエクスポートできます。エクスポートに必要な作業は、IlvSDOExporterIlvMapExportManager.
IlvMapExportManager exportManager = new IlvMapExportManager();
IlvSDOExporter SDOExporter = new IlvSDOExporter();
exportManager.setVectorialExporter(SDOExporter);

// configure SDO export (connection parameters)
SDOExporter.showConfigurationDialog(null);

// Set the region of the map to export (here we assume that the map is 
// in IlvGeographicCoordinateSystem.KERNEL system, i.e. in radians)
exportManager.setExportRegion(-Math.PI,-Math.PI/2, Math.PI,Math.PI/2);


// Export selected map layers of the map (assuming that mapLayersToExport is 
an array of 
// IlvMapLayer instances)
exportManager.exportMapLayers(mapLayersToExport);