I want to download Sentinel-2 WMS layer from https://s2maps.eu/ using gdal_translate option. I have an XML file to fetch the image. But I am not getting a proper output. I believe it is due to the XML file which I am not an expert to fine tune properly. I can't find out where I went wrong.
<GDAL_WMS> <Service name="WMS"> <Version>1.1.1</Version> <ServerUrl>https://tiles.maps.eox.at/?SERVICE=WMS</ServerUrl> <Layers>s2cloudless-2019</Layers> <SRS>EPSG:4326</SRS> <ImageFormat>image/jpeg</ImageFormat> <Transparent>FALSE</Transparent> <BBoxOrder>xyXY</BBoxOrder> </Service> <DataWindow> <UpperLeftX>94.9998611110000013</UpperLeftX> <UpperLeftY>26.9998611110000013</UpperLeftY> <LowerRightX>97.0001388889999987</LowerRightX> <LowerRightY>29.0001388889999987</LowerRightY> <SizeX>7201</SizeX> <SizeY>7201</SizeY> </DataWindow> <BandsCount>3</BandsCount> <UnsafeSSL>true</UnsafeSSL> <ZeroBlockHttpCodes>204,403,404,500,502,503,504</ZeroBlockHttpCodes> </GDAL_WMS>
The output of
gdal_translate -of GTiff wms.xml sent12.tif is like:
If I check the pixel size it is not 10m and is nearly around 28m. So how do I get the imagery with 10m resolution?