Here is an example using JTS:
http://postgis.refractions.net/pipermail/postgis-users/2007-March/014911.html
Or, download the postgis available off the postgis download website:
http://postgis.refractions.net/download/
Here's the readme for how to use it:
http://svn.osgeo.org/postgis/trunk/java/jdbc/README
-- Kevin
Ahmet Temiz wrote:
hello
I am trying to get geometric data in java using from pooled postgresql/
postgis database like this:
PGobject pgobj = (PGobject)rs.getObject(2);
System.out.println(" -- "+pgobj.getClass());
System.out.println(" pgobj.getValue() "+ pgobj.getValue());
PGpolygon pol1=(PGpolygon)pgobj; here exception occurs like:
java.lang.ClassCastException: org.postgresql.util.PGobject cannot be cast to
org.postgresql.geometric.PGpolygon
what can I do ?
regards
Ahmet Temiz
--
Open WebMail Project (http://openwebmail.org)
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users