[postgis-users] RE: JDBC - Error in the user document

Markus Schaber schabi at logix-tt.com
Tue Nov 22 03:46:09 PST 2005


Hi, Willa,

Willa WEI wrote:

> Sorry, it was a typo when I posted the message. I used
> 
> PGgeometry geom = (PGgeometry)r.getObject(1);
> 
> in my code before and it gave me runtime "java.lang.ClassCastException:
> java.lang.String." error. Now when I tried it again, it works. Maybe I
> used a wrong class file.

This looks like the addDataType() calls were missing.


Markus



More information about the postgis-users mailing list