agentleFS
KotlinKotlin/dataframe/dataframe-geo/AGENTS.md

dataframe / dataframe-geo

AGENTS.md1.1k starsChanged 26 days agoApache-2.0View on GitHub

Guidance for this module. See the root AGENTS.md for repo-wide build/style/KoDEx rules; only module-specific details are here. dataframe-geo (artifact dataframe-geo, "GeoDataFrame API") — geographical/GIS support for Kotlin DataFrame. Experimental. Depends on api(core). The companion dataframe-geo-jupyter module adds the Kotlin Notebook integration (see below). Both are declared as normal subprojects in the root settings.gradle.kts. Package root: org.jetbrains.kotlinx.dataframe.geo. - GeoDataFrame<T : WithGeometry> (GeoDataFrame.kt) — wraps a DataFrame<T> + a nullable CoordinateReferenceSystem crs. Key members: modify { }, applyCrs(targetCrs) (JTS/GeoTools reprojection; default CRS…

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 3 mentionsJun 2026: 8 mentionsJul 2026: 7 mentionsAug 2026: 6 mentionsSep 2026: 6 mentionsOct 2026: 12 mentionsNov 2026: 1 mention
Dec 2025Jun 2026Nov 2026
Mentions a month of the Kotlin/dataframe repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about Kotlin/dataframe

The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 51

Talked about on GitHub and Bluesky (51 times).

On GitHub · 50

45 more on GitHub

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test data in src/test/resources/: simple_points.geojson and a full shapefile set simple_points/simple_points.{shp,shx,dbf,prj,fix}.

    line 47
  2. Very specific:

    Run: ./gradlew dataframe-geo:test (add -Pkotlin.dataframe.debug=true to match CI).

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — dataframe-geo

Guidance for this module. See the root AGENTS.md for repo-wide build/style/KoDEx rules; only module-specific details are here.

What this module is

dataframe-geo (artifact dataframe-geo, "GeoDataFrame API") — geographical/GIS support for Kotlin DataFrame. Experimental. Depends on api(core). The companion dataframe-geo-jupyter module adds the Kotlin Notebook integration (see below). Both are declared as normal subprojects in the root settings.gradle.kts.

Package root: org.jetbrains.kotlinx.dataframe.geo.

Public API surface

  • GeoDataFrame<T : WithGeometry> (GeoDataFrame.kt) — wraps a DataFrame<T> + a nullable CoordinateReferenceSystem crs. Key members: modify { }, applyCrs(targetCrs) (JTS/GeoTools reprojection; default CRS is EPSG:4326/WGS 84), and companion DEFAULT_CRS.
  • WithGeometry.kt — @DataSchema interfaces: WithGeometry (geometry: Geometry) and the specializations WithPointGeometry, WithMultiPointGeometry, WithLineStringGeometry, WithMultiLineStringGeometry, WithPolygonGeometry, WithMultiPolygonGeometry. Each has a checked-in generated …$Extensions.kt.
  • toGeo.kt — AnyFrame.toGeo(crs) (view a frame that has a geometry column as a GeoDataFrame).
  • io/read.kt — readGeoJson / readShapefile on both GeoDataFrame.Companion and DataFrame.Companion. Shapefile resolution handles .shp, .shp.gz, a directory containing <dir>/<dir>.shp, and remote URLs.
  • io/write.kt — writeGeoJson / writeShapefile are extension functions on a GeoDataFrame<*> instance (not on any companion).
  • geotools/ — conversions to/from GeoTools SimpleFeatureCollection. jts/ — geometry helpers (bounds, geometryExtensions, toMulti). geocode/Geocoder.kt — experimental Geocoder.geocodeCountries(...) (POSTs to a JetBrains geocoding endpoint via Ktor and parses GeoJSON).

Dependencies & build gotchas

  • OSGeo repository must come before Maven Central in repositories { } — GeoTools artifacts resolve from https://repo.osgeo.org/repository/release.
  • JAI exclusion. A helper excludeJaiCore() strips javax.media:jai_core from every GeoTools dependency, and JAI is re-added separately (see the explanatory comment in build.gradle.kts). Preserve this when touching deps.
  • Deps: GeoTools (geotools.main/shapefile/geojson/referencing/epsg.hsql), LocationTech JTS (org.locationtech.jts.geom.* is the geometry model), and Ktor client (for the geocoder).
  • Registers a checked-in generated-accessors source root (src/generated-dataschema-accessors/main/kotlin/) — don't hand-edit those files. Uses friendPaths into :core.
  • Applies the kodex plugin (KDocs preprocessed; generated sources are build output — see root AGENTS.md).
  • Targets JDK 8 (kotlinJvm8);

Tests

  • src/test/kotlin/.../geo/io/IOTest.kt is the main test (JUnit + kotlin.test; testImplementation(projects.dataframeJson)).
  • Test data in src/test/resources/: simple_points.geojson and a full shapefile set simple_points/simple_points.{shp,shx,dbf,prj,fix}.
  • Two tests hit the network (readShapefileRemoteUrl, readShapefileDirectoryRemoteUrl) fetching from a GitHub datasets repo — expect them to fail offline. Note also that GeoTools CRS equality can't always be compared directly (one assertion is intentionally commented out).
  • Run: ./gradlew dataframe-geo:test (add -Pkotlin.dataframe.debug=true to match CI).

dataframe-geo-jupyter

Separate module (JDK 11, jupyter.api). Single file jupyter/IntegrationGeo.kt — a JupyterIntegration that adds imports, registers the WithGeometry schemas (useSchema<…>()), and provides a GeoDataFrame renderer. It needs log4j on the classpath for GeoTools. Registered via processJupyterApiResources { libraryProducers = [...] }.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.