Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - rydzejak

#1
ERRORES/BUGS / Re: Problem with WMS service
August 28, 2014, 07:10:25 AM
Quote from: "orux"
The policy should be to accept all user agent, except those that cause problems to the wms server.

Sounds logical to me, hope the same to portal Admistrators


Quote from: "orux"
There should not be problems with OruxMaps user agent.

Try with last beta-->http://www.oruxmaps.com/foro/viewtopic.php?f=4&t=2054">http://www.oruxmaps.com/foro/viewtopic.php?f=4&t=2054

I think that it is working fine with 'OruxMaps vxxxxx' user agent.

Confirmed. OruxMaps v. 5.5.23 beta 14 works with Geoportal WMS. THANKS !!!


Quote from: "orux"
The wms_services.xml file is deprecated, I would rather people to use the built-in wms builder.

Bad news :( Text file configuration is very convenient (for me) because of:

- easier typing and copying long URLs (prepare it on computer)

- sharing configuration with other devices (friends etc...)

- backup (I don't know how to protect my map definitions during upgrade)

 

1. When will You cut it off definitely ?

2. Will You depreciate onlinemapsources.xml also ?

3. Maybe there is a possibility to edit offline the configuration used by built-in wms builder ?



rgds

Jakub
#2
MAPAS/MAPS / Re: Problem with creating WMS service
August 27, 2014, 08:14:52 PM
topic may be closed.

problem is caused by "user-agent" and is continued in http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=2227">//http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=2227



solved in beta 5.5.23-14. Thanks
#3
ERRORES/BUGS / Re: Problem with WMS service
August 27, 2014, 07:48:01 PM
Thanks Orux,

Here are recent news about Geoportal / WMS / user-agent.



First - I found the way to detect user-agent by myself (creating http server with max logging and redirecting oruxmaps to this server). Log shown user-agent as: "Apache-HttpClient/UNAVAILABLE (java 1.4)"  

Second - I passed this value to Geoportal  Admins and they declared to continue my issue (I hope it means changes in filtering rules an permission to access portal by oruxmaps).



You declare now to set individual user-agent for OruxMaps. This will very probably block access to portals with filtering (not only Geoportal but also those which accepted default "apache-httpclient"). I don't understand the idea of filtering by user-agent (which may be changed by developer) - and suspect that new value for user-agent will be allowed in those portals (soon or later). But this require user investigation and effort to argue with Admins (which is risky and user may give-up).



What I think about is to set a new parameter in configuration file to let user change default user-agent per portal. For example such spoofing ;-):

<wms>
<name>GeoPortal TOPO</name>
<uid>1002</uid>
<url><![CDATA[http://mapy.geoportal.gov.pl:80/wss/service/img/guest/TOPO/MapServer/WMSServer?]]></url>
<user-agent>Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0</user-agent>
<minzoomlevel>14</minzoomlevel>
......
</wms>


Decision is of course Yours as You are the owner and developer and may want to distinguish the application in the net.



Anyhow, thanks very much for Your interest in the problem



rgds

Jakub
#4
Hi ORUX and PYKOWIEC !



I've contacted with Geoportal Admins and they said they can change filtering by user-agent by registering OruxMaps in their system.



The only thing they need is to know the exact value for "user-agent" used by OruxMaps application.

I don't know how to check it so please let me know what is this value and the problem will by solved for Geoportal without changes in Your app.



(another issue is to prevent vulnerability to such problem in other WMS portals)



rgds

Jakub
#5
BETAS / Re: New beta 5.5.23betaXX
August 24, 2014, 11:45:44 PM
Hi,



I'm not sure if beta 5.5.23.beta12 was already fixed for problem with WMS service (user agent) ?

forum post: http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=2227">//http://www.oruxmaps.com/foro/viewtopic.php?f=5&t=2227



I tried 5.5.23.beta12 and failed to connect to WMS

http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver">//http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver

Creator says "error reading WMS function" (in polish translation: "błąd podczas próby odczytu funkcji WMS"



WMS service is alive:

http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver?SERVICE=WMS&REQUEST=GetCapabilities">//http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver?SERVICE=WMS&REQUEST=GetCapabilities



I also posted a question to Geoportal Admins to find out if it is OK to restrict access to some applications.



rgds

Jakub



[EDIT 2014-08-28] : Solved in version 5.5.23 beta 14. Many thanks !
#6
MAPAS/MAPS / Re: Problem with creating WMS service
August 21, 2014, 09:26:07 PM
Quote from: "orux"
but this works fine:

http://sdi.geoportal.gov.pl/wms_topo/wmservice.aspx">http://sdi.geoportal.gov.pl/wms_topo/wmservice.aspx

check if the urls have changed.

orux


Hi, I have problem with the same WMS portal (geoportal.gov.pl).

The above address doesn't work in OruxMaps, a new one also - though new address seems to work in browser.

http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver">//http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver



Here are things I've checked:



1. They changed adresses in july 2014. Old ones don't reply, let's see:

http://sdi.geoportal.gov.pl/wms_topo/wmservice.aspx?SERVICE=WMS&REQUEST=GetCapabilities">//http://sdi.geoportal.gov.pl/wms_topo/wmservice.aspx?SERVICE=WMS&REQUEST=GetCapabilities



The list of new services is fantastic long.  

http://geoportal.gov.pl/uslugi/usluga-przegladania-wms">//http://geoportal.gov.pl/uslugi/usluga-przegladania-wms



2. Lets see one of new services. It answers OK :

http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver?SERVICE=WMS&REQUEST=GetCapabilities">//http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver?SERVICE=WMS&REQUEST=GetCapabilities



Seems OK , am I right ?

The problem is how to configure it in ORUXMAPS.

http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver?">//http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapserver/wmsserver?

WMS Creator says "error reading WMS function" (in polish translation: "błąd podczas próby odczytu funkcji WMS" .



3. I tried also configuration in wms_services.xml - no result, images aren't loaded.


<wms_services>
<wms>
<name>GeoPortal TOPO</name>
<uid>1002</uid>
<desc>Mapy topograficzne Polski</desc>
<url><![CDATA[http://mapy.geoportal.gov.pl/wss/service/img/guest/TOPO/MapServer/WMSServer?]]></url>
<minzoomlevel>14</minzoomlevel>
<maxzoomlevel>16</maxzoomlevel>
<version>1.3.0</version>
<layers>Raster</layers>
<coordinatesystem>EPSG:4326</coordinatesystem>
<format>image/png</format>
<cache>1</cache>
</wms>
</wms_services>


4. Service isn't pasword protected - this is declared in Geoportal. I checked this, here is some code returning an example piece of map (a little distorted, but it doesn't matter):

http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapServer/WMSServer?SERVICE=WMS&REQUEST=GetMap&version=1.3.0&crs=EPSG:4326&bbox=52.41,20.23,52.43,20.25&width=400&height=400&format=image/png&layers=Raster&styles=default">//http://mapy.geoportal.gov.pl/wss/service/img/guest/topo/mapServer/WMSServer?SERVICE=WMS&REQUEST=GetMap&version=1.3.0&crs=EPSG:4326&bbox=52.41,20.23,52.43,20.25&width=400&height=400&format=image/png&layers=Raster&styles=default



What do I do wrong ?

Please help me to connect to geoportal wms.



rgds

Jakub

(oruxmaps ver. 5.5.22)