# ls /opt/glassfish4/glassfish/domains/domain1/lib/ applibs databases postgis-jdbc-2.2.2-SNAPSHOT.jar postgis-jdbc-jtsparser-2.2.2-SNAPSHOT.jar classes ext postgis-jdbc-java2d-2.2.2-SNAPSHOT.jar postgresql-9.4.1212.jar
As of June 2015, PostGIS JDBC development has been split from PostGIS core and is now on github.
$ git clone https://github.com/postgis/postgis-java.git $ cd postgis-java $ mvn package
# # This property file is included in the postgis jar and autoregisters the # PostGIS datatypes within the jdbc driver. # datatype.geometry=org.postgis.PGgeometry datatype.box3d=org.postgis.PGbox3d datatype.box2d=org.postgis.PGbox2d
pgconn.addDataType("geometry", "org.postgis.PGgeometry"); pgconn.addDataType("box3d", "org.postgis.PGbox3d"); pgconn.addDataType("box2d", "org.postgis.PGbox2d");→ うげー