Giter Site home page Giter Site logo

django-geojson-tiles's People

Contributors

glenrobertson avatar jeffcjohnson avatar

Stargazers

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

Watchers

 avatar  avatar

django-geojson-tiles's Issues

Invalid geojson syntax (when used with leaflet-tilelayer-geojson)

Hey!

Playing around with a simple test app with leaflet-tilelayer-geojson occasionally some invalid geojson is returned.

E.g.
"{"crs": {"type": "link", "properties": {"href": "http://spatialreference.org/ref/epsg/4326/", "type": "proj4"}}, "type": "FeatureCollection", "features": [], "bbox": [[11.249999999999993, 40.97989806962015], [22.499999999999986, 40.97989806962015], [22.499999999999986, 48.922499263758255], [11.249999999999993, 48.922499263758255]]}{"crs": {"type": "link", "properties": {"href": "http://spatialreference.org/ref/epsg/4326/", "type": "proj4"}}, "type": "FeatureCollection", "features": [], "bbox": [[11.249999999999993, 40.97989806962015], [22.499999999999986, 40.97989806962015], [22.499999999999986, 48.922499263758255], [11.249999999999993, 48.922499263758255]]}"

I think a proper response should only return one record, i.e.
"{"crs": {"type": "link", "properties": {"href": "http://spatialreference.org/ref/epsg/4326/", "type": "proj4"}}, "type": "FeatureCollection", "features": [], "bbox": [[11.249999999999993, 40.97989806962015], [22.499999999999986, 40.97989806962015], [22.499999999999986, 48.922499263758255], [11.249999999999993, 48.922499263758255]]}"

I suspect, that somehow different json queries are concatenated, but
I really have no glue, how to analyse deeper as I'm pretty new to django..
Any hint is appreciated..

Cheers
Toby

Is it possible to replace PIL dep by pillow ?

Depending on pillow instead would easy the install process. Right now PIL wants me to --allow-external which would not be required with pillow. But maybe you have reasons to rely on PIL.

$ pip install fandango-geojson-tiles
Downloading/unpacking django-geojson-tiles
Downloading django-geojson-tiles-0.1.2.tar.gz
Running setup.py (path: ... ) egg_info for package django-geojson-tiles

Requirement already satisfied (use --upgrade to upgrade): django in /lib/python2.7/site-packages (from django-geojson-tiles)
Downloading/unpacking PIL (from django-geojson-tiles)
Could not find any downloads that satisfy the requirement PIL (from django-geojson-tiles)
Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL (from django-geojson-tiles)
Storing debug log for failure in pip.log

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.