[postgis-users] RE: JDBC - Error in the user document
Willa WEI
wwei at mdacorporation.com
Mon Nov 21 09:50:37 PST 2005
Hi Paul,
Just thought I should let you know that there is an error in the postGIS
manual.
When I tried the JDBC sample code in the manual, I got a runtime error
message. It complained the line:
Pggeometry geom = (Pggeometry).r.getObject(1);
When I checked it on Internet, you guys was discussed this error in 2002
and that time you said you wouldn't have time to fix it in a short time
period. So, I checked the PGgeometry class and modified the code as
following:
PGgeometry geom = new PGgeometry(r.getObject(1).toString());
Then it worked. So, I guess you did fix the problem, but in a different
way. It will be nice if you could update the document as well.
Cheers,
Willa
More information about the postgis-users
mailing list