<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">Here is some more information:</font>
<br><font size=2 face="sans-serif">- I use WMS connection to generate the
tiles.</font>
<br><font size=2 face="sans-serif">- There is no data projecting.</font>
<br><font size=2 face="sans-serif">- Extents are determined in WMS request.
Extents for each tile are calculated so that tiles do not overlap.</font>
<br>
<br><font size=2 face="sans-serif">Manfred Meier sent the reply, which
included some images representing the same problem.</font>
<br>
<br><font size=2 face="sans-serif">Here is a sample of the image (pixels
does not match because this example if just screen shot manually merged).</font>
<br>
<br>
<br><font size=2 face="sans-serif">Here is a sample from the map file:</font>
<br><font size=2 face="sans-serif">MAP</font>
<br><font size=2 face="sans-serif"> NAME
AOI_map</font>
<br><font size=2 face="sans-serif"> STATUS
ON</font>
<br>
<br><font size=2 face="sans-serif"> IMAGETYPE
png</font>
<br><font size=2 face="sans-serif"> EXTENT
3425034.79743042 7433326.6782573 3426828.755
7436220.1702233 </font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif"> SHAPEPATH
"D:/webpages/indexfiles/"</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> UNITS
meters</font>
<br><font size=2 face="sans-serif"> PROJECTION</font>
<br><font size=2 face="sans-serif">
"init=epsg:2393" # 2393 = YKJ
</font>
<br><font size=2 face="sans-serif"> END</font>
<br>
<br><font size=2 face="sans-serif">OUTPUTFORMAT</font>
<br><font size=2 face="sans-serif"> NAME JPEG</font>
<br><font size=2 face="sans-serif"> DRIVER "GDAL/JPEG"</font>
<br><font size=2 face="sans-serif"> IMAGEMODE RGB</font>
<br><font size=2 face="sans-serif"> EXTENSION "JPEG"</font>
<br><font size=2 face="sans-serif">END</font>
<br>
<br><font size=2 face="sans-serif">OUTPUTFORMAT</font>
<br><font size=2 face="sans-serif"> NAME bmp</font>
<br><font size=2 face="sans-serif"> DRIVER "GDAL/BMP"</font>
<br><font size=2 face="sans-serif"> MIMETYPE "image/bmp"</font>
<br><font size=2 face="sans-serif"> IMAGEMODE RGB</font>
<br><font size=2 face="sans-serif"> EXTENSION "bmp"</font>
<br><font size=2 face="sans-serif"> FORMATOPTION "WORLDFILE=ON"</font>
<br><font size=2 face="sans-serif">END</font>
<br>
<br>
<br><font size=2 face="sans-serif"># Aerial images</font>
<br><font size=2 face="sans-serif">LAYER</font>
<br><font size=2 face="sans-serif"> NAME
"aerial"</font>
<br><font size=2 face="sans-serif"> GROUP
"aerial"</font>
<br><font size=2 face="sans-serif"> TYPE
RASTER</font>
<br><font size=2 face="sans-serif"> STATUS
DEFAULT</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> MINSCALE
40</font>
<br><font size=2 face="sans-serif"> MAXSCALE
50000</font>
<br>
<br><font size=2 face="sans-serif"> PROCESSING
"RESAMPLE=AVERAGE"</font>
<br>
<br><font size=2 face="sans-serif"> PROJECTION</font>
<br><font size=2 face="sans-serif">
"init=epsg:2393" </font>
<br><font size=2 face="sans-serif">
END</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> TILEINDEX
"ilmakuvat.shp"</font>
<br><font size=2 face="sans-serif">END</font>
<br>
<br><font size=2 face="sans-serif">LAYER</font>
<br><font size=2 face="sans-serif"> NAME
MHGIS_GISE1_KIINTE</font>
<br><font size=2 face="sans-serif"> DATA
data/MHGIS_GISE1_KIINTE.shp</font>
<br><font size=2 face="sans-serif"> TYPE
LINE</font>
<br><font size=2 face="sans-serif"> STATUS
DEFAULT</font>
<br><font size=2 face="sans-serif"> TRANSPARENCY
0</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> </font>
<br>
<br><font size=2 face="sans-serif"> GROUP
UserData</font>
<br>
<br><font size=2 face="sans-serif"> PROJECTION</font>
<br><font size=2 face="sans-serif"> "init=epsg:2393"</font>
<br><font size=2 face="sans-serif"> END</font>
<br>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> CLASS</font>
<br><font size=2 face="sans-serif">
STYLE</font>
<br><font size=2 face="sans-serif">
OUTLINECOLOR
254 255 254</font>
<br><font size=2 face="sans-serif">
COLOR
254 255 254</font>
<br><font size=2 face="sans-serif">
END</font>
<br><font size=2 face="sans-serif"> END</font>
<br>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">END</font>
<br>
<br><font size=2 face="sans-serif">LAYER</font>
<br><font size=2 face="sans-serif"> NAME
AOI</font>
<br><font size=2 face="sans-serif"> DATA
data/AOI.shp</font>
<br><font size=2 face="sans-serif"> TYPE
POLYGON</font>
<br><font size=2 face="sans-serif"> STATUS
DEFAULT</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> </font>
<br>
<br><font size=2 face="sans-serif"> GROUP
UserData</font>
<br>
<br><font size=2 face="sans-serif"> PROJECTION</font>
<br><font size=2 face="sans-serif"> "init=epsg:2393"</font>
<br><font size=2 face="sans-serif"> END</font>
<br>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> CLASS</font>
<br><font size=2 face="sans-serif">
STYLE</font>
<br><font size=2 face="sans-serif">
COLOR
0 0 255</font>
<br><font size=2 face="sans-serif">
END</font>
<br><font size=2 face="sans-serif"> END</font>
<br>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">END</font>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">END</font>
<br>
<br><font size=2 face="sans-serif">Teemu<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Stephen Woodbridge <woodbri@SWOODBRIDGE.COM></b></font>
<br><font size=1 face="sans-serif">Sent by: UMN MapServer Users List <MAPSERVER-USERS@LISTS.UMN.EDU></font>
<p><font size=1 face="sans-serif">28.10.2006 16:55</font>
<br><font size=1 face="sans-serif">Please respond to Stephen Woodbridge</font>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To:
MAPSERVER-USERS@LISTS.UMN.EDU</font>
<br><font size=1 face="sans-serif"> cc:
</font>
<br><font size=1 face="sans-serif"> Subject:
Re: [UMN_MAPSERVER-USERS] How to create
tiles accurately with MapServer?</font></table>
<br>
<br>
<br><font size=2><tt>Teemu Mäkelä wrote:<br>
> <br>
> Hi,<br>
> <br>
> I should create tiles. I have linear features and in mapfile I've
<br>
> defined the line to be drawn with width of 1 pixel.<br>
> <br>
> On the border of tiles:<br>
> CASE A:<br>
> - Line continues OK from tile A to tile B, if line crosses the tile
<br>
> border with angle of 45-90 degrees.<br>
> CASE B:<br>
> - Line does not continue (small gap), if line crosses the tile border
<br>
> with angle of 0-45 degrees. Gap is the problem! Size of the gap depends
<br>
> on the angle. If angle is 5 degress, gap is about 10 pixels; if angle
is <br>
> 30 degrees, gap is about 3 pixels.<br>
> <br>
> Any idea how to get rid of the gaps on lines?<br>
> <br>
> Teemu<br>
<br>
Hi Teemu,<br>
<br>
I think we will need more info to help. Can you post your mapfile <br>
please. Also how are you generating the tiles? ka-map?, mapserv cgi, <br>
mapscript? Are you projecting the data? How do you determine the extents
<br>
of tile A and B?<br>
<br>
-Steve W<br>
</tt></font>
<br>