Giter VIP home page Giter VIP logo

django-boundaryservice's People

Contributors

jamesturk avatar joegermuska avatar jsatt avatar kevinschaul avatar michaelmulley avatar onyxfish avatar palewire avatar ryanmark avatar shaneshifflett avatar zzolo 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-boundaryservice's Issues

Multiple boundaries via API

I am not all that familiar with TastyPie and not exceptionally strong with Python, so I could be missing something here.

I want to get multiple, specific boundaries from the API for slugs that I know ahead of time. So, here is one:

http://boundaries.minnpost.com/1.0/boundary/2715101864-minor-civil-division-2010/

And what I would think would work to get multiple:

http://boundaries.minnpost.com/1.0/boundary/2715101864-minor-civil-division-2010;7895345-minor-civil-division-2010

But this doesn't work. My initial research suggests that maybe this is because the boundaryservice overrides the 'id' field to be the 'slug' field, or something like that.

Any help on this would be appreciated. I am happy to try to fix and do a pull request if I know more about what was going on.

Awesome project!

Is this maintained?

Hi there, this is great stuff - just wondering if it's unmaintained now - if it's still maintained, I'd like to touch up some README things (from the perspective of an outsider to Django, Geo-anything, etc.). But figured I'd check if there's any chance of merge, first ;)

Thank you!

configurable simplification?

Was thinking of adding the ability to tune the degree of simplification that is applied in the loadshapefiles command, probably via an optional key on the shapefile config dicts that'd default to the current value.

If this would be agreeable I'll go ahead and write it up then submit a pull request.

self.fully_qualified_url() on Slugged model is busted

Here. Because there is no get_absolute_url on the default models.

>>> Boundary.objects.all()[0].fully_qualified_url()                                                                                                                 
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/ben/Code/foo/src/django-boundaryservice/boundaryservice/models.py", line 55, in fully_qualified_url
    return get_site_url_root() + self.get_absolute_url()
AttributeError: 'Boundary' object has no attribute 'get_absolute_url'

Question: Is it possible to version boundary sets?

What if you had, say, different version of the same boundary set that you wanted to include. How would you accomplish it with this app? For instance, let's say your state government's redistricting process created multiple drafts of next generation political boundaries. If you want to include Draft A, Draft B and the final version, how would you do it?

get_resource_uri tastyhack doesn't work with latest versions of tastypie

The method here is causing trouble.

Traceback (most recent call last): 
File "/home/ben/foorepo/local/lib/python2.7/site-packages/tastypie/resources.py", 
line 202, in wrapper response = callback(request, *args, **kwargs) 
File "/home/ben/foorepo/local/lib/python2.7/site-packages/tastypie/resources.py", 
line 439, in dispatch_list return self.dispatch('list', request, **kwargs) 
File "/home/ben/foorepo/local/lib/python2.7/site-packages/tastypie/resources.py", 
line 471, in dispatch response = method(request, **kwargs) 
File "/home/ben/foorepo/local/lib/python2.7/site-packages/tastypie/resources.py", 
line 1262, in get_list paginator = self._meta.paginator_class(request.GET, sorted_objects, resource_uri=self.get_resource_uri(None), limit=self._meta.limit, max_limit=self._meta.max_limit, collection_name=self._meta.collection_name) 
File "/home/ben/foorepo/src/django-boundaryservice/boundaryservice/tastyhacks.py",
 line 90, in get_resource_uri kwargs['slug'] = bundle_or_obj.slug 
AttributeError: 'NoneType' object has no attribute 'slug' 

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.