摘要: java将json格式的xy值转为点对象 1 private IGeometry getGeometryFromXYs(String xys) { 2 IGeometry geo = null; 3 try { 4 if (xys == null) 5 return null; 6 JSONArray jsonArray = new JSONArray(xys); 7 int count = jsonArray.length(); 8 ... 阅读全文
posted @ 2012-02-21 15:07 因是因非 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: 数据库读取工具类 1 package com.db; 2 3 import java.sql.Connection; 4 import java.sql.DriverManager; 5 import java.sql.SQLException; 6 import oracle.jdbc.driver.OracleDriver; 7 8 import javax.naming.Context; 9 import javax.naming.InitialContext; 10 import javax.naming.NamingException; 11 import ja... 阅读全文
posted @ 2012-02-21 14:39 因是因非 阅读(13348) 评论(0) 推荐(2) 编辑