Improve xyz operation capabilities

Started by Stager, November 24, 2015, 09:53:04 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Stager

The map

https://www.fonecta.fi/kartat?lon=25.58129239320995&lat=61.09582494617275&z=8&l=NAU">https://www.fonecta.fi/kartat?lon=25.58 ... &z=8&l=NAU">https://www.fonecta.fi/kartat?lon=25.58129239320995&lat=61.09582494617275&z=8&l=NAU

need such operations:

x=X-(2^Z)/2

y=((2^Z)/2)-1-Y

z=19-Z

and sent "Referer:" header.



It would be nice if it were possible.





But! As SAS.Planet has export to OruxMaps directly - http://www.sasgis.org/forum/download/file.php?id=5283">fonecta.zmp.zip

orux

#1
Quote from: "Stager"The map

https://www.fonecta.fi/kartat?lon=25.58129239320995&lat=61.09582494617275&z=8&l=NAU">https://www.fonecta.fi/kartat?lon=25.58 ... &z=8&l=NAU">https://www.fonecta.fi/kartat?lon=25.58129239320995&lat=61.09582494617275&z=8&l=NAU

need such operations:

x=X-(2^Z)/2

y=((2^Z)/2)-1-Y

z=19-Z

and sent "Referer:" header.



It would be nice if it were possible.





But! As SAS.Planet has export to OruxMaps directly - http://www.sasgis.org/forum/download/file.php?id=5283">fonecta.zmp.zip


You can use that operations, see the manual about the onlinemapsources.xml file.



You also can add the referer in the <httpparam name=""/> tag.





orux

Stager

#2
Quote from: "orux"You can use that operations, see the manual about the onlinemapsources.xml file.


Sorry, orux - where is this manual?

6745th@web.de

#3
There is a description in the English orux manual.  Page 7.



Interesting.  I did not know, that math operations are possible....

orux

#4
Quote from: "Stager"
Quote from: "orux"You can use that operations, see the manual about the onlinemapsources.xml file.


Sorry, orux - where is this manual?




http://www.oruxmaps.com">//http://www.oruxmaps.com





orux

Stager

#5
Quote from: "6745th@web.de"There is a description in the English orux manual.  Page 7.

English manual on page 7 has:

<xop></xop><!--operación a aplicar a x antes de reemplazarlo. Permitido: 1-->
<yop></yop><!--operación a aplicar a y antes de reemplazarlo. Permitido: 0, 1-->
<zop></zop><!--operación a aplicar a z antes de reemplazarlo. Permitido: 1-->
<qop></qop><!--operación a aplicar a q antes de reemplazarlo. Permitido: 2-->
<sop></sop><!--operación a aplicar a s antes de reemplazarlo. Permitido: 3-->
<!--Operaciones existentes:
0: inverso de y: (2^z -1 -y)
1: mas uno: (val + 1)
2: añadir  '/' cada 6 caracteres
3: (x + y ) mod num_servers -->

There is no necessary operations.



SQLite expressions? But SQLite not have a exponentiation operator.



Also, English manual has:

<httpparam name=""></httpparam> <!-- no en uso -->

May I use httpparam or not???

Stager

#6
Heh, SQLite has bitshift capabilities...

Stager

#7
Ok, thank you, orux, for you support.

http://www.oruxmaps.com/foro/viewtopic.php?f=7&t=3383#p8107">http://www.oruxmaps.com/foro/viewtopic.php?f=7&t=3383#p8107