[postgis-devel] [PostGIS] #530: Retrieving and storing Geography column data through JDBC does not work

PostGIS trac at osgeo.org
Sat May 22 01:35:59 PDT 2010


#530: Retrieving and storing Geography column data through JDBC does not work
----------------------------------------------+-----------------------------
 Reporter:  kristof                           |       Owner:  pramsey      
     Type:  defect                            |      Status:  new          
 Priority:  medium                            |   Milestone:  PostGIS 1.5.2
Component:  postgis                           |     Version:  1.5.X        
 Keywords:  geography GeometryType java jdbc  |  
----------------------------------------------+-----------------------------
 We used the GeometryType Hibernate UserType that gets delivered with
 Postgis 1.5.x (java/ejb3) to store and retrieve Geometry column data.
 This works fine but unfortunately it does not seem to support the new
 Geography data type.

 We tried storing Point and LineString Geometry objects (SRID set to 4326)
 but we get an exception that a bytea can't be casted to a Geography.
 We use the org.postgis.DriverWrapper Driver class name which is supposed
 to automatically load support for the spatial types.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/530>
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