問題タブ [rasterio]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 'rasterio._io.RasterReader' object has no attribute 'xy'
I'm trying to pull coordinate and pixel value data from a .TIF using rasterio. In recently updated documentation (April 2018) there appears to be a .xy() function to get the spatial coordinates of a pixel, with an example:
However, when I run the same example:
I receive error: "AttributeError: 'rasterio._io.RasterReader' object has no attribute 'xy'".
Am I misinterpreting the documentation or is this something like pre-documentation for a future version? Is there another method for this in current release / official documentation that I haven't seen?
Thank you!