[Qgis-user] Problem connecting to ArcGIS rest services

alper78 alper78 at alice.it
Sat Nov 23 06:40:30 PST 2013


This is the dsm_hillshade_lombardia.xml I'm using:

<GDAL_WMS>
  <Service name="TMS">  
<ServerUrl>http://www.cartografia.regione.lombardia.it/ArcGIS10/rest/services/BaseMapRL/dsm_hillshade/MapServer/tile/${z}/${y}/${x}</ServerUrl>
  </Service>
  <DataWindow>
    <UpperLeftX>-5120900</UpperLeftX>
    <UpperLeftY>9998100</UpperLeftY>
    <LowerRightX>697472.703412066114048</LowerRightX>
    <LowerRightY>4943422.157310987697152</LowerRightY>
    <SizeX>21990656</SizeX>
    <SizeY>19104256</SizeY>
    <TileX>0</TileX>
    <TileY>0</TileY>
    <TileLevel>5</TileLevel>
    <TileCountX>1</TileCountX>
    <TileCountY>1</TileCountY>
    <YOrigin>top</YOrigin>
  </DataWindow>
  <Projection>EPSG:32632</Projection>
  <BlockSizeX>256</BlockSizeX>
  <BlockSizeY>256</BlockSizeY>
  <Cache />
</GDAL_WMS>

I changed the size and the lower right coordinates with the value calculated
from start-end tiles of the more detailed level 

If I run:
"gdal_translate -of JPEG -outsize 4000 4000 -projwin 557000 5073000 559000
5071000 dsm_hillshade_lombardia.xml dsm_hillshade.jpg"
it works and creates an image with resolution of about 0.5 m

If I run: 
"gdal_translate -of JPEG -outsize 2000 2000 -projwin 557000 5073000 559000
5071000 dsm_hillshade_lombardia.xml dsm_hillshade.jpg"
it gives me:

Input file size is 21990656, 19104256
Computed -srcwin 21459736 18614513 7559 7559 from projected window.
0ERROR 1: GDALWMS: Unable to download block 20956, 18178.
  URL:
http://www.cartografia.regione.lombardia.it/ArcGIS10/rest/services/BaseMapRL/dsm_hillshade/MapServer/tile/3/18178/20956
  HTTP status code: 404, error: (null).
ERROR 1: dsm_hillshade_lombardia_3.xml, band 1: IReadBlock failed at X
offset 20956, Y offset 18178


P.S.: I agree weekend REST is better than arcgis REST services




-----
Alessandro Perego
http://www.webalice.it/alper78/
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-connecting-to-ArcGIS-rest-services-tp5090795p5090811.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list