|
Re: gdal_proximity
Hello,
First sorry for my bad English.
Maybe I can help you and other people with the same doubt. Currently I' ve been working on a project that I need this functionality.
def proximity(in_raster,
Hello,
First sorry for my bad English.
Maybe I can help you and other people with the same doubt. Currently I' ve been working on a project that I need this functionality.
def proximity(in_raster,
|
By
Anderson Roberto da Silva
·
#689
·
|
|
gdal_proximity
Hi all. I'm using Rasterio for a raster analysis but I need to calculate proximity as is done in gdal_proximity.
https://gdal.org/programs/gdal_proximity.html
Is this implemented somewhere in
Hi all. I'm using Rasterio for a raster analysis but I need to calculate proximity as is done in gdal_proximity.
https://gdal.org/programs/gdal_proximity.html
Is this implemented somewhere in
|
By
Spencer Gardner
·
#688
·
|
|
Re: Any idea why I'd be getting a missing region when reprojecting?
Another update, for posterity. I tried doing the same reprojection using the gdal.Warp and it worked perfectly with far less effort around setting up transforms and whatnot. I filed an issue with
Another update, for posterity. I tried doing the same reprojection using the gdal.Warp and it worked perfectly with far less effort around setting up transforms and whatnot. I filed an issue with
|
By
hi@...
·
#687
·
|
|
Re: Any idea why I'd be getting a missing region when reprojecting?
Just an update: I set the env variable CHECK_WITH_INVERT_PROJ to YES and was able to generate the output using the vertical slice but again, when I try to do this with the global raster I get a blank
Just an update: I set the env variable CHECK_WITH_INVERT_PROJ to YES and was able to generate the output using the vertical slice but again, when I try to do this with the global raster I get a blank
|
By
hi@...
·
#686
·
|
|
Any idea why I'd be getting a missing region when reprojecting?
I'll try my best to describe the issue although it's really confusing me so I'm not sure how well I can explain it.
I'm trying to reproject some satellite imagery in the form of a raster that covers
I'll try my best to describe the issue although it's really confusing me so I'm not sure how well I can explain it.
I'm trying to reproject some satellite imagery in the form of a raster that covers
|
By
hi@...
·
#685
·
|
|
Re: Binary raster to geojson
https://rasterio.readthedocs.io/en/latest/cli.html#shapes is a command line program for extracting GeoJSON shapes from a raster. It's a thin wrapper around rasterio.features.dataset_features() (see
https://rasterio.readthedocs.io/en/latest/cli.html#shapes is a command line program for extracting GeoJSON shapes from a raster. It's a thin wrapper around rasterio.features.dataset_features() (see
|
By
Sean Gillies
·
#684
·
|
|
Re: Get PROJ.4 representation of CRS object
Hi,
Rasterio's CRS.to_dict and .to_prog4 *do* return PROJ4 mappings and strings but we reduce to +init=epsg:xxxx when allowed. In the new world where there is no longer an epsg file to init from, it
Hi,
Rasterio's CRS.to_dict and .to_prog4 *do* return PROJ4 mappings and strings but we reduce to +init=epsg:xxxx when allowed. In the new world where there is no longer an epsg file to init from, it
|
By
Sean Gillies
·
#683
·
|
|
Binary raster to geojson
Given a binary numpy array (array of 0s and 1s where 0=background), what would be the best way to polygonise this raster and write it to a geojson?
Given a binary numpy array (array of 0s and 1s where 0=background), what would be the best way to polygonise this raster and write it to a geojson?
|
By
ashnair0007@...
·
#682
·
|
|
Re: Get PROJ.4 representation of CRS object
Thanks! This is exactly what I was looking for.
BTW GDAL has an appropriate method to export CRS to proj4:
>>> srs.ExportToProj4()
'+proj=utm +zone=5 +datum=WGS84 +units=m +no_defs '
In my opinion it
Thanks! This is exactly what I was looking for.
BTW GDAL has an appropriate method to export CRS to proj4:
>>> srs.ExportToProj4()
'+proj=utm +zone=5 +datum=WGS84 +units=m +no_defs '
In my opinion it
|
By
Denis Rykov
·
#681
·
|
|
Re: Get PROJ.4 representation of CRS object
pyproj.CRS has a to_proj4 method that should be able to do that: https://pyproj4.github.io/pyproj/stable/examples.html
pyproj.CRS has a to_proj4 method that should be able to do that: https://pyproj4.github.io/pyproj/stable/examples.html
|
By
Alan Snow
·
#680
·
|
|
Get PROJ.4 representation of CRS object
Hi folks! Is there a way to get a PROJ.4 representation of CRS object?
I've tried to use to_proj4() method:from rasterio.crs import CRSwkt = 'PROJCS["WGS 84 / UTM zone 5N",GEOGCS["WGS
Hi folks! Is there a way to get a PROJ.4 representation of CRS object?
I've tried to use to_proj4() method:from rasterio.crs import CRSwkt = 'PROJCS["WGS 84 / UTM zone 5N",GEOGCS["WGS
|
By
Denis Rykov
·
#679
·
|
|
Re: What is the raster merge criteria algorithm on rasterio.merge?
Hi Eduardo,
I'd suggest taking a look at the method argument that merge accepts. There are a few pre-defined methods, and you can also define your own function for selecting which pixel to select from
Hi Eduardo,
I'd suggest taking a look at the method argument that merge accepts. There are a few pre-defined methods, and you can also define your own function for selecting which pixel to select from
|
By
James McBride
·
#678
·
|
|
What is the raster merge criteria algorithm on rasterio.merge?
I'm creating a mosaic from many sentinel images with a bunch of overlapping areas, although I'm trying to understand what is criteria. For example:
This is a small piece totally clear of clouds
And
I'm creating a mosaic from many sentinel images with a bunch of overlapping areas, although I'm trying to understand what is criteria. For example:
This is a small piece totally clear of clouds
And
|
By
Eduardo <eduardosteps@...>
·
#677
·
|
|
rasterio.windows.from_bounds height and width int parameters
Hi all
I am trying to figure out how to pass the height and width integer
parameters to the from_bounds method. In my case they look not to be
honored and the window returned has slightly different
Hi all
I am trying to figure out how to pass the height and width integer
parameters to the from_bounds method. In my case they look not to be
honored and the window returned has slightly different
|
By
Paolo Corti
·
#676
·
|
|
rio-color 1.0.1
Hi all,
Version 1.0.1 of rio-color is on PyPI now: https://pypi.org/project/rio-color/1.0.1/#files. Thank you, Kyle Barron, for showing how to get started with cibuildwheel.
Please note that there are
Hi all,
Version 1.0.1 of rio-color is on PyPI now: https://pypi.org/project/rio-color/1.0.1/#files. Thank you, Kyle Barron, for showing how to get started with cibuildwheel.
Please note that there are
|
By
Sean Gillies
·
#675
·
|
|
Re: Rasterio 1.2b1
I think this is the problem: https://pyproj4.github.io/pyproj/stable/gotchas.html#internal-proj-error-sqlite-error-on-select
I think this is the problem: https://pyproj4.github.io/pyproj/stable/gotchas.html#internal-proj-error-sqlite-error-on-select
|
By
Alan Snow
·
#674
·
|
|
Re: Rasterio 1.2b1
I just installed rasterio==1.2.0b1 on a fresh virtual env (with no GDAL/PROJ env set) and I'm getting a proj error
Not sure what's going on :-(
I just installed rasterio==1.2.0b1 on a fresh virtual env (with no GDAL/PROJ env set) and I'm getting a proj error
Not sure what's going on :-(
|
By
vincent.sarago@...
·
#673
·
|
|
Re: rio-color 1.0.1.dev0 wheels
Hi all,
I got reports that the 1.0.1.dev0 wheels install and work, so I've made a more stable set and a 1.0.1a1 release. Target date for 1.0.1 is 2020-12-21. See
Hi all,
I got reports that the 1.0.1.dev0 wheels install and work, so I've made a more stable set and a 1.0.1a1 release. Target date for 1.0.1 is 2020-12-21. See
|
By
Sean Gillies
·
#672
·
|
|
Re: rasterio.features.shapes with holes in polygons
<sean@...> wrote:
Hi Sean!
Thanks a lot for your hint. My problem was caused by the fact that I
was merging the polygons returned by rasterio.features.shape using
unary_union. I
<sean@...> wrote:
Hi Sean!
Thanks a lot for your hint. My problem was caused by the fact that I
was merging the polygons returned by rasterio.features.shape using
unary_union. I
|
By
Paolo Corti
·
#671
·
|
|
rio-color 1.0.1.dev0 wheels
Hi all,
Lack of an up to date wheel building system has been blocking us from making a 1.0.1 release. See https://github.com/mapbox/rio-color/issues/65. Kyle Barron suggested using cibuildwheel and
Hi all,
Lack of an up to date wheel building system has been blocking us from making a 1.0.1 release. See https://github.com/mapbox/rio-color/issues/65. Kyle Barron suggested using cibuildwheel and
|
By
Sean Gillies
·
#670
·
|