[gdal-dev] Disk space problems when creating in-mem VRT

Even Rouault even.rouault at spatialys.com
Thu Jan 4 05:01:11 PST 2018


On jeudi 4 janvier 2018 09:49:22 CET Roberto Ribeiro wrote:
> I'm trying to warp a pretty big raster (120601 x 162961) into a reprojected
> VRT. I can do that just fine when writing the VRT to disk, it finishes
> processing in about 15 seconds and generates a meager 3KB file.
> 
> However, when trying to do the same with an in-memory VRT, it accuses
> 
> unavailability of disk space:
> >>> gdal.WarpOptions(format = 'VRT', dstSRS = 'EPSG:4674')
> >>> vrt = gdal.Warp('/vsimem/dem_4674.vrt', '/vsimem/dem_31837')

You don't use the options you defined. Try instead:

vrt = gdal.Warp('/vsimem/dem_4674.vrt', '/vsimem/dem_31837',
                          format = 'VRT', dstSRS = 'EPSG:4674')

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180104/08b79748/attachment.html>


More information about the gdal-dev mailing list