Skip to main content

A GIS extension for graphene-django that defines scalars, field conversions, and other useful things

Project description

https://github.com/serioeseGmbH/django-graphene-gis-extension

django-graphene-gis-extension extends django-graphene with GIS related type definitions (i.e. scalars, field conversions, …).

Quick start

  1. Install the package with pip:

    pip install django-graphene-gis-extension
    
  2. Add “serious_django_services” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'graphene_gis_extension',
    ]
    
  3. Use the scalars and input type definitions wherever you need them, for instance in a Query:

    from graphene_gis_extension.scalars import PointScalar
    from graphene_gis_extension.input_types import NearInputType
    
    class Query(graphene.ObjectType):
        thing_with_location = graphene.Field(
            ThingWithLocationType,
            exactly_at=graphene.Argument(PointScalar)
            near=graphene.Argument(NearInputType)
        )
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-graphene-gis-extension, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size django-graphene-gis-extension-0.3.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page