mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-26 10:02:50 +00:00
436990dc07
and to stop silly bug in missing table case. Submitted by Steffen Macke <sdteffen@web.de> git-svn-id: http://svn.osgeo.org/postgis/trunk@135 b70326c6-7e19-0410-871a-916f4a2858ee
16 lines
604 B
Plaintext
16 lines
604 B
Plaintext
To use the PostGIS types, you must:
|
|
- have the postgis.jar in your CLASSPATH
|
|
- have a PostgreSQL JDBC Connection instance
|
|
|
|
Connection conn = new Connection();
|
|
((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeometry");
|
|
((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d");
|
|
|
|
To build the examples:
|
|
- put the jar file containing the PostgreSQL JDBC under
|
|
postgis/original/jars/postgresql.jar
|
|
The file might be named jdbc7.1-1.2.jar originally
|
|
|
|
- edit the file TestServer.java to adjust the connection information, run
|
|
the test with 'make jtest'
|