最近工作上需要用到geotools工具进行开发,发现资料真的少得可怜,可能很少人用吧。...package com.mapbar.geo.jts; import org.geotools.geometry.jts.JTSFactoryFinder; import com.vividsolutions.jts.geom.Coordinate...System.out.println(gr.disjointGeo()); System.out.println(gr.intersectsGeo()); } } 9、Geotools
概述 前文中,提到了等值面的生成,后面有人经常会问等值线的生成,本文在前文的基础上做了一点修改,完成了等值线的geotools生成。 效果 ? ?...; import com.lzugis.geotools.utils.FeaureUtil; import com.lzugis.geotools.utils.GeoJSONUtil; import com.vividsolutions.jts.geom.Geometry...; import org.geotools.data.FeatureSource; import org.geotools.data.shapefile.ShapefileDataStore; import...org.geotools.data.simple.SimpleFeatureCollection; import org.geotools.data.simple.SimpleFeatureSource...; import org.geotools.feature.FeatureCollection; import org.geotools.feature.FeatureIterator; import
本文是GeoTools基础学习的一部分之一。 本文将重点介绍GeoTools的技术框架,对GeoTools的相关依赖与功能jar的叙述进行讲解。...文章从GeoTools的插件、扩展、XML支持、非GeoTools的官方扩展这几个方面来进行讲解。...通过本文的内容,您可以对GeoTools的架构更进一步的熟悉,同时对GeoTools的主要模块更加了解。...1、GeoTools Library GeoTools库是一个丰富的软件资源库,每个模块都建立在前一个模块中定义的思想和概念之上。通过丰富的组件来构成功能强大的Geotools生态。...通过本文的内容,您可以对GeoTools的架构更进一步的熟悉,同时对GeoTools的主要模块更加了解。关于GeoTools的源代码阅读,以后会在系列博客中进行详细介绍。
GeoTools库在开发时执行OGC规范。目前GeoTools的最新版本是22-SNAPSHOT。 [2] GeoTools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。...GeoTools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的开发。 操作 本文主要写的是利用GeoTools 连接shp文件,并对其进行增删改。...环境搭建 由于geotools是一个GIS类库,所以直接用maven进行构建就可以。...1.gt-main模块geotools支持从一系列数据源访问特征信息(即向量信息)。其他数据存储插件可以从gt-jdbc中获得,用于数据库访问。 ?... ${geotools.version} 2.
概述 本文讲述如何在geotools中实现蜂巢效果。...import org.geotools.grid.GridElement; import org.geotools.grid.GridFeatureBuilder; import org.geotools.grid.PolygonElement...; import org.geotools.data.FileDataStore; import org.geotools.data.FileDataStoreFinder; import org.geotools.data.Transaction...; import org.geotools.geometry.jts.ReferencedEnvelope; import org.geotools.grid.Envelopes; import org.geotools.grid.GridFeatureBuilder...; import org.geotools.grid.Grids; import org.geotools.grid.hexagon.HexagonOrientation; import org.geotools.grid.hexagon.Hexagons
概述 本文讲述如何结合geotools写一个类似于WMS的地图服务,并实现在OL4中的调用展示。 效果 ?...; import org.geotools.data.simple.SimpleFeatureSource; import org.geotools.factory.CommonFactoryFinder...; import org.geotools.geometry.jts.ReferencedEnvelope; import org.geotools.map.FeatureLayer; import org.geotools.map.Layer...; import org.geotools.map.MapContent; import org.geotools.referencing.CRS; import org.geotools.renderer.lite.StreamingRenderer...; import org.geotools.styling.SLD; import org.geotools.styling.SLDParser; import org.geotools.styling.Style
java.util.HashMap; import java.util.Map; import org.geotools.data.FeatureWriter; import org.geotools.data.FileDataStoreFactorySpi...; import org.geotools.data.Transaction; import org.geotools.data.shapefile.ShapefileDataStore; import...org.geotools.data.shapefile.ShapefileDataStoreFactory; import org.geotools.data.simple.SimpleFeatureIterator...; import org.geotools.data.simple.SimpleFeatureSource; import org.geotools.feature.simple.SimpleFeatureTypeBuilder...; import org.geotools.geometry.jts.JTS; import org.geotools.geometry.jts.JTSFactoryFinder; import org.geotools.referencing.CRS
概述 本文讲述如何在geotools中生成泰森多边形,并shp输出。...geotools中的生成 1、创建测试点 ?...; import org.geotools.data.Transaction; import org.geotools.data.shapefile.ShapefileDataStore; import...org.geotools.data.shapefile.ShapefileDataStoreFactory; import org.geotools.feature.simple.SimpleFeatureTypeBuilder...; import org.geotools.geometry.jts.JTSFactoryFinder; import org.geotools.referencing.crs.DefaultGeographicCRS
实现后 3、代码 package com.lzugis.netcdf; import com.lzugis.CommonMethod; import com.lzugis.geotools.EquiSurface
概述 本文讲述结合geotools实现获取给定点的DEM(tif格式)高程值。 需求描述 1、在web端绘制一条曲线; 2、获取各节点处的高程值; 3、根据高程值绘制高程堆积图。
今天在使用Java版GIS开源工具GeoTools读取ShapeFile文件,其中ShapeFile的dbf文件(属性表)中的属性为中文字符,按照官方的案例读取结果显示为乱码。...原始的代码为: /** * @description: 使用GeoTools库读取ShapeFile文件 * @author Zhenyu Tan * @date 2016年8月9日 下午10:...System.out.println(attr.toString()); } } } } 原因分析: 通过查看ShapefileDataStore的源码可以发现:GeoTools
概述 在Armap工具箱‘分析工具->叠加分析’,不得不说,非常好用,本文给你讲讲如何在geotools中实现。...; import org.geotools.data.Transaction; import org.geotools.data.shapefile.ShapefileDataStore; import...org.geotools.data.shapefile.ShapefileDataStoreFactory; import org.geotools.data.simple.SimpleFeatureCollection...; import org.geotools.data.simple.SimpleFeatureIterator; import org.geotools.data.simple.SimpleFeatureSource...; import org.geotools.feature.simple.SimpleFeatureTypeBuilder; import org.geotools.referencing.crs.DefaultGeographicCRS
概述: 本文讲解通过Geotools实现用shp和sld导出图片。...; import org.geotools.data.simple.SimpleFeatureSource; import org.geotools.factory.CommonFactoryFinder...; import org.geotools.geometry.jts.ReferencedEnvelope; import org.geotools.map.FeatureLayer; import org.geotools.map.Layer...; import org.geotools.map.MapContent; import org.geotools.referencing.crs.DefaultGeographicCRS; import...org.geotools.renderer.lite.StreamingRenderer; import org.geotools.styling.SLDParser; import org.geotools.styling.Style
概述: 在前面有一篇文章中讲到了GDAL将shp转换为GeoJson的实现,以及ol2、3以及Arcgis for js中GeoJson的加载,今天呢,书接上文,介绍Geotools如何读取shp...读取shp package com.lzugis.web; import net.sf.json.JSONArray; import org.geotools.data.shapefile.ShapefileDataStore...; import org.geotools.data.simple.SimpleFeatureCollection; import org.geotools.data.simple.SimpleFeatureIterator...; import org.geotools.data.simple.SimpleFeatureSource; import org.opengis.feature.Property; import org.opengis.feature.simple.SimpleFeature...附录 本实例相关Geotools jar下载地址:链接:http://pan.baidu.com/s/1o8xTUXW 密码:u601 Geotools12.2 jar下载地址:链接:http://pan.baidu.com
概述: 本文讲述如何在geotools中实现shp数据的缓冲区分析并保存到shp文件中。...; import org.geotools.data.Transaction; import org.geotools.data.shapefile.ShapefileDataStore; import...org.geotools.data.shapefile.ShapefileDataStoreFactory; import org.geotools.data.simple.SimpleFeatureCollection...; import org.geotools.data.simple.SimpleFeatureIterator; import org.geotools.data.simple.SimpleFeatureSource...; import org.geotools.feature.simple.SimpleFeatureTypeBuilder; import org.geotools.referencing.crs.DefaultGeographicCRS
虽然在之前的博客中也提到过一些GeoTools的相关知识,介绍不是很输入。因此萌生想对GeoTools来进行深入学习的想法,同时想将在学习过程中的心得、经验与大家分享。...本文想从以下几点来介绍,首先介绍GeoTools的官方仓库和基本架构,其次介绍Geotools的相关功能,然后介绍关于Geotools的相关学术科研进展。希望对各位朋友的学习有一点点的帮助。...因此有必要对GeoTools的知识进行深入的介绍。让大家知道在使用Java进行地理信息系统开发时,可以有一个Gis开发利器-GeoTools。...3、使用Geotools的一些项目 GeoTools 被许多项目使用,包括 Web 服务,命令行工具和桌面应用程序。...本文想从以下几点来介绍,首先介绍GeoTools的官方仓库和基本架构,其次介绍Geotools的相关功能,然后介绍关于Geotools的相关学术科研进展。
概述:从本节开始,博文中会陆陆续续更新一些有关geotools相关的文章。本节讲述的是geotools的开胃菜,打开本地shp文件,并在窗口中显示。 引言:geotools简介。...1、下载geotools 你可以从geotools官方网站http://geotools.org/下载,但是这个网站有时候会连接不上,为方便下载,我上传至我的百度网盘,下载地址为:http://pan.baidu.com...2、新建工程,并导入geotools包 在eclipse中新建——java工程,即可,并添加geotools的jar引用。...; import org.geotools.map.FeatureLayer; import org.geotools.map.Layer; import org.geotools.map.MapContent...; import org.geotools.styling.SLD; import org.geotools.styling.Style; import org.geotools.swing.JMapFrame