<div dir="ltr"><div dir="ltr">Dear all,<div><br></div><div>I would like to open this discussion here about creating a xml/ raster wcs ingest using gdal_translate. <br>My 2 goals are:</div><div>1 - get a xml like in [1] by running command line similar do gdal_wmts driver in [2]</div><div><br></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">gdal_translate</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"> </span><span style="font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;color:rgb(187,136,68)">"WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__Img_Sample">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__Img_Sample</a>"</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">wcs</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;font-weight:bold">.</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">xml</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;font-weight:bold">-</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">of</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">WCS</span><br></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><b>OR</b></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box"><br></span></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box">gdal_translate</span><span style="background-color:rgb(248,248,248)"> </span><span style="box-sizing:border-box;color:rgb(187,136,68)">"WCS:<a href="http://demo.geo-solutions.it/geoserver/ows?service=WCS&request=getCapabilities,layer=nurc__Img_Sample">http://demo.geo-solutions.it/geoserver/ows?service=WCS&request=getCapabilities,layer=nurc__Img_Sample</a></span></span><span style="font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;color:rgb(187,136,68)">"</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;background-color:rgb(248,248,248)"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">wcs</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;font-weight:bold">.</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">xml</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;background-color:rgb(248,248,248)"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;font-weight:bold">-</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">of</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;background-color:rgb(248,248,248)"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">WCS</span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">2 - get a xml / raster subset</span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box">gdal_translate</span><span style="background-color:rgb(248,248,248)"> </span><span style="box-sizing:border-box;color:rgb(187,136,68)">"WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__Img_Sample">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__Img_Sample</a>"</span><span style="background-color:rgb(248,248,248)"> </span><span style="box-sizing:border-box">wcs</span><span style="box-sizing:border-box;font-weight:bold">.</span><span style="box-sizing:border-box">xml -projwin -100 40 -80 30 </span><span style="box-sizing:border-box;font-weight:bold">-</span><span style="box-sizing:border-box">of</span><span style="background-color:rgb(248,248,248)"> </span><span style="box-sizing:border-box">WCS</span><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"><b>OR</b></span><br></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box"><span style="box-sizing:border-box"><br></span></span></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box"><span style="box-sizing:border-box">gdal_translate</span><span style="background-color:rgb(248,248,248)"> </span><span style="box-sizing:border-box;color:rgb(187,136,68)">"WCS:<a href="http://demo.geo-solutions.it/geoserver/ows?service=WCS&request=getCapabilities,layer=nurc__Img_Sample">http://demo.geo-solutions.it/geoserver/ows?service=WCS&request=getCapabilities,layer=nurc__Img_Sample</a></span></span><span style="box-sizing:border-box;color:rgb(187,136,68)">"</span><span style="background-color:rgb(248,248,248)"> </span><span style="box-sizing:border-box">wcs</span><span style="box-sizing:border-box;font-weight:bold">.</span><span style="box-sizing:border-box">xml -projwin -100 40 -80 30</span><span style="background-color:rgb(248,248,248)"> </span><span style="box-sizing:border-box;font-weight:bold">-</span><span style="box-sizing:border-box">of</span><span style="background-color:rgb(248,248,248)"> </span><span style="box-sizing:border-box">WCS</span><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><br></span></div><div>If the solution I am trying to get can not be possible through gdal_translate, would someone have a xml sample like [1], but with raster subset ingest, instead the whole image content.<br></div><div><br></div><div>I appreciated your time in advance. </div><div><br></div><div>Kind regards</div><div><br></div><div>Julierme</div><div><br></div><div>[1] <WCS_GDAL></div> <ServiceURL><a href="https://demo.geo-solutions.it/geoserver/wcs?version=2.0.1&" target="_blank">https://demo.geo-solutions.it/geoserver/wcs?version=2.0.1&</a>;</ServiceURL><br> <CoverageName>nurc:Img_Sample</CoverageName><br> <GetCoverageExtra>&BoundingBox=-130.85168,20.7052,-62.0054,54.1141</GetCoverageExtra><br></WCS_GDAL><div><br></div><div>[2] <span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">gdal_translate</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"> </span><span style="font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;color:rgb(187,136,68)">"WMTS:<a href="http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=lb" target="_blank">http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=lb</a>"</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">wmts</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;font-weight:bold">.</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">xml</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;font-weight:bold">-</span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">of</span><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(51,51,51);font-family:"Source Code Pro","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">WMTS.</span></div><div><br></div><div><br></div><div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 10, 2020 at 6:18 PM Rahkonen Jukka (MML) <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="FI">
<div class="gmail-m_906295510317691506WordSection1">
<p class="MsoNormal"><span>Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Sorry for the -spat that belongs to ogr2ogr. In gdal_translate it is -projwin.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The WMTS documentation is not relevant for the GDAL WCS driver. Most that they have in common is that they create a xml file for storing info about the capabilities of the service. The
WCS documentation alone should be enough for using the WCS driver, even I have to admit that I do not understand it totally, for example when it comes to cache control commands. Fortunately documentation can be improved.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Using WCS with GDAL is meant to be easy but unfortunately it seems to me that something is broken with it with some WCS services. It should be this easy to use:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="gmail-m_906295510317691506MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">Read general capabilities, including the names of the coverages. Example<u></u><u></u></span></li></ol>
<p class="gmail-m_906295510317691506MsoListParagraph"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></span><span lang="SV">gdalinfo "WCS:<a href="http://demo.geo-solutions.it/geoserver/wcs?version=2.0.1" target="_blank">http://demo.geo-solutions.it/geoserver/wcs?version=2.0.1</a>"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="SV"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The result contain the names of the subdatasets (coverages) as the WCS driver understands them<br>
<br>
Subdatasets:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_1_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__Arc_Sample" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__Arc_Sample</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_2_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=sde__GRAY_HR_SR_OB_DR" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=sde__GRAY_HR_SR_OB_DR</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_3_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=sde__HYP_HR_SR_OB_DR" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=sde__HYP_HR_SR_OB_DR</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_4_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=sde__NE2_HR_LC_SR_W_DR" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=sde__NE2_HR_LC_SR_W_DR</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_5_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__Img_Sample" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__Img_Sample</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_6_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=geosolutions__black_marble" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=geosolutions__black_marble</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_7_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=geosolutions__g30" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=geosolutions__g30</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_8_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__mosaic" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=nurc__mosaic</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_9_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=sf__sfdem" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=sf__sfdem</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> SUBDATASET_10_NAME=WCS:<a href="http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=geosolutions__truemarble" target="_blank">http://demo.geo-solutions.it:80/geoserver/wcs?version=2.0.1&coverage=geosolutions__truemarble</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<ol style="margin-top:0cm" start="2" type="1">
<li class="gmail-m_906295510317691506MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">Select one coverage and read more metadata about that, again with gdalinfo. This step fails now with my GDAL 3.2. Here some debug
info that shows that GDAL is generating a bbox/subset with lower limit = higher limit when it tries to read a small sample of the coverage. Geoserver does not accept the request and gives an error about an empty subset.<u></u><u></u></span></li></ol>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">gdalinfo "WCS:<a href="http://demo.geo-solutions.it/geoserver/wcs?version=2.0.1&coverage=nurc__mosaic" target="_blank">http://demo.geo-solutions.it/geoserver/wcs?version=2.0.1&coverage=nurc__mosaic</a>" --debug on<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">…<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">WCS: Requesting <a href="http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=DescribeCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&FORMAT=text/xml" target="_blank">http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=DescribeCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&FORMAT=text/xml</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">HTTP: Fetch(<a href="http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=DescribeCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&FORMAT=text/xml" target="_blank">http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=DescribeCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&FORMAT=text/xml</a>)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">HTTP: libcurl/7.70.0-DEV OpenSSL/1.1.1g zlib/1.2.3<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">WCS: Requesting <a href="http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&SUBSET=Long%286.3953399152693953,6.3953399152693953%29&SUBSET=Lat%2846.541601968340089,46.541601968340089%29&Format=image/tiff" target="_blank">http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&SUBSET=Long%286.3953399152693953,6.3953399152693953%29&SUBSET=Lat%2846.541601968340089,46.541601968340089%29&Format=image/tiff</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">HTTP: Fetch(<a href="http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&SUBSET=Long%286.3953399152693953,6.3953399152693953%29&SUBSET=Lat%2846.541601968340089,46.541601968340089%29&Format=image/tiff" target="_blank">http://demo.geo-solutions.it/geoserver/wcs?SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.1&COVERAGEID=nurc__mosaic&SUBSET=Long%286.3953399152693953,6.3953399152693953%29&SUBSET=Lat%2846.541601968340089,46.541601968340089%29&Format=image/tiff</a>)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">ERROR 1: HTTP error code : 404<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">ERROR 1: InvalidSubsetting: Empty intersection after subsetting<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<ol style="margin-top:0cm" start="3" type="1">
<li class="gmail-m_906295510317691506MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">The third step would be to use gdal_translate with -projwin option and get coverage from the given area. Now gdal_translate is
also making a probing request by min=max extents and it fails.<u></u><u></u></span></li></ol>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">However, the example request on the WCS document page that reads data from the National Land Survey of Finland works.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">gdal_translate -oo CACHE=wcs_cache -oo CLEAR_CACHE -oo INTERLEAVE=PIXEL -projwin 377418 6683393.87938218 377717.879386966 6683094 -oo Subset="time(1985-01-01T00:00:00.000Z)" -outsize
60 0 "WCS:<a href="https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?version=2.0.1&coverage=ortokuva__ortokuva" target="_blank">https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?version=2.0.1&coverage=ortokuva__ortokuva</a>" scaled.tiff<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">gdalinfo works as well<br>
<br>
gdalinfo "WCS:<a href="https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?version=2.0.1&coverage=ortokuva__ortokuva" target="_blank">https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?version=2.0.1&coverage=ortokuva__ortokuva</a>"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b>Lähettäjä:</b> 1520 gis <<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@gmail.com</a>>
<br>
<b>Lähetetty:</b> tiistai 10. marraskuuta 2020 18.10<br>
<b>Vastaanottaja:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>; Rahkonen Jukka (MML) <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>><br>
<b>Aihe:</b> Re: gdal-dev Digest, Vol 198, Issue 14<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Dear Jukka Rahkonen,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you very much for your reply.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">First of all, my apologies for my lack of knowledge about using GDAL_WCS driver. Let me give more details about the issues I am facing.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Extract of <a href="http://172.21.14.45:8181/geoserver/ows/wcs?request=GetCapabilities" target="_blank">http://172.21.14.45:8181/geoserver/ows/wcs?request=GetCapabilities</a> is shown in [1].<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Regarding gdal_translate GDAL_WCS driver Image subset extract, looking at <a href="https://gdal.org/drivers/raster/wcs.html#examples" target="_blank">https://gdal.org/drivers/raster/wcs.html#examples</a>, I tried the following:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Similar to GDAL_WMTS <<span class="gmail-m_906295510317691506gmail-n"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">gdal_translate</span></span><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51);background:rgb(248,248,248)">
</span><span class="gmail-m_906295510317691506gmail-s2"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(187,136,68)">"WMTS:<a href="http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=lb" target="_blank">http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=lb</a>"</span></span><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51);background:rgb(248,248,248)">
</span><span class="gmail-m_906295510317691506gmail-n"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">wmts</span></span><span class="gmail-m_906295510317691506gmail-o"><b><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">.</span></b></span><span class="gmail-m_906295510317691506gmail-n"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">xml</span></span><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51);background:rgb(248,248,248)">
</span><span class="gmail-m_906295510317691506gmail-o"><b><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">-</span></b></span><span class="gmail-m_906295510317691506gmail-n"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">of</span></span><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51);background:rgb(248,248,248)">
</span><span class="gmail-m_906295510317691506gmail-n"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">WMTS>,</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I tried running:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">(1)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> gdal_translate "WCS:<a href="http://172.21.14.45:8181/geoserver/wcs?version=2.0.1&coverage=deter-amazonia__CBERS-4_AWFI_170_111_21052020" target="_blank">http://172.21.14.45:8181/geoserver/wcs?version=2.0.1&coverage=deter-amazonia__CBERS-4_AWFI_170_111_21052020</a>"
CBERS-4_AWFI_170_111_21052020.xml <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><b>The response:</b> I did not get the xml as wmts.xml showed above<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Note: Including the -of option (WCS), the outcome fails<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">(2)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">gdal_translate "WCS:<a href="http://172.21.14.45:8181/geoserver/ows/wcs?request=GetCapabilities&coverage=deter-amazonia__CBERS-4_AWFI_170_111_21052020" target="_blank">http://172.21.14.45:8181/geoserver/ows/wcs?request=GetCapabilities&coverage=deter-amazonia__CBERS-4_AWFI_170_111_21052020</a>"
\<br>
-spat -58 -11 -57.75 -10.7 \<br>
CBERS-4_AWFI_170_111_21052020.xml<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><b>The response:</b> There is no -spat option for gdal_translate<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><b>gdal_translate --help</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Usage: gdal_translate [--help-general] [--long-usage]<br>
[-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/<br>
CInt16/CInt32/CFloat32/CFloat64}] [-strict]<br>
[-of format] [-b band] [-mask band] [-expand {gray|rgb|rgba}]<br>
[-outsize xsize[%]|0 ysize[%]|0] [-tr xres yres]<br>
[-r {nearest,bilinear,cubic,cubicspline,lanczos,average,mode}]<br>
[-unscale] [-scale[_bn] [src_min src_max [dst_min dst_max]]]* [-exponent[_bn] exp_val]*<br>
[-srcwin xoff yoff xsize ysize] [-epo] [-eco]<br>
[-projwin ulx uly lrx lry] [-projwin_srs srs_def]<br>
[-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]<br>
[-a_scale value] [-a_offset value]<br>
[-nogcp] [-gcp pixel line easting northing [elevation]]*<br>
|-colorinterp{_bn} {red|green|blue|alpha|gray|undefined}]<br>
|-colorinterp {red|green|blue|alpha|gray|undefined},...]<br>
[-mo "META-TAG=VALUE"]* [-q] [-sds]<br>
[-co "NAME=VALUE"]* [-stats] [-norat]<br>
[-oo NAME=VALUE]*<br>
src_dataset dst_dataset<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">[1] WCS GetCapabilities request <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><wcs:CoverageSummary></span></span><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u><u></u></span></p>
</div>
<div style="margin-left:12pt">
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:Title></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">CBERS-4_AWFI_170_111_21052020<span class="gmail-m_906295510317691506gmail-html-tag"></ows:Title></span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:Abstract></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">Generated from GeoTIFF<span class="gmail-m_906295510317691506gmail-html-tag"></ows:Abstract></span><u></u><u></u></span></p>
</div>
<div id="gmail-m_906295510317691506gmail-folder28">
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:Keywords></span></span><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u><u></u></span></p>
</div>
<div style="margin-left:12pt">
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:Keyword></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">deter-amazonia-CBERS-4_AWFI_170_111_21052020<span class="gmail-m_906295510317691506gmail-html-tag"></ows:Keyword></span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:Keyword></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">WCS<span class="gmail-m_906295510317691506gmail-html-tag"></ows:Keyword></span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:Keyword></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">GeoTIFF<span class="gmail-m_906295510317691506gmail-html-tag"></ows:Keyword></span><u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"></ows:Keywords></span></span><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><wcs:CoverageId></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">deter-amazonia__CBERS-4_AWFI_170_111_21052020<span class="gmail-m_906295510317691506gmail-html-tag"></wcs:CoverageId></span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><wcs:CoverageSubtype></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">RectifiedGridCoverage<span class="gmail-m_906295510317691506gmail-html-tag"></wcs:CoverageSubtype></span><u></u><u></u></span></p>
</div>
<div id="gmail-m_906295510317691506gmail-folder29">
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:WGS84BoundingBox></span></span><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u><u></u></span></p>
</div>
<div style="margin-left:12pt">
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:LowerCorner></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">-63.280290728152664 -13.794296142085976<span class="gmail-m_906295510317691506gmail-html-tag"></ows:LowerCorner></span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:UpperCorner></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">-53.624004749255874 -5.636644661059637<span class="gmail-m_906295510317691506gmail-html-tag"></ows:UpperCorner></span><u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"></ows:WGS84BoundingBox></span></span><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u><u></u></span></p>
</div>
</div>
<div id="gmail-m_906295510317691506gmail-folder30">
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:BoundingBox</span></span><span class="gmail-m_906295510317691506gmail-html-attribute"><span style="font-size:10pt;font-family:"Courier New";color:black"> </span></span><span class="gmail-m_906295510317691506gmail-html-attribute-name"><span style="font-size:10pt;font-family:"Courier New";color:black">crs</span></span><span class="gmail-m_906295510317691506gmail-html-attribute"><span style="font-size:10pt;font-family:"Courier New";color:black">="</span></span><span class="gmail-m_906295510317691506gmail-html-attribute-value"><span style="font-size:10pt;font-family:"Courier New";color:black"><a href="http://www.opengis.net/def/crs/EPSG/0/EPSG:4326" target="_blank">http://www.opengis.net/def/crs/EPSG/0/EPSG:4326</a></span></span><span class="gmail-m_906295510317691506gmail-html-attribute"><span style="font-size:10pt;font-family:"Courier New";color:black">"</span></span><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black">></span></span><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u><u></u></span></p>
</div>
<div style="margin-left:12pt">
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:LowerCorner></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">-63.280290728152664 -13.794296142085976<span class="gmail-m_906295510317691506gmail-html-tag"></ows:LowerCorner></span><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"><ows:UpperCorner></span></span><span style="font-size:10pt;font-family:"Courier New";color:black">-53.624004749255874 -5.636644661059637<span class="gmail-m_906295510317691506gmail-html-tag"></ows:UpperCorner></span><u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"></ows:BoundingBox></span></span><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u><u></u></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_906295510317691506gmail-html-tag"><span style="font-size:10pt;font-family:"Courier New";color:black"></wcs:CoverageSummary></span></span><span style="font-size:10pt;font-family:"Courier New";color:black"><u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Any comment will be very appreciated.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">GDAL <a href="https://gdal.org/drivers/raster/wmts.html" target="_blank">website</a> provides examples on how to run GDAL_WMTS driver in order to get a wmts xml file. I have looked in <a href="https://gdal.org/drivers/raster/wcs.html" target="_blank">https://gdal.org/drivers/raster/wcs.html</a>
and could not find an example pointing to -spat option. I got an -spat option <u></u><u></u></p>
<div>
<p class="MsoNormal">to<a href="https://gdal.org/programs/gdal_grid.html?highlight=spat#cmdoption-gdal_grid-spat" target="_blank"> gdal_grid</a> though. <u></u><u></u></p>
</div>
<div>
<pre style="background:rgb(248,248,248);box-sizing:border-box;overflow:auto"><span class="gmail-m_906295510317691506gmail-n"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">gdal_translate</span></span><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)"> </span><span class="gmail-m_906295510317691506gmail-s2"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(187,136,68)">"WMTS:<a href="http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=lb" target="_blank">http://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml,layer=lb</a>"</span></span><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)"> <span class="gmail-m_906295510317691506gmail-n">wmts</span><span class="gmail-m_906295510317691506gmail-o"><b>.</b></span><span class="gmail-m_906295510317691506gmail-n">xml</span> <span class="gmail-m_906295510317691506gmail-o"><b>-</b></span><span class="gmail-m_906295510317691506gmail-n">of</span> <span class="gmail-m_906295510317691506gmail-n">WMTS</span><u></u><u></u></span></pre>
<pre style="background:rgb(248,248,248);box-sizing:border-box;overflow:auto"><span class="gmail-m_906295510317691506gmail-n"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">gdal_translate "WCS:<a href="http://www.dpi.inpe.br/fipcerrado-geoserver/ows/wcs?request=GetCapabilities" target="_blank">http://www.dpi.inpe.br/fipcerrado-geoserver/ows/wcs?request=GetCapabilities</a>" \</span></span><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)"><u></u><u></u></span></pre>
<pre style="margin-bottom:12pt;background:rgb(248,248,248);box-sizing:border-box;overflow:auto"><span class="gmail-m_906295510317691506gmail-n"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)">-oo CoverageName=deter-cerrado:CBERS-4_AWFI_161_099_13072018 CBERS-4_AWFI_161_099_13072018.xml -of WCS</span></span><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)"><u></u><u></u></span></pre>
<pre style="background:rgb(248,248,248);box-sizing:border-box;overflow:auto"><span style="font-size:9pt;font-family:"Lucida Console";color:rgb(51,51,51)"><u></u> <u></u></span></pre>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Nov 9, 2020 at 5:00 PM <<a href="mailto:gdal-dev-request@lists.osgeo.org" target="_blank">gdal-dev-request@lists.osgeo.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Send gdal-dev mailing list submissions to<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">
https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gdal-dev-request@lists.osgeo.org" target="_blank">gdal-dev-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gdal-dev-owner@lists.osgeo.org" target="_blank">gdal-dev-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gdal-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Selecting just the geometry column with OGR SQL (Even Rouault)<br>
2. Re: Selecting just the geometry column with OGR SQL<br>
(Rahkonen Jukka (MML))<br>
3. Re: WCS_GDAL Driver Image SubSet Request (jratike80)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 09 Nov 2020 16:09:45 +0100<br>
From: Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>><br>
To: <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
Cc: "Rahkonen Jukka (MML)" <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>><br>
Subject: Re: [gdal-dev] Selecting just the geometry column with OGR<br>
SQL<br>
Message-ID: <<a href="mailto:1659214.2tRo4lr4Oo@even-i700" target="_blank">1659214.2tRo4lr4Oo@even-i700</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Jukka,<br>
<br>
> I believe that OGR SQL dialect adds the geometry column into SQL selection<br>
> by default. Am I right with this? I volunteer to edit the documentation<br>
> <a href="https://gdal.org/user/ogr_sql_dialect.html" target="_blank">https://gdal.org/user/ogr_sql_dialect.html</a> if this is the case. But what I<br>
> can't understand is another side of the story, how to select just the<br>
> geometry field with OGR SQL dialect from some data sources.<br>
> <br>
> This command returns both time column and geometry from GML<br>
> ogrinfo -sql "select time from timetest" timetest.gml<br>
> I can select just the geometry from geometry column named as<br>
> "geometryProperty" by ogrinfo -sql "select geometryProperty from timetest"<br>
> timetest.gml<br>
> <br>
> The behavior is the same with SpatiaLite when I use "-dialect OGRSQL".<br>
> Geometry is selected automatically but it can be selected also by name. But<br>
> I cannot discover any way to select just the geometry field from shapefile.<br>
> Is it because geometry column in shapefile does not have any name as this<br>
> Python test seems to prove?<br>
> >>> from osgeo import ogr<br>
> >>> shp_ds = ogr.Open('timetest.shp')<br>
> >>> shp_lyr = shp_ds.GetLayer(0)<br>
> >>> shp_lyr.GetGeometryColumn()<br>
> <br>
> ''<br>
> <br>
> OpenJUMP JML driver does not report a name for geometry column either. Is it<br>
> rather an exception that drivers give names for the geometry columns? I<br>
> know I can select only the geometry column with the SQLite dialect, but I<br>
> am curious.<br>
<br>
Indeed, in OGR SQL, if the geometry column has a non-empty name (typically for <br>
database drivers), you can use it to select it. When the geometry column name <br>
is empty, such as in the shapefile or OpenJUMP driver, you can use <br>
_ogr_geometry_ (with leading and trainling underscore) to select it. This is <br>
likely undocumented.<br>
<br>
As far as I can see, this was introduced per<br>
<a href="https://github.com/OSGeo/gdal/commit/1519dcb00bd7802d2f701114f0e1cb9b524a547f" target="_blank">https://github.com/OSGeo/gdal/commit/1519dcb00bd7802d2f701114f0e1cb9b524a547f</a><br>
to fix an issue with comparison with empty string literals (this was before <br>
OGR enforced the difference between single-quoted string literals and double-<br>
quoted identifiers)<br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 9 Nov 2020 15:35:11 +0000<br>
From: "Rahkonen Jukka (MML)" <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>><br>
To: Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>>,<br>
"<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>" <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
Subject: Re: [gdal-dev] Selecting just the geometry column with OGR<br>
SQL<br>
Message-ID: <<a href="mailto:d59795ddfd994dee9f5eca836361324a@maanmittauslaitos.fi" target="_blank">d59795ddfd994dee9f5eca836361324a@maanmittauslaitos.fi</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Even Rouault wrote: <br>
maanantai 9. marraskuuta 2020 17.10<br>
<br>
> Jukka,<br>
<br>
>> I believe that OGR SQL dialect adds the geometry column into SQL <br>
>> selection by default. Am I right with this? I volunteer to edit the <br>
>> documentation <a href="https://gdal.org/user/ogr_sql_dialect.html" target="_blank">
https://gdal.org/user/ogr_sql_dialect.html</a> if this is <br>
>> the case. But what I can't understand is another side of the story, <br>
>> how to select just the geometry field with OGR SQL dialect from some data sources.<br>
>> <br>
>> This command returns both time column and geometry from GML ogrinfo <br>
>> -sql "select time from timetest" timetest.gml I can select just the <br>
>> geometry from geometry column named as "geometryProperty" by ogrinfo <br>
>> -sql "select geometryProperty from timetest"<br>
>> timetest.gml<br>
>> <br>
>> The behavior is the same with SpatiaLite when I use "-dialect OGRSQL".<br>
>> Geometry is selected automatically but it can be selected also by <br>
>> name. But I cannot discover any way to select just the geometry field from shapefile.<br>
>> Is it because geometry column in shapefile does not have any name as <br>
>> this Python test seems to prove?<br>
>> >>> from osgeo import ogr<br>
>> >>> shp_ds = ogr.Open('timetest.shp')<br>
>> >>> shp_lyr = shp_ds.GetLayer(0)<br>
>> >>> shp_lyr.GetGeometryColumn()<br>
>> <br>
>> ''<br>
>> <br>
>> OpenJUMP JML driver does not report a name for geometry column either. <br>
>> Is it rather an exception that drivers give names for the geometry <br>
>> columns? I know I can select only the geometry column with the SQLite <br>
>> dialect, but I am curious.<br>
<br>
> Indeed, in OGR SQL, if the geometry column has a nonempty name (typically for <br>
> database drivers), you can use it to select it. When the geometry column name <br>
> is empty, such as in the shapefile or OpenJUMP driver, you can use <br>
> _ogr_geometry_ (with leading and trainling underscore) to select it. This is likely undocumented.<br>
<br>
> As far as I can see, this was introduced per <br>
> <a href="https://github.com/OSGeo/gdal/commit/1519dcb00bd7802d2f701114f0e1cb9b524a547f" target="_blank">
https://github.com/OSGeo/gdal/commit/1519dcb00bd7802d2f701114f0e1cb9b524a547f</a><br>
> to fix an issue with comparison with empty string literals (this was before OGR enforced the<br>
> difference between single-quoted string literals and double- quoted identifiers)<br>
<br>
I could not manage to guess the right syntax for Windows right ahead but solved the quiz easily
<br>
with your double-quote hint<br>
<br>
First trial:<br>
ogrinfo -sql "select _ogr_geometry_ from timetest" timetest.shp<br>
INFO: Open of `timetest.shp'<br>
using driver `ESRI Shapefile' successful.<br>
ERROR 1: SQL Expression Parsing Error: syntax error, unexpected $undefined. Occurred around :<br>
select _ogr_geometry_ from timetest<br>
<br>
Second trial:<br>
ogrinfo -sql "select \"_ogr_geometry_\" from timetest" timetest.shp <br>
<br>
-Jukka-<br>
<br>
> Even<br>
<br>
--<br>
Spatialys - Geospatial professional services <a href="http://www.spatialys.com" target="_blank">
http://www.spatialys.com</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 9 Nov 2020 08:47:05 -0700 (MST)<br>
From: jratike80 <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>><br>
To: <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
Subject: Re: [gdal-dev] WCS_GDAL Driver Image SubSet Request<br>
Message-ID: <<a href="mailto:1604936825138-0.post@n6.nabble.com" target="_blank">1604936825138-0.post@n6.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi,<br>
<br>
Do you want to make is somehow impossible to request data beyound the<br>
BoundingBox that you defined in the XML file? If you just want to get data<br>
from the rectangle that you or your users define, gdal_translate with the<br>
regular -spat option should work out-of-the-box.<br>
<br>
-Jukka Rahkonen- <br>
<br>
<br>
juliermeopensourcedeveloper wrote<br>
> Hi all,<br>
> <br>
> Is it possible to define a bounding box in order to request a coverage<br>
> subset using the GDAL WCS Driver?<br>
> I have tried the code in [1]. I am trying to get information only for the<br>
> bbox_interest=( -58,-11,-57.75,-10.75) as shown below, however the subset<br>
> image or bbox_interest request has not been delivered. The West Longitude<br>
> reaches -50.17 and The Lower Latitude reaches -18.92 which are limits out<br>
> of the bbox_interest.<br>
> The image extent is:<br>
> <GetCoverageExtra><br>
> &BoundingBox=-63.280290728152664,-13.794296142085976,-53.624004749255874,-5.636644661059637<br>
> </GetCoverageExtra><br>
> Any comment on this issue will be greatly appreciated.<br>
> Thank you very much for your time in advance.<br>
> *CODE [1]:*<br>
> <WCS_GDAL><br>
> <ServiceURL><br>
> <a href="http://172.21.14.45:6060/geoserver/wcs?version=1.0.0&" target="_blank">
http://172.21.14.45:6060/geoserver/wcs?version=1.0.0&</a>;<br>
> </<br>
> ServiceURL><br>
> <CoverageName><br>
> cbers_deter_amazonia:CBERS-4_AWFI_170_111_21052020<br>
> </<br>
> CoverageName><br>
> <GetCoverageExtra><br>
> &BoundingBox=-58,-11,-57.75,-10.75<br>
> </GetCoverageExtra><br>
> <CoverageOffering><br>
> <description><br>
> Generated from GeoTIFF<br>
> </description><br>
> <name><br>
> cbers_deter_amazonia:CBERS-4_AWFI_170_111_21052020<br>
> </name><br>
> <label><br>
> CBERS-4_AWFI_170_111_21052020<br>
> </label><br>
> <lonLatEnvelope srsName="urn:ogc:def:crs:OGC:1.3:CRS84"><br>
> <pos><br>
> -58 -11<br>
> </pos><br>
> <pos><br>
> -57.75 -10.75<br>
> </pos><br>
> </lonLatEnvelope><br>
> <keywords><br>
> <keyword><br>
> WCS<br>
> </keyword><br>
> <keyword><br>
> GeoTIFF<br>
> </keyword><br>
> </keywords><br>
> <domainSet><br>
> <spatialDomain><br>
> <Envelope srsName="EPSG:4326"><br>
> <pos><br>
> -58 -11<br>
> </pos><br>
> <pos><br>
> -57.75 -10.75<br>
> </pos><br>
> </Envelope><br>
> <RectifiedGrid dimension="2" srsName="EPSG:4326"><br>
> <limits><br>
> <GridEnvelope><br>
> <low><br>
> 0 0<br>
> </low><br>
> <high><br>
> 0 0<br>
> </high><br>
> </GridEnvelope><br>
> </limits><br>
> <axisName><br>
> x<br>
> </axisName><br>
> <axisName><br>
> y<br>
> </axisName><br>
> <origin><br>
> <pos><br>
> -58 -10.75<br>
> </pos><br>
> </origin><br>
> <offsetVector><br>
> 0.005364603321609328 0.0<br>
> </offsetVector><br>
> <offsetVector><br>
> 0.0 -0.004532028600570188<br>
> </offsetVector><br>
> </RectifiedGrid><br>
> </spatialDomain><br>
> </domainSet><br>
> <rangeSet><br>
> <RangeSet><br>
> <name><br>
> CBERS-4_AWFI_170_111_21052020<br>
> </name><br>
> <label><br>
> CBERS-4_AWFI_170_111_21052020<br>
> </label><br>
> <axisDescription><br>
> <AxisDescription><br>
> <name><br>
> Band<br>
> </name><br>
> <label><br>
> Band<br>
> </label><br>
> <values><br>
> <interval><br>
> <min><br>
> 1<br>
> </min><br>
> <max><br>
> 4<br>
> </max><br>
> </interval><br>
> </values><br>
> </AxisDescription><br>
> </axisDescription><br>
> </RangeSet><br>
> </rangeSet><br>
> <supportedCRSs><br>
> <requestResponseCRSs><br>
> EPSG:4326<br>
> </requestResponseCRSs><br>
> </supportedCRSs><br>
> <supportedFormats nativeFormat="GeoTIFF"><br>
> <formats><br>
> GeoTIFF<br>
> </formats><br>
> <formats><br>
> GIF<br>
> </formats><br>
> <formats><br>
> JPEG<br>
> </formats><br>
> <formats><br>
> PNG<br>
> </formats><br>
> <formats><br>
> TIFF<br>
> </formats><br>
> </supportedFormats><br>
> <supportedInterpolations default="nearest neighbor"><br>
> <interpolationMethod><br>
> nearest neighbor<br>
> </interpolationMethod><br>
> <interpolationMethod><br>
> bilinear<br>
> </interpolationMethod><br>
> <interpolationMethod><br>
> bicubic<br>
> </interpolationMethod><br>
> </supportedInterpolations><br>
> </CoverageOffering><br>
> <PreferredFormat><br>
> GeoTIFF<br>
> </PreferredFormat><br>
> <BandCount><br>
> 4<br>
> </BandCount><br>
> <BandType><br>
> Byte<br>
> </BandType><br>
> </WCS_GDAL><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
<br>
> <a href="mailto:gdal-dev@.osgeo" target="_blank">gdal-dev@.osgeo</a><br>
<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html" target="_blank">
http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
------------------------------<br>
<br>
End of gdal-dev Digest, Vol 198, Issue 14<br>
*****************************************<u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</blockquote></div></div>