[postgis-users] Re: Buffering with JDBC

Obe, Regina robe.dnd at cityofboston.gov
Mon May 14 11:42:34 PDT 2007


Shotka,
 
I'm not sure if my comment about the case of your "Geometry" got buried in my email.  But now thinking about it, I think its important to make sure you got that part right. 
 
Make sure that you have
addDataType("geometry",org.postgis.PGgeometry.class);
 
and not
addDataType("Geometry",org.postgis.PGgeometry.class);
 
I'm not absolutely sure, but I think the case of the type string has to match the type that is returned by PGObject otherwise it will not know to map it to the PostGIS class and will just keep it unknown.
 
Also can you try the below out.println and let us know what that returns.
 
out.println(((PGobject) r.getObject(1)).getType());
 
Hope that helps,
Regina

 


-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070514/3089a9c7/attachment.html>


More information about the postgis-users mailing list