Skip to content

lreis2415/egc-commons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EGC-Commons

Reusable Java components for EGC

Formerly commons module in project cybersolim

开发完之后,必须deploy到maven仓库,同时在项目中刷新之后才能使用

Maven dependency

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>

Packages

  • 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
    • BaseControllerJsonResult et al.
  • XML
  • Test

GDAL 版本

gdal 2.4.4

gisinternals 上的 gdal-204-1900-x64-core

运行 RasterTest 下的单元测试,测试 gdal 是否安装配置正确。 能够输出版本信息说明 gdalgdal.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>

注意,排除之后,依赖这些库的相关功能会无法使用

More

For more reusable Java components,please refer to Apache Commons project and Google Guava project first.

About

reusable Java components for easy geo computation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages