MongoEngine / MongoEngine/mongoengine

Use python-geojson for GeoJsonBaseField (at least validation)?

Open
#1,263 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Python
Stars
4.3k
Forks
1.2k
Avg merge
4h 41m
Merged PRs (30d)
11

Description

Hi everybody,

I would be willing to propose a PR for that topic actually, but I don't know when I will be able to work on it... So I post this issue as a reminder, but maybe also as a possibility for you to tell me what you think about it.

Especially our validation is pretty poor, and we could (should?) the one proposed by this reference library?
https://github.com/frewsxcv/python-geojson/blob/master/geojson/validation.py

Best, Matthieu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating GeoJsonBaseField in MongoEngine and read the linked python-geojson validation.py reference. Determine which validation behavior is intended and how it should fit the field. Done should include agreed validation behavior and tests covering the supported GeoJSON cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.