[gdal-dev] Using GPU for GDAL Python

2021-10-14 Thread Paulo Petersen
Hi Folks, good morning! I'm using GDAL Python for pre-processing some satellite images, currently using CPU instances in AWS. I'm struggling to find a way to implement it using GPUs, more specifically, the NVIDIA V100 GPU. Does any one achieve that and could share how you've done it? Thanks, Pau

Re: [gdal-dev] Simple features/sql-mm and bezier/elliptical curves

2021-10-14 Thread Komяpa
https://www.iso.org/standard/60343.html ISO/IEC 13249-3:2016 Information technology — Database languages — SQL multimedia and application packages — Part 3: Spatial PDF costs 198 CHF (215 USD), and I don't know how DRM'd it is. The checkout form has weird things like "number of copies" for PDF. I

Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-14 Thread Matt.Wilkie
> you could do something along: > > tmp_vrt = gdal.Translate("", src_ds, format = 'VRT') > call SetColorInterpretation() / SetDescription() on tmp_vrt > gdal.Translate(dstname, tmp_vrt, format = 'COG', ...) Thanks Even, that works perfectly. It also revealed more depth on my on-again off-again t

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-14 Thread Joaquim Manuel Freire Luís
On more. The warning about "No 1D variable is indexed by dimension time" turned out to be because I was calling Gdal.setmetadataitem(ds, "NETCDF_DIM_EXTRA", "{time}") (like you call '{time,Z}' in your Python example). Removing the curly braces here made that warning go away. From: gdal-dev On

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-14 Thread Joaquim Manuel Freire Luís
Much better (I was confused by those curly braces thinking it was part of python syntax). Though still get this warning Warning 1: No 1D variable is indexed by dimension time But otherwise gdalinfo does not complain on anything wrong The "-co" is confusing. I had to add in other situations othe

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-14 Thread Even Rouault
Le 14/10/2021 à 21:03, Joaquim Manuel Freire Luís a écrit : Even, There are some issues with this way. My draft Julia function looks like bellow  (tested with a MxNx7 array) but get this errors julia> GMT.write_multiband(cube, "gd_cube.nc") Warning 1: No 1D variable is indexed by dimensio

Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-14 Thread Even Rouault
you could do something along: tmp_vrt = gdal.Translate("", src_ds, format = 'VRT') call SetColorInterpretation() / SetDescription() on tmp_vrt gdal.Translate(dstname, tmp_vrt, format = 'COG', ...) Le 14/10/2021 à 20:45, matt.wil...@yukon.ca a écrit : For Problem 2 there’s a new wrinkle: in s

Re: [gdal-dev] Writing multi-bands vs multi-datasets

2021-10-14 Thread Joaquim Manuel Freire Luís
Even, There are some issues with this way. My draft Julia function looks like bellow (tested with a MxNx7 array) but get this errors julia> GMT.write_multiband(cube, "gd_cube.nc") Warning 1: No 1D variable is indexed by dimension time Warning 6: creation option '-co' is not formatted with the

Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-14 Thread Matt.Wilkie
> For Problem 2 there’s a new wrinkle: in spite of the warning about being > unable to save the .aux.xml info into the source zip sometimes it actually > does. I haven’t sorted out when it can and can’t yet. Solved it: the first time the script is run it saves the Color Interp and Descriptions

Re: [gdal-dev] Python gdal.Translate(...) and unicode in Band Descriptions.

2021-10-14 Thread Matt.Wilkie
Re: Problem 1 - Following a thread “Unicode support in GDAL”[0] I tried adding “ENCODING=UTF-8” but the COG driver doesn’t support it. So I’ve taken the practical route out of just spelling out micron instead of using the symbol. For Problem 2 there’s a new wrinkle: in spite of the warning about

Re: [gdal-dev] Gdal-dev mail archive search sites?

2021-10-14 Thread Matt.Wilkie
Thanks Jeff! Here's a bookmarkable link that pre-arms the search box: https://www.google.ca/search?q=site:lists.osgeo.org/pipermail/gdal-dev/ -Matt -Original Message- From: gdal-dev On Behalf Of Jeff McKenna Sent: October 14, 2021 9:28 AM To: gdal-dev@lists.osgeo.org Subject: Re: [gd

Re: [gdal-dev] Gdal-dev mail archive search sites?

2021-10-14 Thread Andrew C Aitchison
On Thu, 14 Oct 2021, matt.wil...@yukon.ca wrote: Hi All, Now that the gdal mail archive on Nabble is gone is what options are there for searching through historical threads? There is an archgive at https://lists.osgeo.org/pipermail/gdal-dev/ (every mail to the list has https:/

Re: [gdal-dev] Gdal-dev mail archive search sites?

2021-10-14 Thread Jeff McKenna
Hi Matt! I just use Google search to query the archives: - goto https://google.ca - in the search box enter:site:lists.osgeo.org/pipermail/gdal-dev/ yoursearchterm This may not always contain the latest archives (depending on the speed of Google-mothership bots), but I find it very helpfu

[gdal-dev] Gdal-dev mail archive search sites?

2021-10-14 Thread Matt.Wilkie
Hi All, Now that the gdal mail archive on Nabble is gone is what options are there for searching through historical threads? Thanks! Matt Wilkie Geomatics Developer & Administrator Environment | Technology, Innovation and Mapping T 867-667-8133 | Yukon.ca Hours: 08:30-16:30, M

Re: [gdal-dev] Enabling default compression for COG ?

2021-10-14 Thread Matt.Wilkie
+1 from me. I think it's a great idea. -Matt ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] polygon union

2021-10-14 Thread ni hao
Hi list, I know how to union two polygons using Python's ogr. feat = ogr.Feature(lyr.GetLayerDefn()) feat.SetGeometry(collection1.Union(collection2)) But I need to do this in Java or use a command line exe, and I am not familiar with Java. What is the Java function or a command line exe ? T