Reusable Java components for EGC
Formerly commons module in project cybersolim
开发完之后,必须deploy到maven仓库,同时在项目中刷新之后才能使用
in private nexus repository http://192.168.6.56:8081/repository/egc/
<dependency>
<groupId>org.egc</groupId>
<artifactId>commons</artifactId>
<version>2.1-SNAPSHOT</version>
</dependency>
- Command
- Class CommonsExec:Run Cmd/Shell commands use Apache Commons-Exec
- Exception
- Class BusinessException
- Files
- Raster
- GeoTiffUtil / RasterFile2PostGIS
- Security
- Shiro
- JWT
- Util
- Date / String / Properties et al.
- Web
- BaseController、JsonResult et al.
- XML
- Test
gdal 2.4.4
gisinternals 上的
gdal-204-1900-x64-core
运行 RasterTest
下的单元测试,测试 gdal
是否安装配置正确。
能够输出版本信息说明 gdal
及 gdal.jar
安装配置成功。
能够读取元数据说明安装的gdal
版本与使用的gdal.jar
的版本一致
可以根据需要排除某些依赖,例如
<dependency>
<groupId>org.egc</groupId>
<artifactId>commons</artifactId>
<version>${commons.version}</version>
<exclusions>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-process-raster</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-geotiff</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
</exclusion>
<exclusion>
<groupId>org.gdal</groupId>
<artifactId>gdal</artifactId>
</exclusion>
<exclusion>
<groupId>it.geosolutions</groupId>
<artifactId>geoserver-manager</artifactId>
</exclusion>
</exclusions>
</dependency>
注意,排除之后,依赖这些库的相关功能会无法使用
For more reusable Java components,please refer to Apache Commons project and Google Guava project first.