Skip to content

Add support for GEOS API types-- PointField, PolygonField etc. #766

Closed
@EverWinter23

Description

@EverWinter23

Can we add support for fields offered by django.contrib.gis.geos-- GEOS. django-graphql-geojson package comes closest to solving the problem, however, the particular implementation has a major drawback that it converts the whole model into GeoJSON, which causes problems with external interfaces which are defined on non-geometric fields. (May also break internal ones.)

Converting GEOS fields into GeoJSON should more than sufficient for most use cases because it provides you with pre-built interfaces and filters on non-geometric types.

How would one go about adding support for serialization of these fields? Having gone through the codebase-- adding them to converter.py coupled with tests.py should be sufficient or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions