本文整理了Java中org.locationtech.jts.io.ParseException.printStackTrace()
方法的一些代码示例,展示了ParseException.printStackTrace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ParseException.printStackTrace()
方法的具体详情如下:
包路径:org.locationtech.jts.io.ParseException
类名称:ParseException
方法名:printStackTrace
暂无
代码示例来源:origin: mapsforge/mapsforge
static Geometry readWKTFile(String wktFile) {
File f = new File(TEST_GEOMETRIES_RESOURCES_DIR, wktFile);
WKTReader wktReader = new WKTReader(geometryFactory);
FileReader reader = null;
try {
reader = new FileReader(f);
return wktReader.read(reader);
} catch (FileNotFoundException e) {
e.printStackTrace();
return null;
} catch (ParseException e) {
e.printStackTrace();
return null;
} finally {
if (reader != null) {
try {
reader.close();
} catch (IOException e) {
// nothing to do
}
}
}
}
代码示例来源:origin: locationtech/geowave
@Override
public T deserialize(Object datum) {
T geom = null;
InternalRow row = (InternalRow) datum;
byte[] bytes = row.getBinary(0);
try {
geom = (T) new TWKBReader().read(bytes);
} catch (ParseException e) {
e.printStackTrace();
}
return geom;
}
}
内容来源于网络,如有侵权,请联系作者删除!