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 - opoto

#1
MEJORAS/NEW FEATURES / Using Android built-in step sensor
November 28, 2019, 11:48:14 PM
Hello
I know Oruxmaps already supports ANT+ and BT steps sensors, but Android already includes a basic step sensor:
https://developer.android.com/guide/topics/sensors/sensors_motion#sensors-motion-stepdetector
Could it be proposed as an alternative sensor in Oruxmaps? This would avoid the need to buy/wear a separate device.
Thanks
#2
MAPAS/MAPS / Re: French Geoportail Map in Oruxmap
April 03, 2018, 11:02:26 PM
J'utilise wms sans problème, ça semble mieux marcher que wmts. J'utilise l'url

https://wxs.ign.fr/%3Ckey%3E/geoportail/r/wms">https://wxs.ign.fr/<key>/geoportail/r/wms

Avec username+password

Pas besoin de saisir de paramètres WMS additionels.
#3
MAPAS/MAPS / Re: French IGN maps (WMS)
April 03, 2018, 08:41:10 AM
WMS is working fine now, the CRS parameter is now properly set.

Thanks for adding WMTS too!
#4
MAPAS/MAPS / Re: wms map links documentation
August 12, 2017, 03:12:09 PM
Ok. I think it would be worth to add the authentication parameters when you switch to this xml format. But this is for sure not a blocking feature, as credentials can be entered from the app anyway.

Thanks
#5
MAPAS/MAPS / Re: Bug in WMS HTTP Basic Authentication?
August 12, 2017, 03:07:53 PM
The problem probably lies in that you're creating an execution context (AuthState object) for each tile request. If you reuse this object, I guess it will not only send the auth header directly (starting from the second tile), but also probably reuse some resources such as the tcp connection, and even the ssl session. This would probably have significant performance benefit.

Thanks
#6
MAPAS/MAPS / wms map links documentation
August 10, 2017, 07:32:26 AM
Hello

Is the "orux-wms:" link syntax used in http://www.oruxmaps.com/cs/en/wms">http://www.oruxmaps.com/cs/en/wms documented somewhere?



I see for example:



orux-wms://http://www.ideandalucia.es/wms/mta10r_2001-2013?language=spa&s0parator=c0stom&ssl0=false&l0yers=mta10_raster_2013&m0nz=7&m0xz=18&m0xtilesday=-1&c0cheable=true&d0wnloadable=true&styl0=&m0pname=ESPA%C3%91A%20-%20ANDALUC%C3%8DA%20Mapa%20topogr%C3%A1fico&f0rmat=image/png&sr0s=EPSG:4326&w0bsite=">www.ideandalucia.es/wms/mta10r_2001-2013?language=spa&s0parator=c0stom&ssl0=false&l0yers=mta10_raster_2013&m0nz=7&m0xz=18&m0xtilesday=-1&c0cheable=true&d0wnloadable=true&styl0=&m0pname=ESPA%C3%91A%20-%20ANDALUC%C3%8DA%20Mapa%20topogr%C3%A1fico&f0rmat=image/png&sr0s=EPSG:4326&w0bsite=&



How can username and password for HTTP basic authentication be added to such link?

Similarly, does the <wms> element in wms_services.xml support HTTP basic authentication? How?

Thanks
#7
MAPAS/MAPS / Bug in WMS HTTP Basic Authentication?
August 09, 2017, 09:43:08 PM
Hello

I configured a WMS map provider which requires HTTP Basic Authentication. I entered my username and password in OruxMaps WMS config, and it works but very slowly. I analyzed the HTTP traffic and noticed the following weird behavior:



- The initial OruxMaps request to the WMS server does not contain the required Authorization header

- Because of this the server answers with a 401 Unauthorized response

- OruxMaps resends the same request including the Authorization header this time (computed with my username & password)

- A 200 OK response is then properly returned by the WMS server, with the requested tile



As a consequence each tile requires 2 HTTP round trips, which partly explains the slowness of the map loading.

Why doesn't OruxMaps send the Authorization header in the initial request? Can this be added?



