天天看点

geotools模块梳理

Module

目的

<code>gt-render</code>

地图,渲染(org.geotools.[map|render])

<code>gt-jdbc</code>

访问空间数据库(org.geotools(.data).jdbc)

<code>gt-main</code>

<code>gt-opengis</code>的延展和实现

<code>gt-xml</code>

XML数据访问(org.geotools.xml)

<code>gt-cql</code>

查询过滤器(org.geotools.filter)

<code>gt-coverage</code>

访问栅格格式数据(org.geotools.[coverage | image])

<code>gt-referencing</code>

坐标转换(org.geotools.[referencing | geometry | ...])

<code>gt-metadatas</code>

说明和描述(org.geotools.[metadata | util | ...])

<code>gt-opengis</code>

数据访问(data),几何体(geometry),要素(feature),样式(style),渲染等

DataUtilities

创建<code>FeatureType</code>,修改<code>FeatureType</code>

创建<code>FeataureCollection</code>

获取<code>FeatureSource</code>

创建<code>FeatureReader</code>

<code>Feature</code>属性过滤

DataStore

DataStore存储矢量数据的元数据,可以获取FeatureReader,FeatureWriter等

FeatureSource真正存储矢量数据,操作矢量数据

DataAccessFactorySpi,插件,用于生成FeatureStore

FeatureCollection

遍历feature

从featureStore中获取,dataStore.getFeatureSource( typeName )

创建默认DefaultFeatureCollection

FeatureCollection的聚合,分组

Feature

构建FeatureType

添加Geometry

获取Feature的Geometry和Property等

Function List

DefaultFunctionFactory

ProcerssFunctionFactory

PolygonLabelFunctionFactory

WKT Parser

解析wkt格式的geometry

JTS Utility Class

测距,投影转换等

Java2D Shape

生成2D形状

Filter

属性选择

bbox选择

Parameter

连接参数

Envelope

CRS

定义坐标系(epsg, wkt)

定义转换

转换几何体

Geometry

创建Point,LineString, Polygon 的方式

Geometry 拓扑关系等

是否包含(Contains),是否重叠(Crosses)等

Geometry 操作

拓扑,凸包等

生成featuretype

生成feature

属性过滤,空间过滤