georeference.org
Subscribe to this thread
Home - General / All posts - Image server driver to download tiles from OpenStreetMap?
boomerbubba3 post(s)
#12-Sep-08 07:06

Does anyone know of a Manifold ISI driver to download steet-map layer tiles from openstreetmap.org?

I just want to use these tiles within Manifold by connecting to an image server like those for Virtual Earth, etc.

I have found a couple of threads here with scripts for exporting vector objects from OSM and importing them into Manifold, but that is not what I need for this purpose. Rather than hijack those threads I started a new one.

Thanks in advance.

petzlux

982 post(s)
#15-Sep-08 07:46

There is no such ISI driver available AFAIK. I myself do not (yet) have the right coding skills to develop one from one of the existing examples sourcecode.

It would be great if someone with good knowledge of C# (as I believe that's what the existing ISI Drivers have been written in) would take the time to code one.


Check out the Manifold Wiki with SQL and scripting examples at http://www.manipedia.eu/

Spatial Knowledge, my personal blog.

lionel_

671 post(s)
#05-Dec-08 03:25

if you have a look to ISI driver code you ll see it is not very complicated . in not a gis guy so don't understand mathematic algo that use gis concept /value .

the isis driver is only about download raster image . virtual earth code source is very intersting to read because microsoft explain in details how virtualearth services work in msn developper page . In a way it is interesting to use manifold map server to learn how scale projection is manage by javascript and know more on server since ISIS driver are clients driver.

Manifold API managed rendering raster image inside MAnifold system Link image

see error in image size in the code and number of scale

yahoo is 258*258 / google is 256*256 ( this value for all ISI driver)

osm have to be test using http://b.tal.openstreetmap.org/tiles/title/ and firebug

lionel_

671 post(s)
#05-Dec-08 04:26

scheme of osm http://tah.openstreetmap.org/Tiles/tile/x/y/z.png so base on directory when other map site use many &x= . ( know /X/y/ could not really be in server side directory ) .

g ot ofirebug and open firebug and activate inspect button and html html button and move mouse cursor over tile raster . some map service seem prevent (and succeed) open firebug !!!

the scale is 1-17

the size is 256x256

the image format is png

the image are place in a table refer to lefttop corner.

the images download from the server is more than the images that can be view in the client.

some AJAX osm webserver use different url so

an direct link to a tile work for all browser (http://tah.openstreetmap.org/Tiles/tile/12/2998/1699.png)

12 is scale

2988 is x numbered tile ( 2989 is right side of 2988)

1699 is y numbered tile ( 1700 is under the 1699)

seem rendering use 3x3 by defaut in osm AJAX client

there is intersting url about virtuel earth but nothing about osm ( have to go in code source ) !!!

http://r3.ortho.tiles.virtualearth.net/tiles/r120203.png?g=213&mkt=en-gb&shading=hill

http://johanneskebeck.spaces.live.com/blog/cns!42E1F70205EC8A96!7718.entry

http://msdn.microsoft.com/en-us/library/bb259690.aspx

http://blogs.msdn.com/virtualearth/archive/2008/04/29/tracking-virtual-earth-tile-usage.aspx

petzlux

982 post(s)
#05-Dec-08 04:30

Lionel

The OSM tile server distribution is described in detail on the OSM Wiki. I hazard the guess that it would be quite trivial to adapt either the exisiting Google or VE ISI driver to use OSM tiles instead. As I said, I dont have the confidence though to do that given that I know almost nothing about serious C# programming.

Any takers?


Check out the Manifold Wiki with SQL and scripting examples at http://www.manipedia.eu/

Spatial Knowledge, my personal blog.

lionel_

671 post(s)
#05-Dec-08 04:35

thank ll try to have a look instead discover it by myself !! see they alert people that direct acces is possible but don't like this for overload problem !! hope can tes tit using comand line shell !!

http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.5

lionel_

671 post(s)
#05-Dec-08 05:18

understand more your code about import data from bounding box

.....long/lat

Max -0.13428069117656893/51.501763426464315

Min -0.12269676176480099 /51.495708600774414

Victoria Tower Gardens

lionel_

671 post(s)
#05-Dec-08 05:34

confirm the isi driver source code use C#

lionel_

671 post(s)
#05-Dec-08 05:59

was not aware even edit osm data that ISI driver is raster work and Import osm datat script is vector work .

what can be enhance from the import script thread forum locate in

http://forum.manifold.net/Site/Thread.aspx?id=51880

petzlux

982 post(s)
#05-Dec-08 09:12

Lionel

Je vais repondre a tes messages en francais, parce que j'ai des difficultes a comprendre tes reponses anglaises, et je ne sais pas si tu comprends ce que je dis en anglais!

Il y a deux sortes d'export de OSM, une part les "tiles" qui sont des images representant le produit du generateur de cartes Mapnik. Ces cartes sont ce que tu vois quant tu vas a l'addresse www.openstreetmap.org. Ces "tuiles" sont equivalents au Google Maps API ou Virtual Earth et representent une image pixelise des donnees. Donc, ca serait chouette si on pourrait adapter un des drivers ISI de charger dans Manifold ces tuiles comme fond de carte!

Tu peux trouver des instructions pour savoir comment ces tuiles sont formes, et a quel coordonnees ils sont references a l'addresse suivante: http://wiki.openstreetmap.org/wiki/Slippy_Map

Les donnees eux-memes, par contre sont acessibles a travers la API. Cette API returne quand tu formule une GET request, les donnees sous forme d'un protocole de transport specificque a OSM en format XML. C'est pour ce protocol que j'ai ecrit le script OSM Import. Ce sont des donnes vectorielles, et donc, on peut fair avec eux ce qu'on veut en Manifold! Pour une specification de ce protocolel, regarde cette addresse: http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.5

Bon, j'espere que ca aide, et comme j'ai deja dit, si quelqun (toi?) est capable de comprendre et changer du code C#, ca serait super de changer l'example de code ISI se referant a VE pour charger des tuiles OSM.


Check out the Manifold Wiki with SQL and scripting examples at http://www.manipedia.eu/

Spatial Knowledge, my personal blog.

KlausDE


4,545 post(s)
#05-Dec-08 10:30

Deutsch spricht er übrigens genausogut. Neid!

petzlux

982 post(s)
#05-Dec-08 10:36

Einer der Vorteile aus so nem komischen kleinen Land zu kommen das genau auf der Germanisch-Romanischen Sprachgrenze liegt :-)


Check out the Manifold Wiki with SQL and scripting examples at http://www.manipedia.eu/

Spatial Knowledge, my personal blog.

lionel_

671 post(s)
#06-Dec-08 01:25

just after my post , i discover the links you give and take some time to understand the URL and the file structure (xml) even my aim was to focus on ISI driver.

petzlux

982 post(s)
#20-Jan-09 01:19

Lionel

Any progress on your work on changing the ISI Driver to support OSM tilesets?


Check out the Manifold Wiki with SQL and scripting examples at http://www.manipedia.eu/

Spatial Knowledge, my personal blog.

1 msec Copyright (C) 2007-2008 Manifold.net. All rights reserved.