The support forum is temporarily read-only. For urgent requests, please email contact[at]psyberia.net

[fixed] An Address to WMS server

It's all about maps...
Post Reply
DAK
Posts: 5
Joined: Sun Jun 14, 2020 3:31 am

[fixed] An Address to WMS server

Post by DAK »

I coudn't properly activate the address:
https://mapy.geoportal.gov.pl/wss/servi ... adedRelief?

One of full addresses that are generated on geoportal.gov.pl is:
https://mapy.geoportal.gov.pl/wss/servi ... HEIGHT=766

But it isn't display properly in the AlpineQuest (many continuous segments of the same view)
Suggestions? Please
Psyberia-Support
Site Admin
Posts: 6407
Joined: Wed Apr 14, 2010 9:41 pm

Re: An Address to WMS server

Post by Psyberia-Support »

Here is a simple WMS example: https://www.alpinequest.net/en/help/v2/ ... ms_servers
Be sure to use 256 px HEIGHT and WIDTH, and use the correct CRS code.
It should be something like this:

Code: Select all


<import-ogc-wkt-def code="EPSG:2180">PROJCS["ETRS89 / Poland CS92",GEOGCS["ETRS89",DATUM["European_Terrestrial_Reference_System_1989",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6258"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4258"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",19],PARAMETER["scale_factor",0.9993],PARAMETER["false_easting",500000],PARAMETER["false_northing",-5300000],AUTHORITY["EPSG","2180"],AXIS["y",EAST],AXIS["x",NORTH]]</import-ogc-wkt-def>
 <source id="MAPYPLSR">
    <name>ShadedRelief</name>
    <zoom-levels z="3,5,7,8,9,10,11,12,13,14,15,16,17">
      <bbox-crs-code>EPSG:2180</bbox-crs-code>
      <server><![CDATA[https://mapy.geoportal.gov.pl/wss/service/PZGIK/NMT/GRID1/WMS/ShadedRelief?token=0Oo3JwOFjlJ3NHD04xQnX6wyV9KcCSOgXiDE6xAlxiXIuUlReEXdGR2lm_G3FmkUBHw6U3H0C8xNxJyXlOCwwA..&REQUEST=GetMap&TRANSPARENT=TRUE&FORMAT=image/png&VERSION=1.3.0&LAYERS=Raster&STYLES=&BBOX={$bbox}&CRS=EPSG:2180&EXCEPTIONS=xml&WIDTH=256&HEIGHT=256]]></server>
    </zoom-levels>
  </source>
  
  
Do you like AlpineQuest ? Leave a small comment on Google Play !
DAK
Posts: 5
Joined: Sun Jun 14, 2020 3:31 am

Re: An Address to WMS server

Post by DAK »

Hi,
Thank you for your help. I love your application AlpineQuest, it's wonderful, and practical.
I installed .aqx file with your code you showed, but 2 problems remain (see: scans):

1. Incorect positioning into a base-map (my map is moved up and left)
2. Zoomed my map makes disordered segments, exactly top-left ones are changed with bottom-right ones (segments top-right and bottom-left are correct)

Which servers are better for displaying maps on AlpineQuest: WMS or WMTS

I've sent to you my problems with the WMS map,
but I also can use WMTS one

There are helpful source code pages of the maps of WMS and WMTS for servers:
1. https://mapy.geoportal.gov.pl/wss/servi ... ervice=WMS
2. https://mapy.geoportal.gov.pl/wss/servi ... rvice=WMTS

Please, help me
Attachments
i2.jpg
(293.21 KiB) Downloaded 1123 times
i1.jpg
(348.58 KiB) Downloaded 1123 times
Psyberia-Support
Site Admin
Posts: 6407
Joined: Wed Apr 14, 2010 9:41 pm

Re: An Address to WMS server

Post by Psyberia-Support »

Hi again, sorry for the delay.
After investigation I've see that I need to make some changes in the application.
So I've published a new beta version (2.2.6.r6366) that you can install from the Play Store after allowing beta version from the application page.
Otherwise you can wait for the next official update.

Then you can use this config file that I've checked:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<aqx version="10">
	<import-ogc-wkt-def code="EPSG:2180">PROJCS["ETRS89 / Poland CS92",GEOGCS["ETRS89",DATUM["European_Terrestrial_Reference_System_1989",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6258"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4258"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",19],PARAMETER["scale_factor",0.9993],PARAMETER["false_easting",500000],PARAMETER["false_northing",-5300000],AUTHORITY["EPSG","2180"],AXIS["y",EAST],AXIS["x",NORTH]]</import-ogc-wkt-def>

	<source id="MAPYPLSR" layer="true">
		<name>ShadedRelief</name>
		<zoom-levels z="7,8,9,10,11,12,13,14,15,16,17">
			<projection-code>EPSG:2180</projection-code>
			<bbox-crs-code>EPSG:2180</bbox-crs-code>
			<server><![CDATA[https://mapy.geoportal.gov.pl/wss/service/PZGIK/NMT/GRID1/WMS/ShadedRelief?token=iIqUHNK8gt4HwPqcC9jyd6v2u6DJSO5jseUSewjzbB76-jdeH-MtNagkVsKUei5wKGaRu_s2wPCxi_0WdE3Vkg..&REQUEST=GetMap&TRANSPARENT=TRUE&FORMAT=image/png&VERSION=1.3.0&LAYERS=Raster&STYLES=&BBOX={$bbox}&CRS=EPSG:2180&EXCEPTIONS=xml&WIDTH=256&HEIGHT=256]]></server>
		</zoom-levels>
	</source>
  
</aqx>
Do you like AlpineQuest ? Leave a small comment on Google Play !
DAK
Posts: 5
Joined: Sun Jun 14, 2020 3:31 am

Re: An Address to WMS server

Post by DAK »

Thank You
All works perfectly on the beta version and with the code you've prepared. You mustn't say sorry for delay, it is obviously that some problem may take time to resolve it. But I say sorry that you had to interfer with your application . This one is absolutely the best for offline maps using. Thank you again.
Psyberia-Support
Site Admin
Posts: 6407
Joined: Wed Apr 14, 2010 9:41 pm

Re: [fixed] An Address to WMS server

Post by Psyberia-Support »

Thanks for the feedback and support
Do you like AlpineQuest ? Leave a small comment on Google Play !
Post Reply