[Mapserver-users] Non-Rectangular Tiles in TILEINDEX ?

Ed McNierney ed at topozone.com
Wed Apr 30 20:26:21 EDT 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C30F78.4A792363
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Bob -

=20

Your TILEINDEX should be rectangles.  The intent of a TILEINDEX is to
allow MapServer to quickly determine whether to examine an input file to
see if it has any visible features on the current map request.
Rectangular tiles can be very quickly examined to see if they intersect
the map viewframe.  If so, the source is opened and any files that
REALLY intersect the view are drawn.

=20

Supporting non-rectangular tiles would be more complex and somewhat
slower, and would probably be of rather little benefit in most
applications.  A good combination of rectangular tile indexes and
spatial indexing will produce very good performance.

=20

            - Ed

=20

Ed McNierney

President and Chief Mapmaker

TopoZone.com / Maps a la carte, Inc.

73 Princeton Street, Suite 305

North Chelmsford, MA  01863

Phone: (978) 251-4242  Fax: (978) 251-1396

ed at topozone.com

=20

-----Original Message-----
From: Bruce, Bob (CON) [mailto:BBruce at gov.mb.ca]=20
Sent: Wednesday, April 30, 2003 7:54 PM
To: 'Mapserver Mailing List'
Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ?

=20

I have been experimenting with TILEINDEXs in order to evaluate their
functionality for my applications.

=20

I have successfully displayed a TILEINDEX of 20 orthophotos in my
browser.

=20

Next I wanted to try displaying a set of project mapping areas and built
an index map of polygons of these areas. I included this index map as a
TILEINDEX in my map file and do not get anything displayed, instead I
get a blank display. This leads me to wonder if this is because my tile
polygons are non-rectangular. Does the Map Server require tiles to be
rectangular or can it work with irregularly shaped tiles? I have
successfully displayed my dataset that I'm using as a TILEINDEX as a
line file, so I know that the server will work with this file.

=20

For your reference, I have included the definition of this layer:

=20

LAYER # DLS Polys
  NAME "DLSPolys"
  TILEINDEX "TilesWWinnipeg_CARIS/TilesWWinnipeg"
  TILEITEM "MAPKEY"
  STATUS DEFAULT
  TYPE POLYGON
  CLASSITEM "MAPKEY"
  CLASS # Whole DLS Parcel
    STATUS ON
    NAME "WHOLE DLSPOLY"
    COLOR 255 202 149
    OUTLINECOLOR 0 0 0
  END # end of Whole DLS Parcel class object
END # end of layer object

thanks,

            Bob Bruce

************************************************************************
**********************************=20
**    Bob Bruce, P.Eng.         Geomatics Support Engineer=20
**    bbruce at gov.mb.ca          Manitoba Geomatics/Remote Sensing
Branch,=20
**    work # (204) 945-6636             1007 Century Street,=20
**    home # (204) 256-4615             Winnipeg, Manitoba, Canada, R3H
0W4=20
**    FAX  # (204) 945-1365            =20
**=20
**    The Manitoba Centre for: =20
**      Cadastral & Topographical Mapping, and Remote Sensing=20
**      See us on the Web at:
http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html
**          and: http://www.gov.mb.ca/conservation/geomatics/index.html=20
**      Check out our digital maps at: http://mli.gov.mb.ca/=20
************************************************************************
**********************************

=20


------_=_NextPart_001_01C30F78.4A792363
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Bob &#8211;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Your TILEINDEX should be =
rectangles.&nbsp; The
intent of a TILEINDEX is to allow MapServer to quickly determine whether =
to
examine an input file to see if it has any visible features on the =
current map
request.&nbsp; Rectangular tiles can be very quickly examined to see if =
they
intersect the map viewframe.&nbsp; If so, the source is opened and any =
files that
REALLY intersect the view are drawn.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Supporting non-rectangular tiles =
would be
more complex and somewhat slower, and would probably be of rather little
benefit in most applications.&nbsp; A good combination of rectangular =
tile indexes
and spatial indexing will produce very good =
performance.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Ed</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
 10.0pt;font-family:Arial;color:navy'>Ed McNierney</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>President and Chief =
