SASGIS

Веб-картография и навигация

Help in creating ZMP from WMTS for Italian Lombardia CTR

English- or other language speakers welcome here
Please do not translate your native language to "broken Russian" via crappy machine translation services - please post it as it is, in your native language.

Модератор: Tolik

Help in creating ZMP from WMTS for Italian Lombardia CTR

Сообщение amadvance » 31 янв 2020, 21:18

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!
amadvance
Новичок
 
Сообщения: 3
Зарегистрирован: 31 янв 2020, 21:11
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.

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

Сообщение Tolik » 01 фев 2020, 10:46

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.
Tolik
Гуру
 
Сообщения: 2604
Зарегистрирован: 28 янв 2011, 10:38
Благодарил (а): 280 раз.
Поблагодарили: 587 раз.

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

Сообщение amadvance » 03 фев 2020, 19:56

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!
amadvance
Новичок
 
Сообщения: 3
Зарегистрирован: 31 янв 2020, 21:11
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.

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

Сообщение Tolik » 04 фев 2020, 12:17

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.
Вложения
lombardia.zmp.zip
(2.81 KiB) Скачиваний: 183
2020-02-04 11_10_54-16721.png (256×256) .png
Tolik
Гуру
 
Сообщения: 2604
Зарегистрирован: 28 янв 2011, 10:38
Благодарил (а): 280 раз.
Поблагодарили: 587 раз.

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

Сообщение amadvance » 05 фев 2020, 20:45

It works! Thanks!
amadvance
Новичок
 
Сообщения: 3
Зарегистрирован: 31 янв 2020, 21:11
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.


Вернуться в International visitors section

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 2