postgis/jdbc
Paul Ramsey 72f8f4352d Compile patch from Markus Schaber
git-svn-id: http://svn.osgeo.org/postgis/trunk@637 b70326c6-7e19-0410-871a-916f4a2858ee
2004-06-22 21:30:58 +00:00
..
examples Compile patch from Markus Schaber 2004-06-22 21:30:58 +00:00
org/postgis Added PGbox3d accessors for LLB and URB. Added PGgeometry update to 2002-10-24 15:53:42 +00:00
Makefile Change absolute classpath reference to relative. 2004-01-15 00:23:08 +00:00
README Patches to bring example up to current version in terms of SQL access 2002-04-19 15:14:17 +00:00

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'