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.

New versions online maps management: onlinemapsources.xml

+7
Poikanen
dzelzcels
KKS
BpACKer
valleyofdawn
pedja
orux
11 posters

Page 2 of 2 Previous  1, 2

Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux Sat Sep 24, 2011 5:20 pm

dzelzcels wrote:Thanks guys,

orux, I did exactly what you said but after adding the code it doesn't show up in the map sources. Do you have any idea what I'm doing wrong? Appreciate your help!


orux wrote:
dzelzcels wrote:Hi everyone, I have to admit that I'm quite incompetent when it comes to IT but for the last couple of days I've been trying to add one map. It's topo map for the baltic states http://balticmaps.eu/?lang=en Can someone shed a light on how to add it to the sources? I would greatly appreciate!

Hi;

Using Firefox + HttpFox plugin you can see the url behind the map service:

http://maps.kartes.lv/kijs/get_map.php?BBOX=788480,6082560,901120,6195200&WIDTH=300&HEIGHT=300&KIJS=BM45&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=&SRS=EPSG%3A3059&FORMAT=image%2Fgif&TRANSPARENT=true

this is a wms; with a bit of luck, it should support the format used by OruxMaps:

<wms>
<name>Baltico</name>
<uid>1309</uid><!--unique identifier in your database cache; >1000 -->
<desc>Baltico</desc>
<url><![CDATA[http://maps.kartes.lv/kijs/get_map.php?SERVICE=WMS&KIJS=BM45&]]></url>
<minzoomlevel>10</minzoomlevel><!-- 0 to 20 -->
<maxzoomlevel>16</maxzoomlevel><!-- 0 to 20 -->
<version>1.1.1</version><!-- do not change -->
<layers></layers>
<coordinatesystem>EPSG:4326</coordinatesystem><!-- do not change -->
<format>image/jpeg</format>
<cache>1</cache><!-- not in use -->
</wms>

Hmmm, seems that yes Smile

Insert that code in wms_services.xml file before </wms_services> tag.

BUT previously check the 'terms of use' of those maps; I do not want problems with map providers!

orux




Try 'reset map sources' button, in the map selector view, online maps.

orux
orux
orux

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  dzelzcels Sat Sep 24, 2011 5:25 pm

Already did that but didn't work. I dont have to change anything in the onlinemapsources.xml file, right?

orux wrote:
dzelzcels wrote:Thanks guys,

orux, I did exactly what you said but after adding the code it doesn't show up in the map sources. Do you have any idea what I'm doing wrong? Appreciate your help!


orux wrote:
dzelzcels wrote:Hi everyone, I have to admit that I'm quite incompetent when it comes to IT but for the last couple of days I've been trying to add one map. It's topo map for the baltic states http://balticmaps.eu/?lang=en Can someone shed a light on how to add it to the sources? I would greatly appreciate!

Hi;

Using Firefox + HttpFox plugin you can see the url behind the map service:

http://maps.kartes.lv/kijs/get_map.php?BBOX=788480,6082560,901120,6195200&WIDTH=300&HEIGHT=300&KIJS=BM45&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=&SRS=EPSG%3A3059&FORMAT=image%2Fgif&TRANSPARENT=true

this is a wms; with a bit of luck, it should support the format used by OruxMaps:

<wms>
<name>Baltico</name>
<uid>1309</uid><!--unique identifier in your database cache; >1000 -->
<desc>Baltico</desc>
<url><![CDATA[http://maps.kartes.lv/kijs/get_map.php?SERVICE=WMS&KIJS=BM45&]]></url>
<minzoomlevel>10</minzoomlevel><!-- 0 to 20 -->
<maxzoomlevel>16</maxzoomlevel><!-- 0 to 20 -->
<version>1.1.1</version><!-- do not change -->
<layers></layers>
<coordinatesystem>EPSG:4326</coordinatesystem><!-- do not change -->
<format>image/jpeg</format>
<cache>1</cache><!-- not in use -->
</wms>

Hmmm, seems that yes Smile

Insert that code in wms_services.xml file before </wms_services> tag.

BUT previously check the 'terms of use' of those maps; I do not want problems with map providers!

orux




Try 'reset map sources' button, in the map selector view, online maps.

orux

dzelzcels

Cantidad de envíos : 6
Fecha de inscripción : 2011-09-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux Sat Sep 24, 2011 5:30 pm

dzelzcels wrote:Already did that but didn't work. I dont have to change anything in the onlinemapsources.xml file, right?

No, it is a wms, you have to play with wms_services.xml file;

an example, replace with yours, check that is works -remember to 'reset online sources'-, then delete the wms you do not want. Your map is WMS:Baltico --> http://www.oruxmaps.com/wms_services.xml

orux
orux
orux

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  dzelzcels Sat Sep 24, 2011 6:27 pm

Thanks ORUX, it seems my phone (galaxys2) is possessed Smile because all maps show up except the baltico. here is a screenshot of all wms maps that are visible: http://postimage.org/image/190q8t41w/

If its too much trouble then dont worry, I'll live without the map. Anyhow thanks!

dzelzcels

Cantidad de envíos : 6
Fecha de inscripción : 2011-09-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux Sat Sep 24, 2011 6:35 pm

dzelzcels wrote:Thanks ORUX, it seems my phone (galaxys2) is possessed Smile because all maps show up except the baltico. here is a screenshot of all wms maps that are visible: http://postimage.org/image/190q8t41w/

If its too much trouble then dont worry, I'll live without the map. Anyhow thanks!


Hmmm,

May be there are changes for next version...

Try with last beta version--> http://www.oruxmaps.com/cs

New versions online maps management: onlinemapsources.xml - Page 2 Device20110924203242



orux
orux
orux

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  dzelzcels Sat Sep 24, 2011 7:40 pm

still no luck, tried to reset everything I could think of. Several times uninstalled the app but nothing: http://postimage.org/image/1px6pxzj8/

The weird thing is everything else shows up no problem. Anyhow the problem is in my phone. I'll try to figure out what it is.

dzelzcels

Cantidad de envíos : 6
Fecha de inscripción : 2011-09-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux Sat Sep 24, 2011 7:51 pm

dzelzcels wrote:still no luck, tried to reset everything I could think of. Several times uninstalled the app but nothing: http://postimage.org/image/1px6pxzj8/

The weird thing is everything else shows up no problem. Anyhow the problem is in my phone. I'll try to figure out what it is.

Hi;

I remember;

This map has an empty <layer> tag.

It only will work with last beta --> http://www.oruxmaps.com/cs

Are you using this version?

orux
orux
orux

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  dzelzcels Sat Sep 24, 2011 7:56 pm

Yes, I downloaded 4.1.28 and replaced the wms_services with the file you provided. Then reset the mapsources. Nothing, all other maps are fine. I have no idea whats wrong.

orux wrote:
dzelzcels wrote:still no luck, tried to reset everything I could think of. Several times uninstalled the app but nothing: http://postimage.org/image/1px6pxzj8/

The weird thing is everything else shows up no problem. Anyhow the problem is in my phone. I'll try to figure out what it is.

Hi;

I remember;

This map has an empty <layer> tag.

It only will work with last beta --> http://www.oruxmaps.com/cs

Are you using this version?

orux

dzelzcels

Cantidad de envíos : 6
Fecha de inscripción : 2011-09-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux Sat Sep 24, 2011 7:58 pm

dzelzcels wrote:Yes, I downloaded 4.1.28 and replaced the wms_services with the file you provided. Then reset the mapsources. Nothing, all other maps are fine. I have no idea whats wrong.

orux wrote:
dzelzcels wrote:still no luck, tried to reset everything I could think of. Several times uninstalled the app but nothing: http://postimage.org/image/1px6pxzj8/

The weird thing is everything else shows up no problem. Anyhow the problem is in my phone. I'll try to figure out what it is.

Hi;

I remember;

This map has an empty <layer> tag.

It only will work with last beta --> http://www.oruxmaps.com/cs

Are you using this version?

orux

mail me, I will send you a new version --> oruxuro@gmail.com

orux
orux
orux

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Basic authentication

Post  Poikanen Fri Sep 30, 2011 3:14 pm

Basic authentication for online map sources would be sweet. I'm testing finnish topo maps which needs authentication and I'm not so keen to make a own proxy for that.

Poikanen

Cantidad de envíos : 2
Fecha de inscripción : 2011-09-30

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  Stager Wed Nov 02, 2011 10:21 am

orux wrote:
No more problems with online sources.

Some sources, such as http://www.topomapper.com/, for request a tiles has required a linear coordinates, in meters.
The request is:
http://78.46.61.141/cgi-bin/tilecache-2.11/tilecache.py?{LongLeftInMetr},{LatBottomInMetr},{LongRightInMetr},{LatTopInMetr}
(by info SAS.Planet)

Can I expect a empowerment to describe online sources?

Stager

Cantidad de envíos : 19
Fecha de inscripción : 2011-06-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty arcgis type mapsource

Post  valleyofdawn Sat Nov 05, 2011 9:49 am

Would it be possible in principle to use a mapsource like this:
http://beta.govmap.gov.il/
Whose tile structure is:
http://cache.govmap.gov.il/arcgiscache/MapCacheNational/Layers/_alllayers/L06/R00000ede/C00000ce1.png

Seems like the tiles have heaxadecimal numbering.

valleyofdawn

Cantidad de envíos : 23
Fecha de inscripción : 2010-12-26

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux Sun Nov 06, 2011 4:42 pm

valleyofdawn wrote:Would it be possible in principle to use a mapsource like this:
http://beta.govmap.gov.il/
Whose tile structure is:
http://cache.govmap.gov.il/arcgiscache/MapCacheNational/Layers/_alllayers/L06/R00000ede/C00000ce1.png

Seems like the tiles have heaxadecimal numbering.

Hi;

We need to know how to transform google like tile coordinates to that encoding system.

orux
orux
orux

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux Sun Nov 06, 2011 4:45 pm

Stager wrote:
orux wrote:
No more problems with online sources.

Some sources, such as http://www.topomapper.com/, for request a tiles has required a linear coordinates, in meters.
The request is:
http://78.46.61.141/cgi-bin/tilecache-2.11/tilecache.py?{LongLeftInMetr},{LatBottomInMetr},{LongRightInMetr},{LatTopInMetr}
(by info SAS.Planet)

Can I expect a empowerment to describe online sources?

Hi;

It is not easy, because we need to know the coordinates system (projection and datum) to know how transform latitude/longitude using Mercator + WGS84 coordinates to grid coordinates.

orux
orux
orux

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  Stager Sun Nov 06, 2011 7:06 pm

orux wrote:
It is not easy, because we need to know the coordinates system (projection and datum) to know how transform latitude/longitude using Mercator + WGS84 coordinates to grid coordinates.
Yes, and <projection> tag already there. You only need to add <datum> tag and parameters for grid coordinates...

Stager

Cantidad de envíos : 19
Fecha de inscripción : 2011-06-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  Poikanen Thu Nov 17, 2011 3:18 pm

Poikanen wrote:Basic authentication for online map sources would be sweet. I'm testing finnish topo maps which needs authentication and I'm not so keen to make a own proxy for that.
Is it possible to add custom HTTP header via configuration XML? I could work with authorization with this Smile

Poikanen

Cantidad de envíos : 2
Fecha de inscripción : 2011-09-30

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty arcgis format

Post  valleyofdawn Tue Nov 29, 2011 10:17 am

Regarding the arcgis format I described earlier.
Mobac 1.9 b1 contains a script that can use arcgis topo map as a mapsource.
It's burried inside mp-misc_worldwide.jar. Perhaps you can figure that out.

Valley

valleyofdawn

Cantidad de envíos : 23
Fecha de inscripción : 2010-12-26

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  Stager Tue Dec 27, 2011 6:07 pm

On visicom.ua url is constructed (in Pascal) as:
'http://tms3.visicom.ua/1.0.3/world_ru'+'/'+IntToStr(GetZ-1)+'/'+IntToStr(GetX)+'/'+IntToStr((1 shl (GetZ-1)) - (GetY+1))+'.png';

So, I need 'Z-1' function, and '(1 left bit-shift (Z-1))-(Y+1)' function.

Can I hope to implement this?

Stager

Cantidad de envíos : 19
Fecha de inscripción : 2011-06-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  Stager Thu Dec 29, 2011 2:06 pm

Stager wrote:On visicom.ua url
...

Sorry, this problem has been discussed... I wasn't paying attention :-(

Stager

Cantidad de envíos : 19
Fecha de inscripción : 2011-06-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  TheCatscrash Thu Mar 01, 2012 6:52 pm

Hi, is there a way to add the german ICAO-map vfr-bulletin.de to the online source?

unfortunately the y-value seems to have to be calculated

Code:
tms_y = -1 * (y - ((int) Math.pow(2.0,zoom)-1));
return "http://vfr-bulletin.de/maps/ICAO/" + zoom + "/" + x + "/" + tms_y + ".jpg";

TheCatscrash

Cantidad de envíos : 1
Fecha de inscripción : 2012-03-01

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux Thu Mar 01, 2012 8:14 pm

TheCatscrash wrote:Hi, is there a way to add the german ICAO-map vfr-bulletin.de to the online source?

unfortunately the y-value seems to have to be calculated

Code:
tms_y = -1 * (y - ((int) Math.pow(2.0,zoom)-1));
return "http://vfr-bulletin.de/maps/ICAO/" + zoom + "/" + x + "/" + tms_y + ".jpg";

See the manual;

this is '0' operation with y

<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)
....


there are other examples in the onlinemapsources.xml file

orux

orux
orux

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  Stager Fri Mar 09, 2012 3:41 pm

The url
Code:
<url><![CDATA[http://www.in7ane.com/topomaps/tiles/{$z}/{$x}/{$y}.jpg>]]></url>
need a z-1 operation, but, this does not exist.

Сan I expect the realization of this?

Stager

Cantidad de envíos : 19
Fecha de inscripción : 2011-06-22

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  yip Fri May 25, 2012 8:47 am

I also need an operation on coordinates ( some kind of printf("%8d", $x) ).

I have to hardcode the operations, because there is no script support in java - android.
orux

Perhaps a workaround is do-able with SQLite ?
something like "SELECT ( X - 1 )" maybe:
http://stackoverflow.com/questions/2644656/expression-parser-library-for-android

other solution would be to use WebView/WebKit API, and its included Javascript engine, but it may require new permissions (bad)
or to use a small dedicated java class:
http://www.softwaremonkey.org/Code/MathEval
there is plenty others over the web.

As oruxmaps already have up and running various SQL databases, a bit of SQL statement in the XML might be the fastest solution.
<xop>X/1000+1</xop> which would be parsed by SQLlite as SELECT X/1000+1 from (select 1234 as X)

What do you think orux ?

I did not code anything for years, so it may be totally out of scope ... scratch

yip

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

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  geronimo Fri Oct 04, 2013 6:43 pm

Hello;

An interesting collection of online maps.

http://pastebin.com/wjPgjpxJ

gero

geronimo

Cantidad de envíos : 2
Fecha de inscripción : 2013-10-04

Back to top Go down

New versions online maps management: onlinemapsources.xml - Page 2 Empty Re: New versions online maps management: onlinemapsources.xml

Post  Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

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