Re: [gdal-dev] gdal & WMS

2021-06-17 Thread Ming Chin
hello Carl, in the end I need to implement support for vectors, so yes, WFS is where I need to go, but in the interim, i need wms rasters as well. Ming On Thu, 17 Jun 2021 at 11:58, Carl Godkin wrote: > Hi Ming, > > There are no vector layers in WMS. It's for imagery only. > > Perhaps you are

Re: [gdal-dev] gdal & WMS

2021-06-17 Thread Carl Godkin
Hi Ming, There are no vector layers in WMS. It's for imagery only. Perhaps you are interested in WFS instead? carl On Thu, Jun 17, 2021 at 11:03 AM Ming Chin wrote: > Hello Even, > thank you for your input. > I will review the raster API as you have suggested. However, as I > understand the

Re: [gdal-dev] python: set CacheMax to percent, MB, GB?

2021-06-17 Thread Matt.Wilkie
Ohhh. Sorry for being dense. Sometimes the hammer has to strike a couple times... ;-) Thanks! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdal & WMS

2021-06-17 Thread Ming Chin
Hello Even, thank you for your input. I will review the raster API as you have suggested. However, as I understand the requirements of my task, I need to support the vector API as well, because we do need to support vector layers. Can you, or anyone else here, point to a recommended guide/tutorial

Re: [gdal-dev] python: set CacheMax to percent, MB, GB?

2021-06-17 Thread Even Rouault
Le 17/06/2021 à 19:44, matt.wil...@yukon.ca a écrit : you could also call gdal.SetConfigOption('GDAL_CACHEMAX', string), but you need to do that *before* reading any raster in the process (or any call to gdal.SetCacheMax/GetCacheMax), otherwise it will be ignored. Thanks! …/Later/: How to u

Re: [gdal-dev] python: set CacheMax to percent, MB, GB?

2021-06-17 Thread Matt.Wilkie
you could also call gdal.SetConfigOption('GDAL_CACHEMAX', string), but you need to do that *before* reading any raster in the process (or any call to gdal.SetCacheMax/GetCacheMax), otherwise it will be ignored. Thanks! ...Later: How to use it? It doesn't seem to work for me: ~~~ >>> gdal.GetCac

Re: [gdal-dev] python: set CacheMax to percent, MB, GB?

2021-06-17 Thread Even Rouault
Matt, Le 17/06/2021 à 19:14, matt.wil...@yukon.ca a écrit : I see in https://gdal.org/python/osgeo.gdal-module.html#SetCacheMax we set the value using bytes. Is there a prebuilt method to convert units like percent, megabytes, giga

[gdal-dev] python: set CacheMax to percent, MB, GB?

2021-06-17 Thread Matt.Wilkie
I see in https://gdal.org/python/osgeo.gdal-module.html#SetCacheMax we set the value using bytes. Is there a prebuilt method to convert units like percent, megabytes, gigabytes to bytes or is it up to us to build one? Matt ___ gdal-dev mailing list gda

Re: [gdal-dev] gdal & WMS

2021-06-17 Thread Even Rouault
Ming, A OGRLayer is a *vector* layer, not a raster one. So you should rather look at the raster API: https://gdal.org/tutorials/raster_api_tut.html Depending on the kind of URL you provide to GDAL, you may get directly a workable dataset, or just a placeholder that links to real datasets with

[gdal-dev] gdal & WMS

2021-06-17 Thread Ming Chin
Hello GDAL devs, I am a GDAL rookie, and I am trying to add WMS support to an existing GDAL (2.2.4) implementation. I saw in this example: https://gis.stackexchange.com/questions/67416/using-gdal-to-connect-to-a-wfs that its possible to provide OGRSFDriverRegistrar::Open(sURL, FALSE ); with a

Re: [gdal-dev] Merge multiple TIFF / NC in single NC

2021-06-17 Thread Lorenzo Di Giacomo
i have explained BAD* Il giorno gio 17 giu 2021 alle ore 10:09 Lorenzo Di Giacomo < loridi...@gmail.com> ha scritto: > I think i have explained what i'd like to have, i attach the image of the > initial .nc file that i would like to have back at the end of the process: > > do you have any suggest

Re: [gdal-dev] Merge multiple TIFF / NC in single NC

2021-06-17 Thread Lorenzo Di Giacomo
I think i have explained what i'd like to have, i attach the image of the initial .nc file that i would like to have back at the end of the process: do you have any suggestions? Thanks a lot ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://list

[gdal-dev] (no subject)

2021-06-17 Thread Ahmet Temiz
Hi, How can I can create FeatureCollection from : ```OGRMultiPolygon * poOGRMultiPolygon= (OGRMultiPolygon * ) unionCascaded;``` kind regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Deprem Dairesi Başkanlığı Ahmet Temiz Geological Eng.

Re: [gdal-dev] export to geometrycollection.

2021-06-17 Thread Ahmet Temiz
Thanks, I'll check it out. On Sun, Jun 13, 2021 at 9:53 PM Even Rouault wrote: > Ahmet, > > use the OGRGeometryFactory::forceTo(geom, wkbGeometrycollection) method: > > > https://gdal.org/api/ogrgeometry_cpp.html#classOGRGeometryFactory_1a26120382ccfec8ac4b5f932dd3a67c5f > > Even > Le 13/06/2021