Giter Site home page Giter Site logo

cogeotiff / rio-tiler-crs Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 0.0 39.71 MB

A rio-tiler plugin to create tiles using TMS (WebMercator or others)

License: MIT License

Python 3.25% Jupyter Notebook 96.75%
cog cogeotiff ogc pydantic tilematrixset tiles

rio-tiler-crs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rio-tiler-crs's Issues

mypy error: "COGReader" gets multiple values for keyword argument "tms"

The new version of COGReader (inherited from rio_tiler.io.cogeo.COGReader) gives a mypy error when used in a function.

This:

def test(asset, tms: morecantile.TileMatrixSet = default_tms):
    with COGReader(asset, tms=tms) as cog:
        return cog.info

will return "COGReader" gets multiple values for keyword argument "tms"

Users need to add # type: ignore to silent this error

def test(asset, tms: morecantile.TileMatrixSet = default_tms):
    with COGReader(asset, tms=tms) as cog:    # type: ignore
        return cog.info

ref: #5 (comment)

Version 3 pre-release / release master ticket

3.0b.1 - (2020/07/22)

- Use rio-tiler 2.0b1 and its new COGReader and STACReader

This is not really a breaking change itself but it requires the new rio-tiler beta which breaks a lot of things so it's safer to use a major version.

In Addition to the switch to rio-tiler.io.COGReader as parent class (we just extent to add tms and new tile method), we've added STACReader (following the same pattern).

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.