Skip to content
Agentmart
Submit a tool

django-rest-framework-gis

Guide Django REST Framework and GeoDjango projects through django-rest-framework-gis installation, GeoJSON serialization, spatial filtering, pagination…

Skill by VectorSpaceLab

IndexedMIT★ 341
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/vectorspacelab-django-rest-framework-gis

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Guide Django REST Framework and GeoDjango projects through django-rest-framework-gis installation, GeoJSON serialization, spatial filtering, pagination, OpenAPI schema generation, and backend troubleshooting.

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/django-rest-framework-gis

What's inside

Skill name
django-rest-framework-gis
Description
Guide Django REST Framework and GeoDjango projects through django-rest-framework-gis installation, GeoJSON serialization, spatial filtering, pagination, OpenAPI schema generation, and backend troubleshooting.
License
MIT
Metadata
disco-role: operating
Instructions
76 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (23)

  • SKILL.md
  • repo-provenance.md · references/
  • repo-routing-metadata.json · references/
  • troubleshooting.md · references/
  • SKILL.md · sub-skills/integration-testing/
  • environment.md · sub-skills/integration-testing/references/
  • testing.md · sub-skills/integration-testing/references/
  • troubleshooting.md · sub-skills/integration-testing/references/
  • check_environment.py · sub-skills/integration-testing/scripts/
  • SKILL.md · sub-skills/pagination-and-schema/
  • api-reference.md · sub-skills/pagination-and-schema/references/
  • troubleshooting.md · sub-skills/pagination-and-schema/references/
  • workflows.md · sub-skills/pagination-and-schema/references/
  • SKILL.md · sub-skills/serialization/
  • api-reference.md · sub-skills/serialization/references/
  • troubleshooting.md · sub-skills/serialization/references/
  • workflows.md · sub-skills/serialization/references/
  • geometry_smoke.py · sub-skills/serialization/scripts/
  • SKILL.md · sub-skills/spatial-filtering/
  • api-reference.md · sub-skills/spatial-filtering/references/
  • troubleshooting.md · sub-skills/spatial-filtering/references/
  • workflows.md · sub-skills/spatial-filtering/references/
  • tile_bbox.py · sub-skills/spatial-filtering/scripts/

SKILL.md (first lines)

# django-rest-framework-gis

Use this repo skill when a Django REST Framework endpoint needs GeoDjango
geometry as GeoJSON, GeoJSON Features or FeatureCollections, spatial query
filters, GeoJSON pagination, or OpenAPI geometry schemas. It covers the public
`djangorestframework-gis` package, not a private application model or a
replacement for a spatial database.

## Install and smoke-check

Install the public distribution and its declared runtime dependencies:

```bash
python -m pip install djangorestframework-gis
python -c "import rest_framework_gis; print(rest_framework_gis.get_version())"
```

The package requires Django, Django REST Framework, `django-filter`, and
GeoDjango's native GEOS/GDAL/PROJ libraries for geometry operations. Add
`rest_framework_gis` to `INSTALLED_APPS` after `rest_framework` when you want
ordinary DRF `ModelSerializer` classes to map GeoDjango fields automatically.
Use [integration-testing](sub-skills/integration-testing/SKILL.md) for supported
version selection, native-library checks, and spatial-database boundaries.

For a no-database JSON diagnostic, run the bundled checker from the installed
skill tree:

```bash
python sub-skills/integration-testing/scripts/check_environment.py --help
python sub-skills/integration-testing/scripts/check_environment.py
```

## Route the task

- **GeoJSON geometry or Feature I/O:** read
  [serialization](sub-skills/serialization/SKILL.md). It owns `GeometryField`,
  `GeometrySerializerMethodField`, `GeoFeatureModelSerializer`, IDs,
  properties, bbox, SRID transforms, precision, deduplication, and null/empty
  behavior.
- **BBox, TMS tile, geometry, distance, or nearest/farthest queries:** read
  [spatial-filtering](sub-skills/spatial-filtering/SKILL.md). It owns DRF filter
  backends, query parameters, view attributes, units, SRIDs, and parse errors.
- **FeatureCollection pagination or OpenAPI:** read
  [pagination-and-schema](sub-skills/pagination-and-schema/SKILL.md). It owns
  `GeoJsonPagination`, `GeoFeatureAutoSchema`, geometry nesting, bbox schemas,
  and DRF version-specific schema behavior.
- **Installation, GeoDjango loaders, compatibility, test setup, or database
  verification:** read
  [integration-testing](sub-skills/integration-testing/SKILL.md). It separates
  package/GEOS/GDAL smoke from ORM and spatial-database evidence.

## Cross-cutting rules

1. Treat coordinates as GeoJSON `x,y` (longitude/easting, latitude/northing)
   and bbox values as west, south, east, north unless the application documents
   a different CRS.
2. `GeoFeatureModelSerializer` requires `Meta.geo_field`; use `None` explicitly
   for a geometry-less Feature. Choose one bbox mode: `auto_bbox` is read-only,
   while `bbox_geo_field` is writable and mutually exclusive with `auto_bbox`.
3. A GEOS/GDAL import or field serializer smoke does not prove that ORM
   predicates such as `dwithin`, `contained`, `bboverlaps`, or
   `GeometryDistance` work on the target database. Verify the actual spatial
   backend separately.
4. Read [references/troubleshooting.md](references/troubleshooting.md) for
   cross-cutting install, settings, native-library, dependency, and backend
   failures. Read [references/repo-provenance.md](references/repo-provenance.md)
   before deciding whether this skill matches a changed checkout.

## Scope boundary

This skill distills the package's public API and repository-tested behavior. It
does not include private environment paths, the original repository as a
runtime dependency, maintainer release automation, or the expensive 10,000-
object performance benchmark.

From VectorSpaceLab/AREX-Skill, MIT.

More from VectorSpaceLab/AREX-Skill

Signals

Stars
341
Forks
26
Open issues
0
Last commit (this folder)
Aug 26, 2026 (2 months ago)
Last release
Sep 2, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from VectorSpaceLab

Cite this page

django-rest-framework-gis skill. Agent Mart. https://agentmart.dev/skills/vectorspacelab-django-rest-framework-gis (last updated 2026-10-24)