[postgis-devel] [PostGIS] #609: Bad source code in manual section 5.2 Java Clients
PostGIS
trac at osgeo.org
Mon Jun 13 04:07:41 PDT 2011
#609: Bad source code in manual section 5.2 Java Clients
----------------------+-----------------------------------------------------
Reporter: simoc | Owner: pramsey
Type: defect | Status: closed
Priority: low | Milestone: PostGIS 1.5.3
Component: postgis | Version: 1.5.X
Resolution: fixed | Keywords: JDBC client documentation
----------------------+-----------------------------------------------------
Comment(by simoc):
Yes, using PGConnection.addDataType(String, String) also works for me,
although that method is deprecated. The recommended replacement method in
the PGConnection Javadoc is:
{{{
((org.postgresql.PGConnection)conn).addDataType("geometry",Class.forName("org.postgis.PGgeometry"));
((org.postgresql.PGConnection)conn).addDataType("box3d",Class.forName("org.postgis.PGbox3d"));
}}}
That method also works correctly for me.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/609#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list