Skip to content

GeoDataFrame: [MISSING_DEPENDENCY_CLASS] Cannot access class 'org.locationtech.jts.geom.Geometry'. #1920

Description

@koperagen

geotools classes are in implementation scope of dataframe-geo and kandy-geo and as a result not exposed in API of a module
Cannot use them in Gradle project:
Image

using setup from this guide https://kotlin.github.io/kandy/geo-plotting-guide.html#-jiatoc_19

implementation("org.jetbrains.kotlinx:kandy-geo:0.8.3")
implementation("org.jetbrains.kotlinx:dataframe-geo:1.0.0-Beta5")
implementation("org.jetbrains.kotlinx:dataframe:1.0.0-Beta5")

dataframe-geo/build.gradle.kts:
Image

Options:
either 1. Need to update setup here https://kotlin.github.io/kandy/geo-plotting-guide.html#-jiatoc_19
to include

implementation("javax.media:jai-core:1.1.3")
implementation("org.locationtech.jts:jts-core:1.20.0")
implementation("org.locationtech.jts.io:jts-io-common:1.20.0")

or 2. Move dependencies to api scope

Metadata

Metadata

Labels

documentationImprovements or additions to documentation (not KDocs)geoAnything related to the GeoDataFrame

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions