New versions online maps management: onlinemapsources.xml
+7
Poikanen
dzelzcels
KKS
BpACKer
valleyofdawn
pedja
orux
11 posters
Page 2 of 2 • 1, 2
Re: New versions online maps management: onlinemapsources.xml
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
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- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: New versions online maps management: onlinemapsources.xml
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
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
Re: New versions online maps management: onlinemapsources.xml
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- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: New versions online maps management: onlinemapsources.xml
Thanks ORUX, it seems my phone (galaxys2) is possessed 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!
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
Re: New versions online maps management: onlinemapsources.xml
dzelzcels wrote:Thanks ORUX, it seems my phone (galaxys2) is possessed 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
orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: New versions online maps management: onlinemapsources.xml
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.
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
Re: New versions online maps management: onlinemapsources.xml
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- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: New versions online maps management: onlinemapsources.xml
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
Re: New versions online maps management: onlinemapsources.xml
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- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Basic authentication
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
Re: New versions online maps management: onlinemapsources.xml
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
arcgis type mapsource
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.
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
Re: New versions online maps management: onlinemapsources.xml
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- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: New versions online maps management: onlinemapsources.xml
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- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: New versions online maps management: onlinemapsources.xml
Yes, and <projection> tag already there. You only need to add <datum> tag and parameters for grid coordinates...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.
Stager- Cantidad de envíos : 19
Fecha de inscripción : 2011-06-22
Re: New versions online maps management: onlinemapsources.xml
Is it possible to add custom HTTP header via configuration XML? I could work with authorization with thisPoikanen 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.
Poikanen- Cantidad de envíos : 2
Fecha de inscripción : 2011-09-30
arcgis format
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
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
Re: New versions online maps management: onlinemapsources.xml
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?
'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
Re: New versions online maps management: onlinemapsources.xml
...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
Re: New versions online maps management: onlinemapsources.xml
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
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
Re: New versions online maps management: onlinemapsources.xml
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- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06
Re: New versions online maps management: onlinemapsources.xml
The url
Сan I expect the realization of this?
- Code:
<url><![CDATA[http://www.in7ane.com/topomaps/tiles/{$z}/{$x}/{$y}.jpg>]]></url>
Сan I expect the realization of this?
Stager- Cantidad de envíos : 19
Fecha de inscripción : 2011-06-22
Re: New versions online maps management: onlinemapsources.xml
I also need an operation on coordinates ( some kind of printf("%8d", $x) ).
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 ...
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 ...
yip- Cantidad de envíos : 40
Fecha de inscripción : 2012-01-21
geronimo- Cantidad de envíos : 2
Fecha de inscripción : 2013-10-04
Page 2 of 2 • 1, 2
Similar topics
» unable to save tracks, or online maps as offline maps.
» Creating offline maps from online maps on Desktop PC
» Map Organization: How?
» new online maps
» Using WMS server on online maps
» Creating offline maps from online maps on Desktop PC
» Map Organization: How?
» new online maps
» Using WMS server on online maps
Permissions in this forum:
You cannot reply to topics in this forum
|
|