KTS — a Kotlin Multiplatform port of JTS 1.20.0 #1219
mipastgt
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'd like to share KTS, a faithful Kotlin Multiplatform port of JTS 1.20.0 that I've just published:
de.mpmediasoft.kts, version1.20.0.0It's a language port, not a fork or redesign — the goal is behaviour identical to upstream, keeping the same public types and the original
org.locationtech.jts.*package names, so existing JTS knowledge and docs carry over directly. To keep it honest, the Kotlin is compiled against JTS's own unmodified Java test suite (2100+ tests) as its reference.Targets: JVM (Java 8+), JS (Node/browser), Wasm/JS, and Kotlin/Native (macOS, iOS, Linux, Windows).
Modular packaging:
kts-core(geometry model, predicates, overlay, buffer, algorithms, WKT/WKB writers) plus à-la-carte IO moduleskts-io-wkt,kts-io-gml,kts-io-kml,kts-io-geojson,kts-io-files.The main deliberate deviations from upstream are documented in the repo: IO readers split into
kts-io-*modules, GeoJSON built on kotlinx-serialization, stream-based IO as JVM-only extensions, and the removal of JVM-only surface (java.io.Serializable,Cloneable, theawtpackage). Full list: KOTLIN-MP-COMPATIBILITY.md.Huge thanks to the JTS maintainers and contributors — this port stands entirely on your work. Sharing it here in case it's useful to anyone needing JTS geometry outside the JVM.
All reactions