Skip to content

针对 tile38 地理空间数据库封装的的连接客户端

Notifications You must be signed in to change notification settings

HkMoyun/tile38-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

tile38-client

First mvn install:install-file -Dfile=tile38-cli-2.0.1.jar -DgroupId=com.mapabc.tile38-cli -DartifactId=tile38-cli -Dversion=2.0.1 -Dpackaging=jar

Add this dependency to your pom:

    <dependency>
        <groupId>com.mapabc</groupId>
        <artifactId>tile38-cli</artifactId>
        <version>2.0.1</version>
    </dependency>

Configuration

@Value("${tile38.host}")
private String host;

@Value("${tile38.port}")
private Integer port;

@Bean
public Tile38Template getTile38Template(){
    Tile38Client instance = new Tile38Client(host, port, null);
    return new Tile38TemplateImpl(instance);
}

Service

@Autowired
Tile38Template tile38Template;
public void test(){
    String data = tile38Template.getKeys("OD-*");
    JSONArray keys = JSONObject.parseObject(data).getJSONArray("keys");
    .....
}

About

针对 tile38 地理空间数据库封装的的连接客户端

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages