WMS for Slovenia?

Started by _sem_, May 02, 2015, 11:50:08 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

_sem_

Hi there! I'm test-driving OruxMaps, 6.0.7 on SGS2. I've been using Trekbuddy for years, originally as a J2ME app, and I must say Orux looks more serious than TB's android incarnation.



I've been looking for good online WMS topo maps for Slovenia. Geopedia.si provides decent free online maps for web browsing, but phone-unfriendly; there seems to be WMS service with 1:25000 topo and ortophoto and other stuff, but that's "pro" (subscription) (compatible?). There is a government WMS service supposedly offering still acceptable (compared to a couple of decades old scanned offline DTK25 maps I've found and adapted for TB) 1:50000 topo map DTK50 at http://prostor2.gov.si:80/ows2-m-pub/">http://prostor2.gov.si:80/ows2-m-pub/ , but the WMS creator says it is incompatible, well at least as far as I can tell?



I have tried the hint of teleskopix at

http://oruxmaps.forosactivos.net/t3554p15-d96-tm-grs80-slovenia-datum">http://oruxmaps.forosactivos.net/t3554p ... enia-datum">http://oruxmaps.forosactivos.net/t3554p15-d96-tm-grs80-slovenia-datum

using the wms_services.xml file (have copied his suggestion into the wms section instead of the sample):



<?xml version="1.0" encoding="UTF-8"?>

<wms_services>

<wms>

<name>Slovenia Topo TK 50</name>

<uid>104</uid><!--unique identifier in your database cache; >1000 -->

<desc>Slovenia Topo 50</desc>

<url>http://prostor2.gov.si:80/ows2-m-pub/wms?SERVICE=WMS&%3C/url">http://prostor2.gov.si:80/ows2-m-pub/wm ... =WMS&</url">http://prostor2.gov.si:80/ows2-m-pub/wms?SERVICE=WMS&</url>

<minzoomlevel>10</minzoomlevel><!-- 0 to 20 -->

<maxzoomlevel>15</maxzoomlevel><!-- 0 to 20 -->

<version>1.1.1</version><!-- do not change -->

<layers>raster_gurs_pub:SI.GURS.RASTRI.DTK50,raster_gurs_pub:SI.GURS.RASTRI.DPK500,raster_gurs_pub:SI.GURS.RASTRI.DPK250,raster_gurs_pub:SI.GURS.RASTRI.DPK1000</layers>

<coordinatesystem>EPSG:4326</coordinatesystem><!-- do not change -->

<format>image/png</format>

<cache>1</cache><!-- not in use -->

</wms>   

</wms_services>



Unfortunately, I don't get a new WMS entry upon start of Orux and refresh.

Moreover, the maps, DEM and tracklogs directories seem to revert to the main storage (sdcard0) from the external SD card where I've put them because I'm low on main storage, so other cached maps disappear... a bug or intended?

orux

#1
Quote from: "_sem_"Hi there! I'm test-driving OruxMaps, 6.0.7 on SGS2. I've been using Trekbuddy for years, originally as a J2ME app, and I must say Orux looks more serious than TB's android incarnation.



I've been looking for good online WMS topo maps for Slovenia. Geopedia.si provides decent free online maps for web browsing, but phone-unfriendly; there seems to be WMS service with 1:25000 topo and ortophoto and other stuff, but that's "pro" (subscription) (compatible?). There is a government WMS service supposedly offering still acceptable (compared to a couple of decades old scanned offline DTK25 maps I've found and adapted for TB) 1:50000 topo map DTK50 at http://prostor2.gov.si:80/ows2-m-pub/">http://prostor2.gov.si:80/ows2-m-pub/ , but the WMS creator says it is incompatible, well at least as far as I can tell?



I have tried the hint of teleskopix at

http://oruxmaps.forosactivos.net/t3554p15-d96-tm-grs80-slovenia-datum">http://oruxmaps.forosactivos.net/t3554p ... enia-datum">http://oruxmaps.forosactivos.net/t3554p15-d96-tm-grs80-slovenia-datum

using the wms_services.xml file (have copied his suggestion into the wms section instead of the sample):



<?xml version="1.0" encoding="UTF-8"?>

<wms_services>

<wms>

<name>Slovenia Topo TK 50</name>

<uid>104</uid><!--unique identifier in your database cache; >1000 -->

<desc>Slovenia Topo 50</desc>

<url>http://prostor2.gov.si:80/ows2-m-pub/wms?SERVICE=WMS&%3C/url">http://prostor2.gov.si:80/ows2-m-pub/wm ... =WMS&</url">http://prostor2.gov.si:80/ows2-m-pub/wms?SERVICE=WMS&</url>

<minzoomlevel>10</minzoomlevel><!-- 0 to 20 -->

<maxzoomlevel>15</maxzoomlevel><!-- 0 to 20 -->

<version>1.1.1</version><!-- do not change -->

<layers>raster_gurs_pub:SI.GURS.RASTRI.DTK50,raster_gurs_pub:SI.GURS.RASTRI.DPK500,raster_gurs_pub:SI.GURS.RASTRI.DPK250,raster_gurs_pub:SI.GURS.RASTRI.DPK1000</layers>

<coordinatesystem>EPSG:4326</coordinatesystem><!-- do not change -->

<format>image/png</format>

<cache>1</cache><!-- not in use -->

</wms>   

</wms_services>



Unfortunately, I don't get a new WMS entry upon start of Orux and refresh.

Moreover, the maps, DEM and tracklogs directories seem to revert to the main storage (sdcard0) from the external SD card where I've put them because I'm low on main storage, so other cached maps disappear... a bug or intended?




Hello;



OruxMaps only can work with WMS that use UTM or google coordinate systems.



If you set the coordinates system to <coordinatesystem>EPSG:4326</coordinatesystem><!-- do not change --> the WMS may not work.



When you change those files by hand, you have to refresh the map list (button ath the top button bar in the map selector view). But if you refresh the map list, the folders of maps, tracks,.. are not changed, strange problem...





orux

_sem_

#2
Tnx for the reply.

So, I understand teleskopix probably set the coordinate system to the "standard" one, which may not be supported by this WMS service?

The service states EPSG:3912, which stands for the specific Slovenian projection based on Bessel 1841 and a specific datum, which is also used in the old scanned maps which I'm using with TB (I recall having to set up the projection when processing the maps for use with TB, and there the datum file is a separate issue causing offset if not provided).

http://epsg.io/3912">http://epsg.io/3912



The service also declares CRS:84 - is perhaps this of use? It appears to be in closer relation to EPSG:4326

https://gis.stackexchange.com/questions/54073/what-is-crs84-projection">https://gis.stackexchange.com/questions ... projection">https://gis.stackexchange.com/questions/54073/what-is-crs84-projection



Excerpt from http://prostor2.gov.si/ows2-m-pub/ows?SERVICE=WMS&REQUEST=GetCapabilities">http://prostor2.gov.si/ows2-m-pub/ows?S ... pabilities">http://prostor2.gov.si/ows2-m-pub/ows?SERVICE=WMS&REQUEST=GetCapabilities :
<Layer queryable="1">
<Name>raster_gurs_pub:SI.GURS.RASTRI.DTK50</Name>
<Title>DTK50 - SI.GURS.RASTRI.DTK50</Title>
<Abstract>Drzavna topografska karta merila 1: 50 000</Abstract>
<KeywordList>
<Keyword>WCS</Keyword>
<Keyword>ImageMosaic</Keyword>
<Keyword>DTK50</Keyword>
</KeywordList>
<CRS>EPSG:3912</CRS>
<CRS>CRS:84</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>13.283489096148475</westBoundLongitude>
<eastBoundLongitude>16.71489442579408</eastBoundLongitude>
<southBoundLatitude>45.357706934961904</southBoundLatitude>
<northBoundLatitude>47.01334314955279</northBoundLatitude>
</EX_GeographicBoundingBox>
<BoundingBox CRS="CRS:84" maxx="16.71489442579408" maxy="47.01334314955279" minx="13.283489096148475" miny="45.357706934961904"/>
<BoundingBox CRS="EPSG:3912" maxx="630781.624406076" maxy="207724.961260856" minx="369832.5829557097" miny="25060.632245599554"/>
<MetadataURL type="FGDC">
<Format>text/plain</Format>
<OnlineResource xlink:href="http://prostor.gov.si/cepp/izpis.jsp?ID=6309" xlink:type="simple"/>
</MetadataURL>
<Style>
<Name>dtk50</Name>
<Title>DTK50</Title>
<Abstract>Stil za DTK50</Abstract>
<LegendURL height="20" width="20">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://prostor2.gov.si:80/ows2-m-pub/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=SI.GURS.RASTRI.DTK50" xlink:type="simple"/>
</LegendURL>
</Style>
</Layer>



Quote from: "orux"
Quote from: "_sem_"
Moreover, the maps, DEM and tracklogs directories seem to revert to the main storage (sdcard0) from the external SD card where I've put them because I'm low on main storage, so other cached maps disappear... a bug or intended?


When you change those files by hand, you have to refresh the map list (button ath the top button bar in the map selector view). But if you refresh the map list, the folders of maps, tracks,.. are not changed, strange problem...


I've exited Orux, changed the files, restarted Orux, and then also tried refresh.

I thought the problem could be due to an error when parsing a bad xml config file... then that Orux would think the whole folders setup is corrupt and regenerate the default folders (I have moved the maps, DEM, tracklogs folders from sdcard0oruxmaps to a handmade folder ExtSdCardoruxmaps, but then also the folders have reappeared in sdcard0oruxmaps)?