DB2获取空间数据库值的方法
DB2获取空间数据库值的方法:Clob pointClob = rs.getClob("point");
Reader reader = pointClob.getCharacterStream();
Point p;
try {
p = (Point) wktReader.read(reader);
if (p!=null){
String x="";
String y="";
try{
x=Double.toString(p.getX());
y=Double.toString(p.getY());
}catch(NumberFormatException nfe){
System.out.println("p.getX()="+p.getX());
logger.info("p.getX()="+p.getX());
logger.info("p.getY()="+p.getY());
}}
页:
[1]