![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GeoTools
程序员不丑009
这个作者很懒,什么都没留下…
展开
-
【GeoTools】polygon 转 multipolygon
使用GeoTools写入shape文件时,由于结果集中包含polygon和multipolygon两种类型,“the_geom”字段不好指定。使用如下方法可以把polygon转为multipolygon。 GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory( null ); ...原创 2020-04-27 14:40:05 · 6988 阅读 · 0 评论 -
【GeoTools】geotools空间分析存在自相交情况时的错误解决
报错信息如下:org.locationtech.jts.geom.TopologyException: found non-noded intersection between LINESTRING ( 115.081751296 22.877495404, 115.08235485099999 22.877178259000004 )......查看多边形发现存在自相交的情况:解...原创 2020-04-27 11:32:03 · 11068 阅读 · 3 评论 -
【GeoTools】geotools-20 读取、写入shape文件
1,读取shape文件:public static void readShapefile() throws IOException{ String shapefile = "E:\\supermap_data\\lalala\\my.shp"; File file = new File(shapefile); // 申明一个存储空间 ...原创 2020-04-24 17:07:31 · 3022 阅读 · 1 评论