[gdal-dev] GDAL and Sentinel2

Even Rouault even.rouault at spatialys.com
Wed Jan 13 09:23:22 PST 2016


Le mercredi 13 janvier 2016 18:05:40, Jose Gomez-Dans a écrit :
> Hi Even,
> 
> As usual, may thanks for your help, it's really useful
> 
> On 13 January 2016 at 16:16, Even Rouault <even.rouault at spatialys.com>
> 
> wrote:
> > You can also compile the driver code as a plugin against older GDAL
> > releases
> > (works at least with 1.10 or later)
> 
> Are there some documents on how to achieve this?

1) Get and uncompress the source of the GDAL version you use
2) create frmts/sentinel2 directory
3) copy https://svn.osgeo.org/gdal/trunk/gdal/frmts/sentinel2/sentinel2dataset.cpp in it
4) on Linux, g++ -Wall  -Iport -Igcore -Iogr -O2 -fPIC frmts/sentinel2/sentinel2dataset.cpp -shared -o gdal_SENTINEL2.so
5) export GDAL_DRIVER_PATH=$PWD
6) check the driver is available: gdalinfo --format SENTINEL2

> 
> Jose

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list