Code Monkey home page Code Monkey logo

Comments (5)

astrojuanlu avatar astrojuanlu commented on July 21, 2024

I can reproduce this, even with the latest version of rasterio.

from telluric.

astrojuanlu avatar astrojuanlu commented on July 21, 2024

Reported this upstream: rasterio/rasterio#1336

from telluric.

astrojuanlu avatar astrojuanlu commented on July 21, 2024

I left a comment in the rasterio issue, still not sure how to proceed here.

from telluric.

astrojuanlu avatar astrojuanlu commented on July 21, 2024

In principle they improved the warnings rasterio/rasterio@0c85285, but we're somehow masking them.

In [1]: from affine import Affine
   ...: import numpy as np
   ...: import telluric as tl
   ...: shape = (1, 500, 500)
   ...: arr = np.ones(shape)
   ...: aff = Affine.scale(1,-1)
   ...: raster1 = tl.GeoRaster2(image=arr, affine=aff, crs=tl.constants.WEB_MERCATOR_CRS)
   ...: raster1.save('demo.tif')
   ...: 
   ...: 

In [2]: !ls demo.tif
demo.tif

In [3]: tl.GeoRaster2.open("demo.tif")
Out[3]: <telluric.georaster.GeoRaster2 at 0x7f4190a3e908>

In [4]: _.affine
Out[4]: 
Affine(1.0, 0.0, 0.0,
       0.0, 1.0, 0.0)

from telluric.

astrojuanlu avatar astrojuanlu commented on July 21, 2024

Well:

# IO:
@classmethod
def _raster_opener(cls, filename, *args, **kwargs):
"""Return handler to open rasters (rasterio.open)."""
with warnings.catch_warnings():
warnings.simplefilter('ignore', rasterio.errors.NotGeoreferencedWarning)

I think we should allow these warnings, given that we can't do anything about this issue.

from telluric.

Related Issues (20)

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.