Thanks
#8
MAPAS/MAPS / Re: French IGN maps (WMS)
August 09, 2017, 09:14:11 PM
It now works correctly with following WMS config:



URL : https://wxs.ign.fr/%3Cmykey%3E/geoportail/r/wms">https://wxs.ign.fr/<mykey>/geoportail/r/wms?

+ basic auth credentials (username and password)

Zoom levels: 0 to 18

WMS parameters: &styles=
#9
MAPAS/MAPS / French IGN maps (WMS)
April 26, 2017, 12:15:46 AM
Hello

I am trying to load the French IGN Maps in OruxMaps, which are provided through WMS 1.1.1 or 1.3.0.



You can find the description of the service here:

https://geoservices.ign.fr/documentation/geoservices/wms.html">https://geoservices.ign.fr/documentatio ... s/wms.html">https://geoservices.ign.fr/documentation/geoservices/wms.html

and the layers:

https://geoservices.ign.fr/documentation/donnees-ressources-wms-geoportail.html">https://geoservices.ign.fr/documentatio ... rtail.html">https://geoservices.ign.fr/documentation/donnees-ressources-wms-geoportail.html



I used the Orux WMS map creator, and enterd:



https://wxs.ign.fr/%3Cmykey%3E/geoportail/r/wms">https://wxs.ign.fr/<mykey>/geoportail/r/wms?

+ basic auth credentials

(you can get such credentials for free at: http://professionnels.ign.fr/user">http://professionnels.ign.fr/user)



Orux properly showed the list of layers I have subscribed to, which proves that the communication and authentication with the server worked fine.

But when I click the TEST button, it does not show any image. I debugged a little the requests sent by the app, I found that it sends:



https://wxs.ign.fr/%3Cmykey%3E/geoportail/r/wms?version=1.1.1&request=GetMap&Layers=GEOGRAPHICALGRIDSYSTEMS.PLANIGN&styles=&SRS=EPSG:32742&BBOX=-105179711.529105,70651420.194014,-102907794.468910,82033832.931893&width=256&height=256&format=image/png">https://wxs.ign.fr/<mykey>/geoportail/r ... =image/png">https://wxs.ign.fr/<mykey>/geoportail/r/wms?version=1.1.1&request=GetMap&Layers=GEOGRAPHICALGRIDSYSTEMS.PLANIGN&styles=&SRS=EPSG:32742&BBOX=-105179711.529105,70651420.194014,-102907794.468910,82033832.931893&width=256&height=256&format=image/png



Which results in a error response from the server:

<ServiceExceptionReport><ServiceException code="InvalidParameterValue">

  bbox invalide

</ServiceException></ServiceExceptionReport>



I tried http://bboxfinder.com">http://bboxfinder.com to see what this BBOX corresponds to but it displays the full world tiles. I'm new to such encodings, I could not build a correct value to test on my side.



Would there be a problem in OruxMaps with BBOX in EPSG:32742 encoding? Or could the problem be on IGN side?

Why is OruxMaps using this encoding EPSG:32742 by the way? I manually tested with EPSG:4326 encoding and the coordinates given on the IGN specification page, it properly returns an image (white, but this is probably another problem):



https://wxs.ign.fr/%3Cmykey%3E/geoportail/r/wms?version=1.1.1&request=GetMap&Layers=GEOGRAPHICALGRIDSYSTEMS.PLANIGN&styles=&SRS=EPSG:4326&BBOX=47.34956960,3.25167353,47.38545104,3.3048615&width=256&height=256&format=image/png">https://wxs.ign.fr/<mykey>/geoportail/r ... =image/png">https://wxs.ign.fr/<mykey>/geoportail/r/wms?version=1.1.1&request=GetMap&Layers=GEOGRAPHICALGRIDSYSTEMS.PLANIGN&styles=&SRS=EPSG:4326&BBOX=47.34956960,3.25167353,47.38545104,3.3048615&width=256&height=256&format=image/png



Any help on how to solve this issue would be greatly appreciated.

Thanks