0
私はEclipseでプロジェクトを作成し、postgres-jdbc-2.1.7.jar、postgresql-9.4.1208.jre6.jarをクラスパスに追加しました。Postgis接続にジオメトリタイプを追加しようとしたときにエラーが発生しました
次に、DBに接続するために、Postgisのマニュアルsee exampleの例を試しました。
次の行がエラーを生成します。
/*
* Add the geometry types to the connection. Note that you
* must cast the connection to the pgsql-specific connection
* implementation before calling the addDataType() method.
*/
((org.postgresql.PGConnection)conn).addDataType("geometry",Class.forName("org.postgis.PGgeometry"));
((org.postgresql.PGConnection)conn).addDataType("box3d",Class.forName("org.postgis.PGbox3d"));
エラーは以下の通りです:
型の接続のメソッドaddDataType引数には適用されません
は誰にも直面しています同じエラー?
アイデア?
これは本当にコメントであり、答えではありません。もう少し担当者がいれば、[コメントを投稿できる](// stackoverflow.com/privileges/comment)。私は削除のためにこの投稿にフラグを立てています。 – Mat