Страница 1 из 1

Help in creating ZMP from WMTS for Italian Lombardia CTR

СообщениеДобавлено: 31 янв 2020, 21:18
amadvance
Hi,

Could please anyone help in creating the ZMP for this Italian (only Lombardia, centered on the city of Milan) map ?

The WMTS is at: https://portalgis.lispa.it/arcgis/rest/ ... lities.xml

More info are at: https://portalgis.lispa.it/arcgis/rest/ ... /MapServer

I managed to get to the point where URLs that looks OK are generated, and requests are made, but I suppose there is a wrong coordinate system used, and all the requests are rejected with error 400

For example, this is a request that works (generated by QMapShack that use the WMTS) : http://portalgis.lispa.it/arcgis/rest/s ... /16721.png

This one is a request that doesn't work (SASPlanet with my files) : http://portalgis.lispa.it/arcgis/rest/s ... 1/1461.png

These are the files I'm using:

Код: Выделить всё
GetUrlScript.txt
begin
ResultURL:=GetUrlBase+inttostr(GetZ-1)+'/'+inttostr(GetX)+'/'+inttostr(GetY)+'.png';
end.

params.txt
[PARAMS]
pnum=
GUID={ef274d1b-82dd-4707-9c60-dbe3bdeb758c}
name=LombardiaCTR
ParentSubMenu_en=ITALIA
NameInCache=LombardiaCTR
asLayer=0
DefURLBase=http://portalgis.lispa.it/arcgis/rest/services/BaseMap/ctr_dbt_extra_rl/MapServer/WMTS/tile/1.0.0/BaseMap_ctr_dbt_extra_rl/default/default028mm/
ContentType=image/png
Ext=.png
projection=3
sradiusa=6378137
sradiusb=6356752
epsg=32632
separator=1
UseDwn=1
Usestick=1
UseGenPrevious=1
Usedel=1
Usesave=1
UseAntiBan=0
Sleep=250
DefHotKey=0
BanIfLen=0
DelAfterShow=1


Thanks for any help!

Re: Help in creating ZMP from WMTS for Italian Lombardia CTR

СообщениеДобавлено: 01 фев 2020, 10:46
Tolik
Hi,
Probably it works, you just have to find where it's placed in the world.
You can use Operations - Go to - Coordinates - Tile, and enter X,Y,Z from correct URL.

Don't forget that SAS Panet counts Z from 1, not from 0, so enter 12 instead of 11.

If you shared your zmp I could try myself.

Re: Help in creating ZMP from WMTS for Italian Lombardia CTR

СообщениеДобавлено: 03 фев 2020, 19:56
amadvance
Hi @Tolik,

You can find the .ZMP at: http://s000.tinyupload.com/?file_id=008 ... 3789838322

Anyway, even centering in Milan (the Italian city capital of Lombardia) it doesn't work for me.

In the GetUrlScript I used Z-1, so that one should be OK. Also trying to zoom in/out doesn't help.

Thanks for any help!

Re: Help in creating ZMP from WMTS for Italian Lombardia CTR

СообщениеДобавлено: 04 фев 2020, 12:17
Tolik
Here is what I could achieve.
The map is NOT located where Milano is. As I wrote, you should "Go to..." tile coordinates from correct URL, see screenshot.
Unfortunately, the map is also moving when zoom is changed.

I had to swap X <-> Y and use GetZ-6 to get higher X,Y values.

Re: Help in creating ZMP from WMTS for Italian Lombardia CTR

СообщениеДобавлено: 05 фев 2020, 20:45
amadvance
It works! Thanks!