Re: [gdal-dev] [EXTERNAL] gdalwarp results differ in different gdal versions?

2020-05-08 Thread Hare, Trent M
Meghan, Looks like you are on Mars and in your warp command your +a and +b appear to be in kilometers -- when they should be meters. Now I'm not sure where those radii values are coming from. I guess I would recommend using the same as the input image though. +a=3396000 +b=3396000 -Trent

Re: [gdal-dev] COG - RGBI

2020-05-08 Thread Travis Kirstine
Thanks all for the feedback! Right now we are looking at doing this for only 8bit. Regards On Fri, 8 May 2020 at 15:14, Frank Warmerdam wrote: > Travis, > > The big benefit of JPEG compression comes with YCbCr color space which I > do not believe can be mixed with a 4 band RGBI product. So

Re: [gdal-dev] gdalwarp results differ in different gdal versions?

2020-05-08 Thread Meghan Burris
That is correct, my image is a Mars southern pole image. Those radii are pulled from another file but I have run the command with the +a/b being in meters, specifically 3396000 and I still get the same result (missing polar information). I have also run the command using -wo SAMPLE_GRID=YES and

Re: [gdal-dev] COG - RGBI

2020-05-08 Thread Even Rouault
On vendredi 8 mai 2020 15:08:36 CEST Travis Kirstine wrote: > Is it possible to create RGBI Cloud Optimized Tiffs with JPEG compression? Possibly. But not with the COG driver, which doesn't offer the option for that. You should use the old way with the GTiff driver by forcing -co

Re: [gdal-dev] COG - RGBI

2020-05-08 Thread Frank Warmerdam
Travis, The big benefit of JPEG compression comes with YCbCr color space which I do not believe can be mixed with a 4 band RGBI product. So I'm not sure how one would do this. One could certainly put the NIR in a distinct directory in the GeoTIFF, but not many applications would know how to

Re: [gdal-dev] COG - RGBI

2020-05-08 Thread Vincent Sarago
I guess you mean RGB and I for Infra-red ? Anyway the answer will be NO. JPEG only allow 3 bands + a bit mask (same for Webp). For raster with more than 3 bands there is no real option to get compression (with loss) as high as with JPEG or WEBP . > Le 8 mai 2020 à 15:08, Travis Kirstine a

[gdal-dev] COG - RGBI

2020-05-08 Thread Travis Kirstine
Is it possible to create RGBI Cloud Optimized Tiffs with JPEG compression? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdalwarp results differ in different gdal versions?

2020-05-08 Thread Even Rouault
Meghan, Handling poles tend to be fragile, so perhaps something that worked previously no longer works. Did you try -wo SAMPLE_GRID=YES ? If that still doesn't work, the best is you open a ticket with an input image attached (dimensions reduced as much as possible while still reproducing

[gdal-dev] gdalwarp results differ in different gdal versions?

2020-05-08 Thread Meghan Burris
Hello! I'm hoping someone can shine some light in my direction because I can't find any answers. I'm trying to warp a Polar Stereographic image into an Equal Cylindrical projection. When I run the gdalwarp command on older versions (specifically 1.8.1), my image looks as I would expect. When I

[gdal-dev] Fwd: Gecomputation web-seminars (GDAL, PKTOOLS, GRASS, HPC)

2020-05-08 Thread Giuseppe Amatulli
-- Forwarded message - From: Giuseppe Amatulli Date: Fri, 8 May 2020 at 13:35 Subject: Gecomputation web-seminars (GDAL, PKTOOLS, GRASS, HPC) To: Dear Colleagues, In reference to the Gecomputation web-seminars starting on Monday, May 11th 2020, below you can find the youtube

Re: [gdal-dev] New to Gdal and NITF

2020-05-08 Thread RejectKid
sweet thanks. this thread has helped a bunch thanks! -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] GDAL C# Bindings: How to implement callback

2020-05-08 Thread rmaddu
Dear All, I have called below GDAL function with callback, not getting the call to callback function? var newDs = Gdal.wrapper_GDALVectorTranslateDestName(output, ds, gdalOptions, new Gdal.GDALProgressFuncDelegate(ProgressFunc), null); public static int ProgressFunc(double Complete, IntPtr

[gdal-dev] Difference results from QGIS project on fly and gdalwarp for EPSG:4326 of Sentinel 2 UTM zone 32?

2020-05-08 Thread Pham Huu Bang
Hello, I always thought QGIS and gdalwarp should return same result for projecting a 2D Sentinel 2 image (e.g: T32UQD_20200421T102021_TCI_60m.jp2) from UTM 32 to EPSG:4326. What I did was: - Open the .jp2 in QGis 2.14.9 with 'Enable on the fly CRS transformation'. - Warp the .jp2

[gdal-dev] How to calculate affine transformation by Python gdal as same as gdal_translate?

2020-05-08 Thread Pham Huu Bang
Hello, I've tried to reproduce a problem to subset (clip) an UTM 32 Sentinel 2 GeoTiff by a given Bounding box (BBOX) in EPSG:4326. I've created a python gdal script for it, but the result is always contain few more pixels than what I've tried with gdal_translate binary. All information of the

[gdal-dev] gdal_viewshed

2020-05-08 Thread Rahkonen Jukka (MML)
Hi Pedro, You wrote that you used this command in your test gdal_viewshed -b 1 -md 28000.0 -ox -41597.922 -oy 71254.049 -oz 21.6 -tz 10.0 -vv 1 -cc 0.85714 -f GTiff path_to_mdt.tif path_to_output.tif Could you also give a link to "path_to_mdt.tif" or repeat the test with some other DEM that