GithubHelp home page GithubHelp logo

cocotoca's People

Contributors

zerebubuth avatar

Watchers

 avatar  avatar  avatar  avatar

cocotoca's Issues

AttributeError: 'module' object has no attribute 'clipping'

Running the tests with python setup.py test for me (even after an install) yields the following error on my setup:

running test
running egg_info
writing requirements to cocotoca.egg-info/requires.txt
writing cocotoca.egg-info/PKG-INFO
writing top-level names to cocotoca.egg-info/top_level.txt
writing dependency_links to cocotoca.egg-info/dependency_links.txt
reading manifest file 'cocotoca.egg-info/SOURCES.txt'
writing manifest file 'cocotoca.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 24, in <module>
    tests_require=[
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Library/Python/2.7/site-packages/setuptools/command/test.py", line 172, in run
    self.run_tests()
  File "/Library/Python/2.7/site-packages/setuptools/command/test.py", line 193, in run_tests
    testRunner=self._resolve_as_ep(self.test_runner),
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 103, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/Library/Python/2.7/site-packages/setuptools/command/test.py", line 40, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'clipping'

I'm running Python 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin.

Configurable fall-back

At the moment, Cocotoca will 404 if it cannot find a z16 tile to cut up. Instead, it would be useful to be able to configure different fallback strategies:

  1. Return 404. Most useful when used as a service behind a "dispatcher". At Mapzen we have used Fastly for this.
  2. Request the z16 tile from upstream and cut the result. Most useful if you want to terminate z>16 processing at Cocotoca, and not handle these at any upstream point in the stack. For example, this would stop tileserver from putting z17 tiles into the TOI.
  3. Proxy the whole request upstream, and return the result unchanged. Useful when the upstream service (like tileserver) is capable of handling any request at any zoom, and may cache the result (like tileserver).

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.