[postgis-devel] [PostGIS] #609: Bad source code in manual section 5.2 Java Clients

PostGIS trac at osgeo.org
Fri Jun 10 10:25:29 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
----------------------+-----------------------------------------------------
Changes (by robe):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Okay I feel the recommendation for first part is wrong.  Last bit of java
 programming I tortured myself with -- I think I used this syntax --
 http://jdbc.postgresql.org/documentation/publicapi/org/postgresql/PGConnection.html
 and a JDBC4 driver.

 So I have instead opted to replace the first part with

 {{{
 ((org.postgresql.PGConnection)conn).addDataType("geometry","org.postgis.PGgeometry");
 ((org.postgresql.PGConnection)conn).addDataType("box3d","org.postgis.PGbox3d");
 }}}

 the rest of the suggestions look fine, but I haven't tested the code and
 am not really setup to at the moment.

 so fixed at r7362 for PostGIS 1.5 and r7363 for PostGIS 2.0

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/609#comment:2>
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