[gdal-dev] Is there a way to put config options in a vrt?

2023-02-20 Thread michael . smith . erdc
Is there a method to add gdal configuration options to a VRT so that they are carried around with it? For example: gdalbuildvrt openlandmap_dtm.vrt /vsis3/openlandmap/dtm/dtm.bareearth_ensemble_p10_30m_s_2018_go_epsg4326_v20230210.tif --config AWS_NO_SIGN_REQUEST YES --config AWS_S3_ENDPOINT

Re: [gdal-dev] Is there a way to create a spatial index in FGB if created without?

2022-11-24 Thread michael . smith . erdc
I don’t believe these are huge features, its OSM building for the world. Must be the memory constraint since it is a lot of features. This doesn’t happen (i think, am retesting now) if created from the osm pbf file directly but does from the fgb created from the pbf. Do either of the columnar forma

[gdal-dev] Is there a way to create a spatial index in FGB if created without?

2022-11-24 Thread michael . smith . erdc
Basically, can one create a spatial index in a flatgeobuf file if the source does not have one? Also, when trying to just create a new flatgeobuf with a spatial index from one without (using ogr2ogr), I get a lot of ERROR 2: ICreateFeature: Too big feature Mike -- Michael Smith US Army

Re: [gdal-dev] errors using IAM instance profile auth in s3

2022-11-19 Thread michael . smith . erdc
Correct, not a public bucket, which is why the IAM credentials are needed. If I set them manually, it all works fine.[ u02]$ export AWS_ACCESS_KEY_ID=x[ u02]$ gdalinfo /vsis3/grid-dev-publiclidar/estoni

Re: [gdal-dev] errors using IAM instance profile auth in s3

2022-11-19 Thread michael . smith . erdc
I’m seeing that it’s getting a 206 response code, so wouldn’t that indicate auth is working? gdalinfo /vsis3/grid-dev-publiclidar/estonia/dtm/estonia_dtm_5m.tif HTTP: Fetch(http://169.254.169.254/latest/api/token) HTTP: libcurl/7.86.0 OpenSSL/3.0.7 zlib/1.2.13 libssh2/1.10.0 nghttp2/1.47.0 HTTP:

Re: [gdal-dev] errors using IAM instance profile auth in s3

2022-11-19 Thread michael . smith . erdc
curl http://169.254.169.254/latest/meta-data/iam/security-credentials/iam-grid-s3 { "Code" : "Success", "LastUpdated" : "2022-11-19T14:30:52Z", "Type" : "AWS-HMAC", "AccessKeyId" : "xxx", "SecretAccessKey" : "x/1ssuwVLuUevA", "Token" : "xz6ZANv

[gdal-dev] errors using IAM instance profile auth in s3

2022-11-19 Thread michael . smith . erdc
Just recently I’m seeing errors using iam profile authentication using /vsis3 drivers in gdal (over multiple versions). gdalinfo /vsis3/grid-dev-publiclidar/estonia/dtm/estonia-dtm-5m.tif HTTP: Fetch(http://169.254.169.254/latest/api/token) HTTP: libcurl/7.86.0 OpenSSL/3.0.7 zlib/1.2.13 libssh2

Re: [gdal-dev] Driver maintenance - long-term solution ?

2021-01-20 Thread michael . smith . erdc
Angelos, OSGeo is a US non profit 501(c)(4), not (c)(3). We can receive donations but they are not tax deductible. Michael Smith OSGeo Treasurer > On Jan 20, 2021, at 4:27 AM, Angelos Tzotsos wrote: > > Hi, > > OSGeo is an approved 501(c)(3) organization. > > https://en.wikipedia.org/wiki

Re: [gdal-dev] Problems loading swedish climate data to PostGIS

2020-06-23 Thread michael . smith . erdc
You should try using the precision=no layer creation option. With the default of YES, it tries to set the precision on columns based on the first 50 values. Often you have data that can exceed that. You could either precreate the table with correct field definitions and then append, or set preci

Re: [gdal-dev] Using GDAL WMS with USGS 3DEPElevationIndex

2020-06-03 Thread michael . smith . erdc
Carl, Try something like gdal_translate -f gtiff "https://index.nationalmap.gov/arcgis/rest/services/3DEPElevationIndex/MapServerxyXY3857-20037508.3420037508.3420037508.34-20037508.3425002500" test1.tif -projwin ulx uly lrx lry -projwin_srs -t_srs If you want a different size than 2500x250