operations available for xop,yop,zop... (onlinemapsources.xml)
2 posters
operations available for xop,yop,zop... (onlinemapsources.xml)
Hi orux
I'm having some difficulties about finding information about those.
only info I could find is an old post (post t1113)
and I could not find any info in the file itself.
Could you explain what are the operations availables please ?
Also, (I already asked, sorry) what do you think of a SQLite expression instead of a hard-coded set of operations ?
SQLite parser :
(It's just a nonsense example)
It's a bit more complex to understand than hard-coded formulas, but allows any operations, for any sources.
edit: same thing could be done with Java expression parsing
I'm having some difficulties about finding information about those.
only info I could find is an old post (post t1113)
and I could not find any info in the file itself.
Could you explain what are the operations availables please ?
Also, (I already asked, sorry) what do you think of a SQLite expression instead of a hard-coded set of operations ?
- Code:
<xop>substr('000000000'||($x/$z), -9, 9)</xop> <!-- For 9 digits long numbers with leading zeros; (x divided by zoom)-->
SQLite parser :
- Code:
SELECT $xop
(It's just a nonsense example)
It's a bit more complex to understand than hard-coded formulas, but allows any operations, for any sources.
edit: same thing could be done with Java expression parsing
yip- Cantidad de envíos : 40
Fecha de inscripción : 2012-01-21
Re: operations available for xop,yop,zop... (onlinemapsources.xml)
yip wrote:Hi orux
I'm having some difficulties about finding information about those.
only info I could find is an old post (post t1113)
and I could not find any info in the file itself.
Could you explain what are the operations availables please ?
Also, (I already asked, sorry) what do you think of a SQLite expression instead of a hard-coded set of operations ?
- Code:
<xop>substr('000000000'||($x/$z), -9, 9)</xop> <!-- For 9 digits long numbers with leading zeros; (x divided by zoom)-->
SQLite parser :
- Code:
SELECT $xop
(It's just a nonsense example)
It's a bit more complex to understand than hard-coded formulas, but allows any operations, for any sources.
edit: same thing could be done with Java expression parsing
Hi;
sorry;
Sorry, I have not had time to work with your proposal. I promise to work on it the next day.
<xop></xop><!--operations with x allowed: 1-->
<yop></yop><!-- operations with y allowed: 0, 1-->
<zop></zop><!-- operations with z allowed: 1-->
<qop></qop><!-- operations with q allowed: 2-->
<sop></sop><!-- operations with s allowed: 3-->
<!-- operations:
0: (2^z - 1 - y)
1: (val + 1)
2: add '/' each 6 characters
3: (x + y ) mod num_servers -->
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: operations available for xop,yop,zop... (onlinemapsources.xml)
Thanks a lot orux !
Java expr parsing or SQLite parsing or whatever, I'm sure you will come up with the best solution, as always !
Tell me if I can help in any way
As a side note, the maps providers who will benefit of an advanced feature like this, I think of Nav-itel.su for all things russian, and Baidu.cn for China coverage.
Java expr parsing or SQLite parsing or whatever, I'm sure you will come up with the best solution, as always !
Tell me if I can help in any way
As a side note, the maps providers who will benefit of an advanced feature like this, I think of Nav-itel.su for all things russian, and Baidu.cn for China coverage.
yip- Cantidad de envíos : 40
Fecha de inscripción : 2012-01-21
Re: operations available for xop,yop,zop... (onlinemapsources.xml)
yip wrote:Thanks a lot orux !
Java expr parsing or SQLite parsing or whatever, I'm sure you will come up with the best solution, as always !
Tell me if I can help in any way
As a side note, the maps providers who will benefit of an advanced feature like this, I think of Nav-itel.su for all things russian, and Baidu.cn for China coverage.
Hi;
A beta soon, using sqlite expression parser,
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: operations available for xop,yop,zop... (onlinemapsources.xml)
yip wrote:Thanks a lot orux !
Java expr parsing or SQLite parsing or whatever, I'm sure you will come up with the best solution, as always !
Tell me if I can help in any way
As a side note, the maps providers who will benefit of an advanced feature like this, I think of Nav-itel.su for all things russian, and Baidu.cn for China coverage.
Hi;
added sqlite expressions parser to x/y/z operations --> www.oruxmaps.com/cs
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: operations available for xop,yop,zop... (onlinemapsources.xml)
Great ! Thanks !
I'll post a configuration file for Navitel map source (Russia+east europe) !
(nice workaround 1<<$z for the 2^power operation ! )
yip- Cantidad de envíos : 40
Fecha de inscripción : 2012-01-21
Re: operations available for xop,yop,zop... (onlinemapsources.xml)
yip wrote:
Great ! Thanks !
I'll post a configuration file for Navitel map source (Russia+east europe) !
(nice workaround 1<<$z for the 2^power operation ! )
Thanks!
Shifts used to compute the power of two is common in computer science, because they are very efficient operations, using binary systems.
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Permissions in this forum:
You cannot reply to topics in this forum
|
|