We're unable to get this working from our c# code on the EC2 instance. It appears to be an issue related to c# and curl. Attached is a sample c# and log:
The open works fine from our container using bash, but not python. It's a real mixed bag. BTW Its linux and using an IAM role. -- *Jeannie May* Senior Software Engineer 11 Birmingham Drive, Christchurch | 963 5305 Office www.trimble.com Connect with us!
using System;
using OSGeo.GDAL;
using MaxRev.Gdal.Core;
namespace root
{
class Program
{
static void Main(string[] args)
{
GdalBase.ConfigureAll();
Gdal.AllRegister();
Gdal.SetConfigOption("CPL_DEBUG","ON");
Gdal.SetConfigOption("CPL_CURL_VERBOSE","ON");
Gdal.SetConfigOption("GDAL_HTTP_TIMEOUT","30");
Gdal.SetConfigOption("AWS_REGION","us-west-2");
Gdal.SetConfigOption("AWS_HTTPS","NO");
var path =
"/vsis3/s3-pdxa-rpd-trex-designfiles/projectSvcIntegrationTests/637540489051794065_SmallGeotiff300kb.tif";
var opts = new GDALInfoOptions(new[] { "-json" });
var dataset = Gdal.Open(path, Access.GA_ReadOnly);
var metadataJson = Gdal.GDALInfo(dataset, opts);
Console.WriteLine(metadataJson);
}
}
}
output.log
Description: Binary data
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