Mapmaker</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>TopoZone.com / Maps a la carte, =
Inc.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>73 Princeton Street, Suite =
305</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>North Chelmsford, MA&nbsp; =
01863</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Phone: (978) 251-4242&nbsp; Fax: =
(978) 251-1396</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>ed at topozone.com</span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Bruce, Bob (CON)
[mailto:BBruce at gov.mb.ca] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, April =
30, 2003
7:54 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> 'Mapserver Mailing =
List'<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
[Mapserver-users]
Non-Rectangular Tiles in TILEINDEX ?</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have been experimenting =
with
TILEINDEXs in order to evaluate their functionality for my =
applications.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have successfully =
displayed a
TILEINDEX of 20 orthophotos in my browser.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Next I wanted to try =
displaying a
set of project mapping areas and built an index map of polygons of these =
areas.
I included this index map as a TILEINDEX in my map file and do not get =
anything
displayed, instead I get a blank display. This leads me to wonder if =
this is
because my tile polygons are non-rectangular. Does the Map Server =
require tiles
to be rectangular or can it work with irregularly shaped tiles? I have
successfully displayed my dataset that I'm using as a TILEINDEX as a =
line file,
so I know that the server will work with this file.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>For your reference, I have =
included
the definition of this layer:</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>LAYER # DLS Polys<br>
&nbsp; NAME &quot;DLSPolys&quot;<br>
&nbsp; TILEINDEX &quot;TilesWWinnipeg_CARIS/TilesWWinnipeg&quot;<br>
&nbsp; TILEITEM &quot;MAPKEY&quot;<br>
&nbsp; STATUS DEFAULT<br>
&nbsp; TYPE POLYGON<br>
&nbsp; CLASSITEM &quot;MAPKEY&quot;<br>
&nbsp; CLASS # Whole DLS Parcel<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; NAME &quot;WHOLE DLSPOLY&quot;<br>
&nbsp;&nbsp;&nbsp; COLOR 255 202 149<br>
&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>
&nbsp; END # end of Whole DLS Parcel class object<br>
END # end of layer object</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>thanks,</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Bob Bruce</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D1 =
color=3Dblue face=3DArial><span
style=3D'font-size:7.5pt;font-family:Arial;color:blue'>******************=
*************************************************************************=
***************</span></font><font
color=3Dblue><span style=3D'color:blue'> <br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp; Bob Bruce, P.Eng.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Geomatics Support =
Engineer</span></font><font
color=3Dblue><span style=3D'color:blue'> <br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp; =
bbruce at gov.mb.ca&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Manitoba Geomatics/Remote =
Sensing
Branch,</span></font><font color=3Dblue><span style=3D'color:blue'> <br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp; work # (204)
945-6636&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1007 Century Street,</span></font><font color=3Dblue><span =
style=3D'color:blue'> <br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp; home # (204)
256-4615&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Winnipeg, Manitoba, Canada, R3H 0W4</span></font><font =
color=3Dblue><span
style=3D'color:blue'> <br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp; FAX&nbsp; # (204)
945-1365&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><font
color=3Dblue><span style=3D'color:blue'><br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**</span></font><font color=3Dblue><span
style=3D'color:blue'> <br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp; The Manitoba Centre
for:&nbsp; </span></font><font color=3Dblue><span =
style=3D'color:blue'><br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cadastral =
&amp;
Topographical Mapping, and Remote Sensing</span></font><font =
color=3Dblue><span
style=3D'color:blue'> <br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; See us on =
the
Web at:<u> <a
href=3D"http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.ht=
ml"
target=3D"_blank">http://www.gov.mb.ca/conservation/geomatics/cada_mappin=
g/index.html</a></u></span></font><br>
<font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;font-family:
Arial;color:blue'>**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
and:</span></font><u><font
color=3Dblue><span style=3D'color:blue'> </span></font></u><u><font =
size=3D1
color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;font-family:Arial;
color:blue'><a =
href=3D"http://www.gov.mb.ca/conservation/geomatics/index.html"
target=3D"_blank">http://www.gov.mb.ca/conservation/geomatics/index.html<=
/a></span></font></u><font
color=3Dblue><span style=3D'color:blue'> <br>
</span></font><font size=3D1 color=3Dblue face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:blue'>**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check=
 out
our digital maps at:<u> <a href=3D"http://mli.gov.mb.ca/" =
target=3D"_blank">http://mli.gov.mb.ca/</a></u></span></font><font
color=3Dblue><span style=3D'color:blue'> </span></font><font size=3D1 =
color=3Dblue
face=3DArial><span =
style=3D'font-size:7.5pt;font-family:Arial;color:blue'><br>
*************************************************************************=
*********************************</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C30F78.4A792363--



More information about the mapserver-users mailing list