OkMap forum
OkMap forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 OkMap Forum - English
 Use of the software
 Max zoom and WMTS server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tichodrome

France
7 Posts

Posted - 12/04/2016 :  15:23:21  Show Profile  Reply with Quote
Hi

I added a personnal MapServer in OkMap :

<mapsServer>
<name>France IGN</name>
<code>new OpenLayers.Layer.XYZ("France IGN","http://wxs.ign.fr/PersonnalKey/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX=${z}&TILEROW=${y}&TILECOL=${x}&FORMAT=image%2Fjpeg");</code>
<baseLayer>true</baseLayer>
<covered>France</covered>
<active>true</active>
<canSaved>true</canSaved>
<custom>true</custom>
<default>false</default>
</mapsServer>

It's working Ok except for the zoom level that is limited to 15 whereas with the same server I can go up to zoom 18 in SasPlanet.

Any Idea ?
Thanks

okmap

Italy
2575 Posts

Posted - 12/04/2016 :  17:13:54  Show Profile  Visit okmap's Homepage  Reply with Quote
Are you working with "Map server" function or "Load a web map" function?
Are you using the trial version?
Go to Top of Page

Tichodrome

France
7 Posts

Posted - 13/04/2016 :  08:09:20  Show Profile  Reply with Quote
I have a registered version.
I tried both "Map server" function or "Load a web map" with same result.
What's the use of the "Map server" function ? Creation of an image of the map ?
No possibility to create a local map with a calibration file from a web map ?

Thanks

Edited by - Tichodrome on 13/04/2016 08:10:08
Go to Top of Page

okmap

Italy
2575 Posts

Posted - 13/04/2016 :  09:45:23  Show Profile  Visit okmap's Homepage  Reply with Quote
The use of "Map server" function is download tiles from a WMS/TMS web server and merge all togheter to create a big georeferenced map.
Once created, this map can opened by OkMap.
The Web map function loads only the tiles necessary to the view.
But is the same, use Map server function to create your own map (there you can define the size in pixel).
Are you sure that SasPlanet server definition is the same you have used in OkMap?
Go to Top of Page

Tichodrome

France
7 Posts

Posted - 14/04/2016 :  12:12:49  Show Profile  Reply with Quote
Thanks for the answer concerning the "map server". I'm discovering OkMap and not aware of every subtility...
For example, I've not been able to move a track point just with the mouse without opening a dialog box with arrows (not very convenient...)

Concerning the zoom problem. here are the parameters I use in both applications, not much diffrence :

OkMap :
http://wxs.ign.fr/PersonnalKey/geoportail/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX=${z}&TILEROW=${y}&TILECOL=${x}&FORMAT=image%2Fjpeg

SasPlanet :
DefURLBase=http://wxs.ign.fr/PersonnalKey/geoportail/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&STYLE=normal&FORMAT=image%2Fjpeg&TILEMATRIXSET=PM
ResultURL:=GetUrlBase+'&TILEMATRIX='+inttostr(GetZ-1 )+'&TILEROW='+inttostr(GetY)+'&TILECOL='+ inttostr(GetX)+'.jpg';

In OkMap it stopped at Zoom 15 (1/25000 map) whereas in SasPlanet I have the same image at zoom 16 (why this (GetZ-1) ?), the full map resolution at zoom 17 and a more detailed map at zoom 18 and 19.
Go to Top of Page

okmap

Italy
2575 Posts

Posted - 14/04/2016 :  14:34:16  Show Profile  Visit okmap's Homepage  Reply with Quote
To move track point:
1. unlock object on map (Alt+L) - or menu View ....
2. select the track with the mouse
3. select the track point with the mouse
4. drag the track point with the mouse.

For IGN try to add this parameters (see other servers):
{ maxZoomLevel: 17, numZoomLevels: 18, isBaseLayer: false, visibility: true}
Go to Top of Page

okmap

Italy
2575 Posts

Posted - 14/04/2016 :  14:59:36  Show Profile  Visit okmap's Homepage  Reply with Quote
see also
http://openlayers.org/en/master/examples/wmts-ign.html
Go to Top of Page

Tichodrome

France
7 Posts

Posted - 15/04/2016 :  09:35:49  Show Profile  Reply with Quote
{ maxZoomLevel: 17, numZoomLevels: 18, isBaseLayer: false, visibility: true} is not working. It gives a Javascript error. Contradiction between "isBaseLayer: false" and "<baseLayer>true</baseLayer>" ?

But it's OK with "isBaseLayer: true"

Even just { maxZoomLevel: 18, numZoomLevels: 19} is OK

I tested the creation of a map (4000 x 4000 pixels). It's working except that I get white/grey lines (+-4 pixels wide) on an approximate matrix 1800 x 800 pixels (size of the "Maps Server" window I used ?).

This function is not very important for me as I use maily Mobac for map creation, just to let you know what I tried.

Thanks for your help
Go to Top of Page

okmap

Italy
2575 Posts

Posted - 15/04/2016 :  09:43:37  Show Profile  Visit okmap's Homepage  Reply with Quote
Sorry, you have reason: "isBaseLayer: true" is the right option.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
OkMap forum © 2018 OkMap Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07