Git Product home page Git Product logo

graphene-gis's Introduction

Hello World!

banner that says absolutely nothing at all

I'm a software engineer who likes to tinker around with just about anything, loves a good rice , into game-dev, backend, maybe frontend. Some technologies I enjoy working with include Django, Flask, Golang, Mapbox, ReactJS and GraphQL. Data visualization and Maps floats my boat as well.

  • โšก Fun fact: Vim over Emacs
  • ๐Ÿ’ฌ Ask me about: Books
  • ๐ŸŒฑ Iโ€™m currently learning: ReactJS

Find me around the web ๐ŸŒŽ:

graphene-gis's People

Contributors

dependabot[bot] avatar everwinter23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

graphene-gis's Issues

Issue storing WKT Polygon In PostGIS

In following the documentation, I created the following:

In postgres, the table is set up as:

create table mydb.location
(
	location_id uuid not null
		constraint location_pkey
			primary key,
	location_drawn_area mydb.geometry(Polygon,4326) not null,

);

create index location_location_drawn_area_id
	on mydb.location using gist (location_drawn_area);
#model
import uuid
from django.contrib.gis.db import models

class Location(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4)
    drawn_area = models.PolygonField(db_column="location_drawn_area", null=False)
#schema
import graphene
from graphene_django import DjangoObjectType
from graphene_gis.converter import gis_converter
from graphene_gis.scalars import PolygonScalar

class PolygonModelType(graphene.ObjectType):
    drawn_area = graphene.Field(graphene.String, to=PolygonScalar()


class LocationType(DjangoObjectType):
    class Meta:
    model = Location
    fields = ("id", "drawn_area")
    interfaces = (graphene.relay.Node, )

class LocationCreateMutation(graphene.Mutation):
    class Arguments:
        drawn_area = graphene.Argument(PolygonScalar)

    location = graphene.Field(LocationType)

    def mutate(self, info, drawn_area):
        drawn_area = PolygonModelType(drawn_area=drawn_area)

        location = Location()
        location.drawn_area = drawn_area
        location.save()
        return  LocationCreateMutation(location=location)

When I try to create a mutation by providing a WKT Polygon

mutation{addLocation( drawnArea:"POLYGON((-78.6207918152582 35.5963473238645,-78.6206335649117 35.5965828721579,-78.6205316409598 35.5966831980725))"){location{id}}

I get the following error:

Cannot set Location SpatialProxy (POLYGON) with value of type: PolygonModelType

I'm not sure what I'm doing wrong or if it may be a bug.

Graphene 3.0 Support

I see that you are target Graphene 3.0 support by March of '22. What needs to be done to enable this support? Do you have a checklist?

Unable to update graphene to v3

I'm unable to update graphene to v3 with the current published version of graphene-gis (0.0.7):

Because graphene-gis (0.0.7) depends on graphene (>=2.1,<3)
 and no versions of graphene-gis match >0.0.7,<0.0.8, graphene-gis (>=0.0.7,<0.0.8) requires graphene (>=2.1,<3).
So, because app depends on both graphene (^3.0.0) and graphene-gis (^0.0.7), version solving failed.

^ error message from Poetry

Too strict version dependencies

Since this is a library, rather than pinning dependency versions to exact numbers, it should use version ranges. As it is, we can't use it in our project:

There are incompatible versions in the resolved dependencies:
  graphene<4,>=3.0.0b1 (from graphene-django==3.0.0b1->-r requirements.in (line 12))
  graphene==2.1.8 (from graphene-gis==0.0.4->-r requirements.in (line 14))

Installation error

i fully realize this may be my own environment, but I am not clear of the issue - while trying the pip install, i get the following verbose error (attached)
given this line

ld: library not found for -lssl

i assumed this was some kind of XCode dependency - even after an update i have not love
I am working from a virtual environment...perhaps that is missing something?
installerror.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.