[gdal-dev] Cannot use in memory raster object with gdal warp (GDAL Python API)

2020-02-21 Thread umbertofilippo
Sorry if this is a copy of a question I already asked on gis.stackexchange ( here ), but I thought I might get more chance to receive an answer here. These are the operations I am d

Re: [gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread umbertofilippo
just edited the previous post (again, wrong copy and paste, shame on me) -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread umbertofilippo
Yeah you're totally right obviously :) i forgot to copy and paste ds = gdal.BuildVRT(out_vrt, rasters, options=vrt_options) in between... out_vrt = os.path.join(out_dir, 'mosaic.vrt') ds = gdal.BuildVRT(out_vrt, [raster1.tif, raster2.tif]) ds = None # this did the trick! ds = gdal.BuildVRT(out_vr

Re: [gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread umbertofilippo
Solved by looking at this answer : out_vrt = os.path.join(out_dir, 'mosaic.vrt') ds = gdal.BuildVRT(out_vrt, [raster1.tif, raster2.tif]) ds = None # this did the trick! factors = [128, 256, 512] gdal.SetCon

[gdal-dev] [Python bindings] BuildOverviews() not supported for VRT dataset

2020-02-07 Thread umbertofilippo
Hello everybody, I am trying to build overviews in a VRT dataset with python GDAL. I try this code: out_vrt = os.path.join(out_dir, 'mosaic.vrt') ds = gdal.BuildVRT(out_vrt, [raster1.tif, raster2.tif]) factors = [128, 256, 512] gdal.SetConfigOption('COMPRESS_OVERVIEW', 'DEFLATE') ds.BuildOvervie

Re: [gdal-dev] ogr2ogr and wfs driver with POST requests

2018-12-29 Thread umbertofilippo
Even Rouault-2 wrote > On mercredi 26 décembre 2018 09:56:48 CET umbertofilippo wrote: > But it is not difficult to translate your POST feature request into a GET > one. Yeah, indeed I did that and that was pretty easy. Thank you for taking the time to answering me, really appr

[gdal-dev] ogr2ogr and wfs driver with POST requests

2018-12-26 Thread umbertofilippo
Is it possible to use the WFS driver of ogr2ogr with POST reuqests? I am actually creating my Getfeature requests with OpenLayers using the function ol/format/WFS~WFS/writeGetFeature . This returns the Node

Re: [gdal-dev] Piping ogr2ogr (SHP format) /vsistdout/ to unix command

2018-12-18 Thread umbertofilippo
Even Rouault-2 wrote > On lundi 17 décembre 2018 16:00:30 CET umbertofilippo wrote: > > No, you can't pipe a shapefile. This is a multi file format, and OGR > updates > the files in a non sequential way. You have to create a temporary > shapefile > and zip it afterw

[gdal-dev] Piping ogr2ogr (SHP format) /vsistdout/ to unix command

2018-12-17 Thread umbertofilippo
I hope my poor knowledge of informatics terminology won't prevent me to explain properly, but I try to make my best. I am trying to use ogr2ogr to convert the GML response from a WFS GetFeature request to a zipped Shapefile. I am able to convert the GML to Shapefile, but what I'd like to do now is