概述mapbox-gl主要数据源来自mapbox vector tile,本文就是要阐述怎样把postgresql中的地理空间数据转换成vector tile,流程图如下: 配置 该工程采用spring boot+maven,所以第一步少不了pom.xml配置: 添加墨卡托投影转换工具类: 核心内
Maven <repository> <id>ECC</id> <url>https://maven.ecc.no/releases</url> </repository> <dependency> <groupId>no.ecc.vectortile</groupId> <artifactId>java-vector-tile</artifactId> <version>1.4.1</version> </dependency> Generate VectorTile.java ...
Maven - with JTS from Vividsolutions <repository> <id>ECC</id> <url>https://github.com/ElectronicChartCentre/ecc-mvn-repo/raw/master/releases</url> </repository> <dependency> <groupId>no.ecc.vectortile</groupId> <artifactId>java-vector-tile</artifactId> <version>1.2.7</version> </depen...
Maven Gradle Reading MVTs Building and Writing MVTs 1) Create or Load JTS Geometry 2) Create Tiled JTS Geometry in MVT Coordinates 3) Create MVT Builder, Layers, and Features 4) Write MVT Buffering Polygons Beyond MVT Extent Examples
Maven Latest version using JTS 15 with android API level 15 support: <dependency> <groupId>com.wdtinc</groupId> <artifactId>mapbox-vector-tile</artifactId> <version>3.1.1</version> </dependency> JTS 14 with no android support: <dependency> <groupId>com.wdtinc</groupId> <artifactId>map...
to build the libraries and add them to the local maven repository. ./gradlew :vtm-android-example:run to run the android example ./gradlew :vtm-desktop:run to run the desktop demo (only Linux64 and Win64 native libs are provided atm) ...