[ka-Map-users] Tiling for mapserver.

Paul Spencer pspencer at dmsolutions.ca
Tue May 9 07:05:19 EDT 2006

Hi Ed.

The code that accomplishes this for ka-Map is in tile.php.  Take a  
look, use what you need (or use the whole thing).

You need to set the EXTENTS (not EXTEND) of the map.  You can try  
using the mapserv cgi if you don't want to use mapscript.  You will  
probably want to use the mapserver users mailing list, however.

Some advice on generating tiles ...

1) draw a larger image (by about 10 pixels) than you really need and  
trim away the edges before cutting tiles (mapserver has some nasty  
edge effects)

2) use "labelcache_map_edge_buffer" "-xx" in the metadata of your web  
object in your map file to prevent labels from being drawn too close  
to the edge of a tile



On 9-May-06, at 2:17 AM, Edlinoor Syahril Ramlan wrote:

> Hi guys,
> I don't know whether this is a stupid question or what but I really  
> need some advice, opinions, or whatever since I am stuck with this  
> problem for so many days already.
> Anyway what I am trying to do is to create map images that I can  
> use to implement my application like Google Maps.  I know that  
> within Mapserver there is ka-map but as stupid as I am, I would  
> like to create my own.  The details of ka-map and the lack of  
> documentation making ka-map a bit confusing to me.
> I need to make tiles for all map images that I generated from .map  
> file.  The problem I have is that I don't know how to generate  
> images for zooming in and out the map.  I've tried changing and  
> using EXTEND variable but EXTEND only displayed a certain area of  
> the map and not the entire data.  So basically if the user drag the  
> map they will only see data on that extend and not the entire map.   
> How can I solve this problem?  I tried using and changing the SCALE  
> value but nothing changed?  I tried to changed the SIZE also  
> nothing changed except the pixel size of the map.
> So anybody out there that can help me with the best approach?  I  
> need to generate the image and then cut it to tiles.  I think I  
> have a solution on how to cut the image but producing the image is  
> now the problem.  I hope you guys get the picture.
> Thanks.
> Ed.
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

|Paul Spencer                           pspencer at dmsolutions.ca   |
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|

More information about the ka-Map-users mailing list