agentleFS
geoai-latamgeoai-latam/SKILL_JS5_ARCGIS/skills/arcgis-geometry-operations/AGENTS.md

SKILL_JS5_ARCGIS / arcgis-geometry-operations

AGENTS.md1 starsChanged 6 months agoMITView on GitHub

Quick-reference for client-side geometry in SDK 5.1. Read before spatial math.

The file

Files
AGENTS.md

Agent Guide: arcgis-geometry-operations

Quick-reference for client-side geometry in SDK 5.1. Read before spatial math.

Quick Decision Tree

  1. Lon/lat + meters? → geodesicBufferOperator / geodetic*Operator, after await op.load().
  2. Projected, small area? → planar bufferOperator, areaOperator, lengthOperator.
  3. Relationship? → containsOperator, withinOperator, intersectsOperator, ...
  4. geometryEngine in the code? → replace it (deprecated since 4.32; table in api-detail.md).

Setup Checklist

  • Import operators as namespaces (import * as bufferOperator).
  • await op.load() before any geodesic/geodetic operator.
  • Both inputs in the same spatial reference (otherwise null).
  • simplifyOperator before measuring self-intersecting rings.
  • Heavy batches in a worker: executeMany is synchronous too.

Anti-patterns (one-liner reminders)

  • ❌ bufferOperator on lon/lat with meters: throws.
  • ❌ Geodetic operator without load(): "m is not a function".
  • ❌ geometryEngine.* in new code.
  • ❌ Area of an unsimplified bowtie: 0.

Files in This Skill

  • SKILL.md / SKILL.es.md: full guides
  • references/api-detail.md: operators, load() list, geometryEngine migration
  • references/examples.md: buffer / relate / measure
  • references/pitfalls.md: extended troubleshooting
  • scripts/snippet-operators.ts, snippet-engine.ts (geometryEngine code rewritten with operators)

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.