使用FDO API連線到各種資料來源

2021-09-22 09:39:20 字數 1440 閱讀 5401

map 3d可以通過fdo技術連線到各種資料來源,包括shp檔案,sdf檔案,mysql,sql server spatial,oracle等等。當然了,連線到不同資料來源肯定有不同的引數,或者理解成連線字串的組成部分。那這些引數都是什麼呢?我們可以通過下面一段**來深入理解這個引數:

閒話不多少,直接上**,你可以在map 3d中執行一下就會發覺他的奧妙:

using autodesk.autocad;

using autodesk.autocad.runtime;

using osgeo.fdo;

using osgeo.fdo.commands;

using osgeo.fdo.commands.schema;

using osgeo.fdo.connections;

using autodesk.autocad.editorinput;

using osgeo.fdo.schema;

using osgeo.fdo.connections.capabilities;

using osgeo.fdo.clientservices;

using osgeo.fdo.commands.datastore;

public

class class1

, its index is \n", provider.name, i));

}promptintegerresult intres = ed.getinteger("please input the provider's index");

if (intres.status == promptstatus.ok)

catch (osgeo.fdo.common.exception exception)

}else

}[commandmethod("disconnect")]

public

void closeconnection()

private

void inputparametersvalue(iconnectionpropertydictionary properties)

\" is required, please input value again\n", name));

psr = ed.getstring(pso);

}properties.setproperty(name, psr.stringresult);}}

}private

void listpropertiesparameters(idatastorepropertydictionary properties)

}[commandmethod("createdatastore")]

public

void createdatastore()

}

峻祁連出處:

使用FDO API連線到各種資料來源

map 3d可以通過fdo技術連線到各種資料來源,包括shp檔案,sdf檔案,mysql,sql server spatial,oracle等等。當然了,連線到不同資料來源肯定有不同的引數,或者理解成連線字串的組成部分。那這些引數都是什麼呢?我們可以通過下面一段 來深入理解這個引數 閒話不多少,直接...

使用JDBC連線各種資料庫

使用 jdbc 連線各種資料庫 1 連線 oracle 8 8i 9i 資料庫class.forname oracle.jdbc.driver.oracledriver string url jdbc oracle thin 192.168.0.1 1521 orcl string user tes...

各種資料庫連線

mysql string driver com.mysql.jdbc.driver 驅動程式 string url jdbc mysql localhost 3306 db name 連線的url,db name為資料庫名 string username username 使用者名稱 string ...