Re: [Geoserver-users] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-06 Thread George Ma
hello Bangļ¼š Geoserver WCS maybe use Geotools component library rather than GDAL library. It can generate the different result because of resample interpolation method,precision,etc. I think you can use GDAL in Java Programming.And this way is controllable and custom by yourself. Jody Garnett

Re: [Geoserver-users] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-05 Thread Jody Garnett
Good idea checking with GeoTools, sadly I should step asside and someone more experienced then me answer your questions about WCS. Still if you are comfortable with GeoTools you may wish to step through the GetCoverage operation in a debugger to see how it is coming up with the final grid. The wh

Re: [Geoserver-users] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-04 Thread Pham Huu Bang
Hello Jody, I even tested with GeoTools v29-snapshot with this code below and it returned size 18 x 5 instead of 17 x 3 for gdal_translate or 17 x 4 for geoserver WCS GetCoverage. I thought using geotools should yield the same result as geoserver WCS GetCoverage, but it is not. Do you have any sug

Re: [Geoserver-users] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-03 Thread Jody Garnett
To our request defines the grid locations, you may have to read the standard to determine exactly how the grid is defined for your request. The standard is available on the OGC website. Thanks On Mon, Apr 3, 2023 at 7:00 AM Pham Huu Bang wrote: > Hello Jody, > > >I find WCS tricky to use, did y

Re: [Geoserver-users] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-03 Thread Pham Huu Bang
Hello Jody, >I find WCS tricky to use, did you use the WCS Request Builder to produce your curl command? No, I didn't use any tool for that. The parameters in curl command are standard WCS 2.0.1 GetCoverage request. >One thing I could not determine from your curl example is what what target cover

Re: [Geoserver-users] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-03 Thread Jody Garnett
I find WCS tricky to use, did you use the WCS Request Builder to produce your curl command? One thing I could not determine from your curl example is what what target coverage layout is being used (which is probably what your question is about). I am not sure if WCS 2 allows you to specify that ma

[Geoserver-users] [Question]Output from gdal_translate projwin is different from geoserver WCS GetCoverage request?

2023-04-03 Thread Pham Huu Bang
Hello, I've a hard time understanding which one should be the correct result by gdal_translate or GeoServer. My system (Ubuntu 22.04) has: - GDAL 3.4.1 - Geoserver 2.22 running on Tomcat on port 9090 I have a small tiff file (link to download at the bottom of this thread) in EPSG:4326, then I wa