|
Understanding `+wktext` more
I posted this originally on github, but have moved it here at Sean's request. Additional details of this question/issue are discussed in the `pyproj` repository
I posted this originally on github, but have moved it here at Sean's request. Additional details of this question/issue are discussed in the `pyproj` repository
|
By
David Hoese
·
#259
·
|
|
Re: Writing raster to GeoPackage layer
It may be that rasterio doesn't support multilayer raster datasets. I'll make a note to open an issue in the tracker about this.
It may be that rasterio doesn't support multilayer raster datasets. I'll make a note to open an issue in the tracker about this.
|
By
Sean Gillies
·
#258
·
|
|
Re: Writing raster to GeoPackage layer
Installed rasterio through conda:
conda create -n gpkg-test -c conda-forge python=3.7 rasterio
Installed rasterio through conda:
conda create -n gpkg-test -c conda-forge python=3.7 rasterio
|
By
Ryan
·
#257
·
|
|
Re: Writing ESRI sidecar files
Hi,
Correct, those dataset creation options need to be passed into rasterio.open().
One way to do that is to add to your metadata dict below
metadata["profile"] = "GeoTIFF"
Any extra keyword
Hi,
Correct, those dataset creation options need to be passed into rasterio.open().
One way to do that is to add to your metadata dict below
metadata["profile"] = "GeoTIFF"
Any extra keyword
|
By
Sean Gillies
·
#256
·
|
|
Re: Writing ESRI sidecar files
Thanks again Sean, and Evan too. It seems I just need to get the right
combination of options.
The options that you have shown Even ....how are they implemented?
They don't seem to go in the Env like
Thanks again Sean, and Evan too. It seems I just need to get the right
combination of options.
The options that you have shown Even ....how are they implemented?
They don't seem to go in the Env like
|
By
James David Smith
·
#255
·
|
|
Re: Writing ESRI sidecar files
Indeed. You can play with the GTIFF specific PROFILE creation option
(see https://gdal.org/drivers/raster/gtiff.html#creation-issues)
PROFILE=BASELINE: .aux.xml only created if presence of
Indeed. You can play with the GTIFF specific PROFILE creation option
(see https://gdal.org/drivers/raster/gtiff.html#creation-issues)
PROFILE=BASELINE: .aux.xml only created if presence of
|
By
Even Rouault
·
#254
·
|
|
Re: Writing ESRI sidecar files
If you are creating a GeoTIFF it is possible that no XML file will be written. As Even Rouault explains in https://lists.osgeo.org/pipermail/gdal-dev/2010-May/024522.html, the PAM file is only created
If you are creating a GeoTIFF it is possible that no XML file will be written. As Even Rouault explains in https://lists.osgeo.org/pipermail/gdal-dev/2010-May/024522.html, the PAM file is only created
|
By
Sean Gillies
·
#253
·
|
|
Re: Writing ESRI sidecar files
This didn't work unfortunately Sean. No errors .... but nothing else
was wrote out as I was hoping. If you get a few minutes would you mind
testing to ensure I'm not going crazy? Thanks,
This didn't work unfortunately Sean. No errors .... but nothing else
was wrote out as I was hoping. If you get a few minutes would you mind
testing to ensure I'm not going crazy? Thanks,
|
By
James David Smith
·
#252
·
|
|
Re: Writing raster to GeoPackage layer
Hi,
Can you tell us how you installed rasterio? If you installed one of the binary wheels from PyPI (which I built), you may be out of luck. I haven't paid any attention to making sure that they have
Hi,
Can you tell us how you installed rasterio? If you installed one of the binary wheels from PyPI (which I built), you may be out of luck. I haven't paid any attention to making sure that they have
|
By
Sean Gillies
·
#251
·
|
|
Re: Writing ESRI sidecar files
Sorry, James, I messed up and used the GDAL vernacular. Replace YES with True and I think you'll be good to go.--
Sean Gillies
Sorry, James, I messed up and used the GDAL vernacular. Replace YES with True and I think you'll be good to go.--
Sean Gillies
|
By
Sean Gillies
·
#250
·
|
|
Re: Writing ESRI sidecar files
Thanks for the tip Sean, but that doesn't work for me.
with rasterio.Env(TIFF_USE_OVR=True, GDAL_PAM_ENABLED=YES, ESRI_XML_PAM=YES):
----- name 'YES' is not defined
If I change 'YES' to True then
Thanks for the tip Sean, but that doesn't work for me.
with rasterio.Env(TIFF_USE_OVR=True, GDAL_PAM_ENABLED=YES, ESRI_XML_PAM=YES):
----- name 'YES' is not defined
If I change 'YES' to True then
|
By
James David Smith
·
#249
·
|
|
Re: Writing ESRI sidecar files
Hi James,
I have tried this myself, but I think you'll want to add both GDAL_PAM_ENABLED=YES and ESRI_XML_PAM=YES to the
Hi James,
I have tried this myself, but I think you'll want to add both GDAL_PAM_ENABLED=YES and ESRI_XML_PAM=YES to the
|
By
Sean Gillies
·
#248
·
|
|
Writing ESRI sidecar files
Hello,
I'm trying to use rasterio to manipulate a file and then write it out,
along with accompanying ESRI-type files. So the output files will be:
raster.tif,
raster.tif.aux.xml
raster.tif.ovr
I
Hello,
I'm trying to use rasterio to manipulate a file and then write it out,
along with accompanying ESRI-type files. So the output files will be:
raster.tif,
raster.tif.aux.xml
raster.tif.ovr
I
|
By
James David Smith
·
#247
·
|
|
Writing raster to GeoPackage layer
I'm trying to add a raster layer to an existing GPKG with rasterio:
properties = {
'driver':'GPKG',
'width':array.shape[1],
'height':array.shape[0],
'count':1,
I'm trying to add a raster layer to an existing GPKG with rasterio:
properties = {
'driver':'GPKG',
'width':array.shape[1],
'height':array.shape[0],
'count':1,
|
By
Ryan
·
#246
·
|
|
Re: Occasional "not recognized as a supported file format" errors when reading from S3
Dion, Jonas:
There is a new report in the FIona tracker that may be related: https://github.com/Toblerity/Fiona/issues/761. There I advised turning on CPL_CURL_VERBOSE=YES to see more details about
Dion, Jonas:
There is a new report in the FIona tracker that may be related: https://github.com/Toblerity/Fiona/issues/761. There I advised turning on CPL_CURL_VERBOSE=YES to see more details about
|
By
Sean Gillies
·
#245
·
|
|
Re: problem with window sizes when parallelizing a funciton
Dear Dior, Thanks!, this was perfect. I did't get it the first time, but know it runs smoothly.
Many thanks!
Javier
--
Javier Lopatin
Institute of Geography and Geoecology
Karlsruhe Institute of
Dear Dior, Thanks!, this was perfect. I did't get it the first time, but know it runs smoothly.
Many thanks!
Javier
--
Javier Lopatin
Institute of Geography and Geoecology
Karlsruhe Institute of
|
By
javier lopatin
·
#244
·
|
|
Re: problem with window sizes when parallelizing a funciton
As I mentioned, the canonical way to do this is to leverage functools.partial.
For example: from functools import partial from concurrent.futures import ProcessPoolExecutor
As I mentioned, the canonical way to do this is to leverage functools.partial.
For example: from functools import partial from concurrent.futures import ProcessPoolExecutor
|
By
Dion Häfner <dion.haefner@...>
·
#243
·
|
|
Re: problem with window sizes when parallelizing a funciton
Hi Dion, Thanks for the tip. I thought that that might be the problem. Any ideas of how to pass a function to executor.map that need several arguments? so far I'm only able to pass functions with a
Hi Dion, Thanks for the tip. I thought that that might be the problem. Any ideas of how to pass a function to executor.map that need several arguments? so far I'm only able to pass functions with a
|
By
javier lopatin
·
#242
·
|
|
Re: problem with window sizes when parallelizing a funciton
Hey Javier,
this is not really a rasterio problem, mostly a Python peculiarity.
In general, you cannot pass functions defined in a local closure to a different process. Just
Hey Javier,
this is not really a rasterio problem, mostly a Python peculiarity.
In general, you cannot pass functions defined in a local closure to a different process. Just
|
By
Dion Häfner <dion.haefner@...>
·
#241
·
|
|
Re: problem with window sizes when parallelizing a funciton
Hi Guys!
I'm still working with the parallelization of raster processes with rasterio, and I came across a problem that you might know about. I've some raster stacks of time series data from which I
Hi Guys!
I'm still working with the parallelization of raster processes with rasterio, and I came across a problem that you might know about. I've some raster stacks of time series data from which I
|
By
javier lopatin
·
#240
·
|