Skip to content
CAI
Software that uses CAICheck a score

bjornharrtell/jts2geojson

52.8

Adequate · 7 November 2026

523

lines of production code

Java

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This is a Java library that provides utilities for parsing and serializing GeoJSON data, as well as converting between GeoJSON and JTS geometry objects. It supports standard GeoJSON types including points, lines, polygons, and their multi-variants, along with features and feature collections. The system handles both 2D and 3D coordinates and relies on Jackson for JSON processing and JTS for geometry operations.

Features

Initial release of GeoJSON parsing and serialization library

This change introduces the core library for handling GeoJSON data in Java. It provides classes for all standard GeoJSON types, including Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection, Feature, and FeatureCollection. The library uses Jackson for JSON serialization and deserialization, allowing users to parse GeoJSON strings into Java objects and vice versa via the GeoJSONFactory.

src/main/java/org/wololo/geojson · high confidence

Initial release of JTS to GeoJSON conversion library

This change introduces the core components for converting between JTS geometry objects and GeoJSON format. The new GeoJSONReader class enables parsing GeoJSON strings or objects into JTS Geometry instances, supporting Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection types, while also allowing users to supply a custom GeometryFactory. The new GeoJSONWriter class provides the reverse capability, converting JTS Geometry objects into GeoJSON structures, including support for FeatureCollections via a dedicated method. Both readers and writers handle 3D coordinates (XYZ), preserving the Z-axis when present and omitting it when NaN.

src/main/java/org/wololo/jts2geojson · high confidence

Test coverage

Added Scala-based test suite for GeoJSON serialization and deserialization

Added a comprehensive set of Scala tests (using ScalaTest) to verify the GeoJSON library's ability to parse and write various geometry types, including Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. The tests cover standard 2D coordinates as well as XYZ (3D) coordinates, ensuring that features, feature collections, bounding boxes, and feature IDs are correctly serialized and deserialized. Additionally, helper classes were added to support Jackson-based JSON parsing for testing object mapping.

src/test · high confidence

Dependencies

Update to version 0.18.1 with dependency upgrades

The project has been updated to version 0.18.1, upgrading the core JTS dependency to 1.18.1 and Jackson libraries to 2.13.x (jackson-databind 2.13.4.2, jackson-annotations 2.13.4). The build now targets Java 11, and test dependencies have been updated to Scala 2.13.10 and ScalaTest 3.2.14.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 53 → 53 (-0.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 74 → 74 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 43 → 43 (+0.0)
  • Readiness 52 → 51 (-1.1)
  • Security 84 → 79 (-5.0)

Resolved (26)

  • Documentation: no installation or build instructions (README.md)
  • Documentation: no project overview (README.md)
  • Documentation: no usage examples (README.md)
  • Outdated (compile): com.fasterxml.jackson.core:jackson-annotations
  • Outdated (compile): com.fasterxml.jackson.core:jackson-core
  • Outdated (compile): com.fasterxml.jackson.core:jackson-databind
  • Outdated (compile): org.locationtech.jts:jts-core
  • Outdated (test): org.scala-lang.modules:scala-xml_2.13
  • Outdated (test): org.scala-lang:scala-library
  • Outdated (test): org.scala-lang:scala-reflect
  • Outdated (test): org.scalactic:scalactic_2.13
  • Outdated (test): org.scalatest:scalatest-compatible
  • Outdated (test): org.scalatest:scalatest-core_2.13
  • Outdated (test): org.scalatest:scalatest-diagrams_2.13
  • Outdated (test): org.scalatest:scalatest-featurespec_2.13
  • Outdated (test): org.scalatest:scalatest-flatspec_2.13
  • Outdated (test): org.scalatest:scalatest-freespec_2.13
  • Outdated (test): org.scalatest:scalatest-funspec_2.13
  • Outdated (test): org.scalatest:scalatest-funsuite_2.13
  • Outdated (test): org.scalatest:scalatest-matchers-core_2.13
  • …and 6 more

New (1)

  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

bjornharrtell/jts2geojson was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit fb751e818a2116dd5220db0d7ef7f4ee3f294a57 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-c34be012586e.