Opened 14 years ago

Last modified 7 years ago

#530 new defect

Retrieving and storing Geography column data through JDBC does not work

Reported by: kristof Owned by: pramsey
Priority: medium Milestone: PostGIS Fund Me
Component: postgis Version: 1.5.X
Keywords: geography GeometryType java jdbc Cc:

Description

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.

Change History (3)

comment:1 by robe, 13 years ago

Milestone: PostGIS 1.5.3PostGIS 2.0.0

comment:2 by pramsey, 13 years ago

Milestone: PostGIS 2.0.0PostGIS Future

I can't do anything regarding the Java code, but I've added bytea/geography casting pair for the use of the Java person who wants to provide support. r7415

Moving to the future.

comment:3 by robe, 7 years ago

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

Note: See TracTickets for help on using tickets.