abidinamdar / gmapcatcher

Automatically exported from code.google.com/p/gmapcatcher
1 stars 0 forks source link

Support mapy.cz #220

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to support maps from seznam.cz. The url is http://mapy.cz/ or 
http://mapy.seznam.cz/ (redirects to mapy.cz).

Mapy.cz provides excellent coverage of Czech republic, the rest of Europe is 
also covered, but not in such detail (detailed zoom levels are missing). There 
are several layers including hybrid. 

The system of coordinates of map tiles is a bit weird, the zero point is in the 
lower left corner.

GPS coordinates are on ellipsoid WGS-84 (see 
http://napoveda.seznam.cz/cz/operatory-a-pokrocile-funkce.html, on Czech).

Zoom levels are from 3 to 16, for some "satellite" maps up to 18 (the higher 
number, the better detail).

Examples of tiles:
The example are from the south of Prague 
(http://www.mapy.cz/#mm=ZTtTcP@sa=s@st=s@ssq=Loc%3A%2049%C2%B056%2753.177%22N%2C
%2014%C2%B022%2726.937%22E@sss=1@ssp=119118956_121073356_151460972_151334604@x=1
32963167@y=135457551@z=16)

http://m4.mapserver.mapy.cz/base-n/11_7ec0000_8120000 (normal map)
http://m4.mapserver.mapy.cz/relief-l/11_7ec0000_8120000 (relief semitransparent 
layer for normal and hiking map)
http://m4.mapserver.mapy.cz/turist/11_7ec0000_8120000 (hiking map)
http://m4.mapserver.mapy.cz/ttur/11_7ec0000_8120000 (hiking lines,  
semitransparent layer)
http://m4.mapserver.mapy.cz/tcyklo/11_7ec0000_8120000 (bike lines, 
semitransparent layer)

http://m4.mapserver.mapy.cz/ophoto/11_7ec0000_8120000 (satellite or orthophoto )

http://m4.mapserver.mapy.cz/hybrid/11_7ec0000_8120000 (labels for satellite 
map, semitransparent)

http://m4.mapserver.mapy.cz/army2/11_7ec0000_8120000 (historical map 1836-52)
http://m4.mapserver.mapy.cz/ophoto0203/11_7ec0000_8120000 (orthophoto map from 
2002/2003)

The semitransparent layers can be usually combined with more maps.

If you need any help, contact me by email.
Thank you very much,

    Tomas

Original issue reported on code.google.com by peni...@gmail.com on 29 Sep 2010 at 10:13

GoogleCodeExporter commented 8 years ago
Hello Tomas

With all your details it should be fairly simple to add support for mapy.cz, 
the only problem are the instructions on Czech, If you feel like coding some 
python take a look at how we did Virtual Earth:
http://code.google.com/p/gmapcatcher/source/browse/trunk/gmapcatcher/mapServers/
virtualEarth.py

Original comment by heldersepu on 29 Sep 2010 at 12:43

GoogleCodeExporter commented 8 years ago
Hello,
   I'm quite familiar with Python, so I will create some code as soon as possible (a week?). I'll spent some time on recomputing of the x and y coordinates. Seznam.cz uses the y axis in opposite direction than google.
Tomas

Original comment by peni...@gmail.com on 1 Oct 2010 at 7:40

GoogleCodeExporter commented 8 years ago
Hi all,
   here is the code. There is a problem with the position of the map tiles. The tiles from mapy.cz and e.g. from Google do not match and also the scale is different. In other words, the result is bad,  GPS coordinates are completely broken, but it can be still a valuable tool for people who aren't lost without GPS :-) (at least me). Detailed description is in the source file.

The second issue is that the web interface of mapy.cz works a bit different 
than GMapCatcher. On one base layer you can add several semitransparent layers 
(e.g. relief + hiking routes + cyclo routes), which is not possible in 
GMapCatcher. So I've selected several combinations of layers which I consider 
as the most frequently used. 

The attached files are tested with version 0.7.5.0. 
The list of files is as follows: 
seznam.py is a new file and should be located in the subdirectory 
gmapcatcher/mapServers.
mapConst.py is a modified file located in directory gmapcatcher
mapServices.py  is a modified file located in directory gmapcatcher

Regards
     Tomas

Original comment by peni...@gmail.com on 8 Oct 2010 at 6:53

Attachments:

GoogleCodeExporter commented 8 years ago
Hello Tomas

I see that your files are older that what we have on the repository, I just 
added your email to the project in that way you can commit your changes to the 
repository.

Original comment by heldersepu on 10 Oct 2010 at 1:36

GoogleCodeExporter commented 8 years ago
I committed the changes and forgot to leave a note here earlier. The changes 
are committed in revision r1059.

Original comment by peni...@gmail.com on 27 Oct 2010 at 7:57

GoogleCodeExporter commented 8 years ago

Original comment by heldersepu on 2 Dec 2010 at 7:09

GoogleCodeExporter commented 8 years ago

Original comment by heldersepu on 29 Mar 2011 at 2:17