OK It's working now.
Thanks for all your help.
Solution:
When generating VRT with GDAL I did not use full path for Sentinel2 xml
file. This is fine for using gdal_translate etc but causes an error inside
PostGIS as full path is required both to the VRT and inside it.
Also I compiled GDAL 2.1 wi
UPDATE:
raster2pgsql will let me add a band from the VRT to database as a PostGIS
Raster with -s flag.
Query works.
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/PostGIS-Out-of-db-VRT-containing-JPEG2000-GDAL-2-1-OpenJPEG-tp5269888p5270011.html
Sent from the GDAL - Dev ma
Jukka Rahkonen wrote
> Driver JPEG2000 means the Jasper driver which is rather useless for
> geospatial images http://www.gdal.org/frmt_jpeg2000.html. Do you see also
> driver JP2OpenJPEG listed http://www.gdal.org/frmt_jp2openjpeg.html?
OK so I've built everything from scratch again and can confi
Thanks for your suggestions.
SELECT short_name FROM ST_GDALDrivers();
Lists VRT, GTiff, JPEG2000 etc as a supported formats
I am able to use gdal_translate to convert between VRT (created using
Sentinel2 Driver) and GeoTiff
One thing I do remember now - could be a question for PostGIS list - w
Not sure on 'repost' rules so apologies if this is out of place, but I have
this GDAL/JPEG2000/VRT/POSTGIS problem that I have put up on GIS Stack
Exchange with no interest. I am unsure if it is a bug, incorrect setup or
not even possible.
Essentially my procedure is:
Build GDAL 2.1 with OpenJPEG