geojson-jvm

jvm lib of geojson-jvm

Лицензия

Лицензия

Категории

Категории

Данные Geo Прикладные библиотеки Geospatial JSON
Группа

Группа

io.data2viz.geojson
Идентификатор

Идентификатор

geojson-jvm
Последняя версия

Последняя версия

0.6.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

geojson-jvm
jvm lib of geojson-jvm
Ссылка на сайт

Ссылка на сайт

https://github.com/data2viz/geojson-kotlin
Система контроля версий

Система контроля версий

https://github.com/data2viz/geojson-kotlin

Скачать geojson-jvm

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.data2viz.geojson/geojson-jvm/ -->
<dependency>
    <groupId>io.data2viz.geojson</groupId>
    <artifactId>geojson-jvm</artifactId>
    <version>0.6.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.data2viz.geojson/geojson-jvm/
implementation 'io.data2viz.geojson:geojson-jvm:0.6.0'
// https://jarcasting.com/artifacts/io.data2viz.geojson/geojson-jvm/
implementation ("io.data2viz.geojson:geojson-jvm:0.6.0")
'io.data2viz.geojson:geojson-jvm:jar:0.6.0'
<dependency org="io.data2viz.geojson" name="geojson-jvm" rev="0.6.0">
  <artifact name="geojson-jvm" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.data2viz.geojson', module='geojson-jvm', version='0.6.0')
)
libraryDependencies += "io.data2viz.geojson" % "geojson-jvm" % "0.6.0"
[io.data2viz.geojson/geojson-jvm "0.6.0"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-stdlib jar 1.2.71
io.data2viz.geojson : geojson-common jar 0.6.0
com.fasterxml.jackson.core : jackson-core jar 2.7.3
com.fasterxml.jackson.core : jackson-databind jar 2.7.3
com.fasterxml.jackson.core : jackson-annotations jar 2.7.0
com.fasterxml.jackson.module : jackson-module-kotlin jar 2.9.0

Модули Проекта

Данный проект не имеет модулей.

GeoJson Kotlin

Download Build Status GitHub License

This project goal is to provide GeoJson deserialization for kotlin multiplatform (JVM, JS).

The specific format of GeoJson files does not allow the use of kotlinx.serialization. JS and JVM implementations are completely distinct but they share the same base objects and interfaces.

JVM implementation is based on the project GeoJson-Jackson.

The project is deployed on jcenter so you have to define it in your repositories.

repositories {
    jcenter()
}

The project is deployed using Gradle metadata. You can use the dependency on Gradle Metadata. Depending on your platform (JS or JVM) the correct artifact will be imported.

    compile 'io.data2viz.geojson:core:0.6.2'

The JS version is available in both modes, Legacy and IR.

You can then use the String extension toGeoJsonObject to transform any String into a GeoJsonObject:

val featureCollection = json.toGeoJsonObject() as FeatureCollection

If you deserialize a FeatureCollection that have properties (main use case) you need to pass a function that transform the properties in a specific domain object.

class CountryProperties(val name: String, val id: Int)

val countries = countriesGeoJson.toFeatures {
        CountryProperties(stringProperty("name"), intProperty("id"))
}

You then retrieve a list of Pair<Feature, CountryPropertiess>

io.data2viz.geojson

Версии библиотеки

Версия
0.6.0
0.6.0-RC2