OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>

Join the forum, it's quick and easy

OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>
OruxMaps
Would you like to react to this message? Create an account in a few clicks or log in to continue.

operations available for xop,yop,zop... (onlinemapsources.xml)

2 posters

Go down

operations available for xop,yop,zop... (onlinemapsources.xml) Empty operations available for xop,yop,zop... (onlinemapsources.xml)

Post  yip Sat Mar 16, 2013 6:31 pm

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

yip

Cantidad de envíos : 40
Fecha de inscripción : 2012-01-21

Back to top Go down

operations available for xop,yop,zop... (onlinemapsources.xml) Empty Re: operations available for xop,yop,zop... (onlinemapsources.xml)

Post  orux Sun Mar 17, 2013 1:59 pm

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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

operations available for xop,yop,zop... (onlinemapsources.xml) Empty Re: operations available for xop,yop,zop... (onlinemapsources.xml)

Post  yip Sun Mar 17, 2013 10:42 pm

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 alien

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

Back to top Go down

operations available for xop,yop,zop... (onlinemapsources.xml) Empty Re: operations available for xop,yop,zop... (onlinemapsources.xml)

Post  orux Tue Mar 19, 2013 7:02 pm

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 alien

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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

operations available for xop,yop,zop... (onlinemapsources.xml) Empty Re: operations available for xop,yop,zop... (onlinemapsources.xml)

Post  orux Fri Mar 22, 2013 4:49 pm

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 alien

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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

operations available for xop,yop,zop... (onlinemapsources.xml) Empty Re: operations available for xop,yop,zop... (onlinemapsources.xml)

Post  yip Mon Mar 25, 2013 9:30 am

orux wrote:
added sqlite expressions parser to x/y/z operations --> www.oruxmaps.com/cs
orux

Great ! Thanks !

I'll post a configuration file for Navitel map source (Russia+east europe) !

(nice workaround 1<<$z for the 2^power operation cyclops ! )

yip

Cantidad de envíos : 40
Fecha de inscripción : 2012-01-21

Back to top Go down

operations available for xop,yop,zop... (onlinemapsources.xml) Empty Re: operations available for xop,yop,zop... (onlinemapsources.xml)

Post  orux Mon Mar 25, 2013 9:40 am

yip wrote:
orux wrote:
added sqlite expressions parser to x/y/z operations --> www.oruxmaps.com/cs
orux

Great ! Thanks !

I'll post a configuration file for Navitel map source (Russia+east europe) !

(nice workaround 1<<$z for the 2^power operation cyclops ! )

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
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

operations available for xop,yop,zop... (onlinemapsources.xml) Empty Re: operations available for xop,yop,zop... (onlinemapsources.xml)

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum