<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EstiloCorreo17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ES" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB">Hello, I trying a WMS web service with gdal, but I have different results depend on I use a url in a web browser or I use the gdal commands.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">If I put this url in Crome:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><a href="https://wms.mapa.gob.es/sigpac/ows?FORMAT=image/jpeg&HEIGHT=99&LAYERS=EEPP&WIDTH=183&SERVICE=WMS&BBOX=413276.0389803443,4066482.0439935336,675346.7028941214,4208125.2305295570&REQUEST=GetMap&TRANSPARENT=FALSE&STYLES=&VERSION=1.3.0&CRS=EPSG:25830">https://wms.mapa.gob.es/sigpac/ows?FORMAT=image/jpeg&HEIGHT=99&LAYERS=EEPP&WIDTH=183&SERVICE=WMS&BBOX=413276.0389803443,4066482.0439935336,675346.7028941214,4208125.2305295570&REQUEST=GetMap&TRANSPARENT=FALSE&STYLES=&VERSION=1.3.0&CRS=EPSG:25830</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I get an image:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><img border="0" width="870" height="344" style="width:9.0625in;height:3.5833in" id="Imagen_x0020_1" src="cid:image002.jpg@01D72C65.1B877460"><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">But If I use the same parameters in a XML file, like as this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><GDAL_WMS><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <Service name="WMS"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <Version>1.3.0</Version><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <ServerUrl>https://wms.mapa.gob.es/sigpac/ows?SERVICE=WMS&username=&password=</ServerUrl><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <Layers>EEPP</Layers><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <CRS>EPSG:25830</CRS><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <ImageFormat>image/jpeg</ImageFormat><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <Transparent>FALSE</Transparent><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <BBoxOrder>xyXY</BBoxOrder><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </Service><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <DataWindow><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <UpperLeftX>413276.0389803443</UpperLeftX><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <UpperLeftY>4208125.2305295570</UpperLeftY><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <LowerRightX>675346.7028941214</LowerRightX><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <LowerRightY>4066482.0439935336</LowerRightY><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <SizeX>183</SizeX><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <SizeY>99</SizeY><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </DataWindow><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <Timeout>1600</Timeout><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <BandsCount>3</BandsCount><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <BlockSizeX>1024</BlockSizeX><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <BlockSizeY>1024</BlockSizeY><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <OverviewCount>20</OverviewCount><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <UserPwd>:</UserPwd><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <UnsafeSSL>true</UnsafeSSL><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <ZeroBlockHttpCodes></ZeroBlockHttpCodes><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"></GDAL_WMS><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">And then I run the next gdal command: gdal_translate -of JPEG -outsize 183 99 C:\Users\elena\AppData\Local\Temp\tmpnuevo.xml C:\Users\elena\AppData\Local\Temp\miimagen.jpeg<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The result is :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt">Input file size is 183, 99<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt">0ERROR 1: GDALWMS: Unable to download block 0, 0.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt">URL: <!doctype html><html lang="es"><head><title>Estado HTTP 401 ÔÇô No autorizado</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;}
h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>Estado HTTP 401 ÔÇô No autorizado</h1><hr class="line" /><p><b>Tipo</b> Informe
de estado</p><p><b>mensaje</b> Unauthorized</p><p><b>Descripci</span><span lang="EN-GB" style="font-size:9.0pt;font-family:"Arial",sans-serif">├</span><span lang="EN-GB" style="font-size:9.0pt">│</span><span lang="EN-GB" style="font-size:9.0pt">n</b> Este
requerimiento requiere autenticaci</span><span lang="EN-GB" style="font-size:9.0pt;font-family:"Arial",sans-serif">├</span><span lang="EN-GB" style="font-size:9.0pt">│</span><span lang="EN-GB" style="font-size:9.0pt">n HTTP.</p><hr class="line" /><h3>Apache
Tomcat/9.0.37</h3></body></html><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt"> HTTP status code: 401, error: <!doctype html><html lang="es"><head><title>Estado HTTP 401 ÔÇô No autorizado</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3,
b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>Estado HTTP 401 ÔÇô No autorizado</h1><hr
class="line" /><p><b>Tipo</b> Informe de estado</p><p><b>mensaje</b> Unauthorized</p><p><b>Descripci</span><span lang="EN-GB" style="font-size:9.0pt;font-family:"Arial",sans-serif">├</span><span lang="EN-GB" style="font-size:9.0pt">│</span><span lang="EN-GB" style="font-size:9.0pt">n</b>
Este requerimiento requiere autenticaci</span><span lang="EN-GB" style="font-size:9.0pt;font-family:"Arial",sans-serif">├</span><span lang="EN-GB" style="font-size:9.0pt">│</span><span lang="EN-GB" style="font-size:9.0pt">n HTTP.</p><hr class="line" /><h3>Apache
Tomcat/9.0.37</h3></body></html>.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt">Add the HTTP status code to <ZeroBlockHttpCodes> to ignore this error (see http://www.gdal.org/frmt_wms.html).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt">ERROR 1: C:\Users\elena\AppData\Local\Temp\tmpnuevo.xml, band 1: IReadBlock failed at X offset 0, Y offset 0: GDALWMS: Unable to download block 0, 0.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt">URL: <!doctype html><html lang="es"><head><title>Estado HTTP 401 ÔÇô No autorizado</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;}
h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>Estado HTTP 401 ÔÇô No autorizado</h1><hr class="line" /><p><b>Tipo</b> Informe
de estado</p><p><b>mensaje</b> Unauthorized</p><p><b>Descripci</span><span lang="EN-GB" style="font-size:9.0pt;font-family:"Arial",sans-serif">├</span><span lang="EN-GB" style="font-size:9.0pt">│</span><span lang="EN-GB" style="font-size:9.0pt">n</b> Este
requerimiento requiere autenticaci</span><span lang="EN-GB" style="font-size:9.0pt;font-family:"Arial",sans-serif">├</span><span lang="EN-GB" style="font-size:9.0pt">│</span><span lang="EN-GB" style="font-size:9.0pt">n HTTP.</p><hr class="line" /><h3>Apache
Tomcat/9.0.37</h3></body></html><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt"> HTTP status code: 401, error: <!doctype html><html lang="es"><head><title>Estado HTTP 401 ÔÇô No autorizado</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3,
b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>Estado HTTP 401 ÔÇô No autorizado</h1><hr
class="line" /><p><b>Tipo</b> Informe de estado</p><p><b>mensaje</b> Unauthorized</p><p><b>Descripci</span><span lang="EN-GB" style="font-size:9.0pt;font-family:"Arial",sans-serif">├</span><span lang="EN-GB" style="font-size:9.0pt">│</span><span lang="EN-GB" style="font-size:9.0pt">n</b>
Este requerimiento requiere autenticaci</span><span lang="EN-GB" style="font-size:9.0pt;font-family:"Arial",sans-serif">├</span><span lang="EN-GB" style="font-size:9.0pt">│</span><span lang="EN-GB" style="font-size:9.0pt">n HTTP.</p><hr class="line" /><h3>Apache
Tomcat/9.0.37</h3></body></html>.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt">Add the HTTP status code to <ZeroBlockHttpCodes> to ignore this error (see
<a href="http://www.gdal.org/frmt_wms.html">http://www.gdal.org/frmt_wms.html</a>).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">And there are not any image.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I´m using gdal 3.0, and I don´t understand why works at web browser and don´t works with gdal, I am doing something wrong? Thank you very much and regards<o:p></o:p></span></p>
</div>
<HR>
<TABLE style="HEIGHT: 50px; WIDTH: 473px">
<TBODY>
<TR>
<TD valing="top">
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align=right><IMG border=0
src="https://www.aplitop.com/descargas/firma1.jpg"></P></TD>
<TD
style="FONT-SIZE: 12pt; HEIGHT: 25px; FONT-FAMILY: Times New Roman; WIDTH: 330px"
vAlign=top>
<DIV style="LINE-HEIGHT: 13px" align=left><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Myriad Pro, Open Sans, Arial"><STRONG>Elena Ruiz </STRONG></SPAN><BR><SPAN
style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad Pro, Open Sans, Arial">Sofware Development & Technical Support<BR></SPAN><SPAN
style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad Pro, Open Sans, Arial">Tel.
+34 952 43 97 71 <BR>eruiz@aplitop.com<BR>Sumatra, 9 - 29190 Málaga (Spain)<BR></SPAN><SPAN
style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad Pro, Open Sans, Arial"><STRONG>www.aplitop.com<BR><BR><A
class=socialLink href="https://www.facebook.com/AplitopSL/"><IMG
class=socialLink style="HEIGHT: 15px; WIDTH: 15px" border=0
src="cid:SocialLink_Facebook_32x32_a745adb8-c250-4372-8480-e77f503dad3d.png"
width=15 height=15></A> <A class=socialLink
href="https://twitter.com/aplitop"><IMG class=socialLink
style="HEIGHT: 15px; WIDTH: 15px" border=0
src="cid:SocialLink_Twitter_32x32_858247f6-9d4a-4740-a6b3-9b5ebfd98a97.png"
width=15 height=15></A> <A class=socialLink
href="https://www.linkedin.com/company/aplitop"><IMG class=socialLink
style="HEIGHT: 15px; WIDTH: 15px" border=0
src="cid:SocialLink_Linkedin_32x32_154d63de-bf68-468f-9eb0-ffed102fac77.png"
width=15 height=15></A> <A class=socialLink
href="https://www.youtube.com/user/aplitop"><IMG class=socialLink
style="HEIGHT: 15px; WIDTH: 15px" border=0
src="cid:SocialLink_Youtube_32x32_0dea15dd-3774-4086-be9d-f62560b70c86.png"
width=15 height=15></A></STRONG></SPAN></DIV></TD></TR></TBODY></TABLE>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro">In accordance with the
provisions of the European Regulation of Data Protection 2016/679 (Reglamento
Europeo de Protección de Datos 2016/679), we inform you that the data and the
information you provide us through this medium will be used by APLITOP, S.L.,
with C.I.F. B-92543396 and with address at C / Sumatra, 9, Malaga, 29190, in
order to answer your questions and inform you about our products. The data
provided will be kept as long as it does not request its cessation and will not
be transferred to third parties except in cases where there is a legal
obligation. You have the right to access your personal data, correct inaccurate
data or request its deletion when the data is no longer necessary for the
purposes that were collected, as well as any rights recognized in the RGPD
2016/679<BR><BR><A title=""
href="https://www.aplitop.com/Event/en/358/intergeo-2019"></A><BR><BR></SPAN></P></body>
</html>