Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support configurable SRID on geography model fields

Aperta
#5,388 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
dart, postgresql
Ambito
database

Direzione di ricerca

Start by reading how vector-field dimensions in .spy.yaml flow through code generation, migrations, and database column definitions, then review the geography support added in PR #5137. Trace the corresponding geography entry points across those stages. Done means a declared SRID is carried consistently into generated code, migrations, and column definitions instead of defaulting to 4326.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: models enhancement
Problem to Solve

Geography columns currently default to WGS 84 (EPSG:4326) with no way to declare a different spatial reference system on a model field. Projects using other coordinate systems must work around the default rather than expressing intent in the model.

Proposal

Allow geography fields in .spy.yaml to specify an SRID, similar to how vector fields expose dimension. The chosen SRID should flow through code generation, migrations, and database column definitions so stored geography values use the declared reference system consistently.

Use Case

A logistics app stores facility boundaries in a national projected coordinate system (e.g. EPSG:27700). Developers define geography fields with that SRID in their models and get correct column types and behavior without hardcoding defaults in application code.

Alternatives
  • Continue using SRID 4326 everywhere and convert coordinates in application logic before persistence.
  • Store geometries as raw text or custom types outside Serverpod's geography support.
Additional context

Follow-up from https://github.com/serverpod/serverpod/pull/5137 (PostGIS geography support).

Lingua principale
Dart
Stelle
3.3k
Fork
382
Merge medio
1g 14h
PR unite (30g)
59

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di serverpod/serverpod

Tutte le issue di serverpod/serverpod

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.