[Mapserver-users] More than 100 layers in Mapserver
Gijs Epping
mapserver at gijs.com
Wed Jun 16 05:11:22 PDT 2004
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C453AB.CDCC7C60
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
You have to create an tile index
Locate gdaltindex on the server
You can aplly the following with the gdal index tool
/var/www/html/down/gdal-cvs-030530/apps/gdaltindex top25.shp
/var/www/html/data/top25/*.tif
Mapfile
LAYER
NAME top25
GROUP raster_layers
STATUS ON
TYPE RASTER
TILEINDEX /var/www/html/data/tileindex/test.shp
TILEITEM "location"
END
De TILEITEM is het veld is standaard.
**** gebruikers add
You can run gdaltindex multiple times (with different directories for
instance) or list multiple directories on a single commandline. If the
directories are all simple subdirectories of top25 you might be able to
do something like:
./gdaltindex top25.shp /var/www/html/datalocal/top25/*/*.tif
The key is that you have to provide all the directory seperators in your
wildcarded expansion.
Best regards,
HYPERLINK "http://www.remotesensing.org/gdal/"
\nhttp://www.remotesensing.org/gdal/
HYPERLINK "http://mapserver.gis.umn.edu/doc/raster-howto.html" \n
http://mapserver.gis.umn.edu/doc/raster-howto.html
Hope this helps you a bit
-----Oorspronkelijk bericht-----
Van: Trent Burton [mailto:tburton at holonics.ca]
Verzonden: woensdag 16 juni 2004 13:34
Aan: mapserver-users at lists.gis.umn.edu
Onderwerp: [Mapserver-users] More than 100 layers in Mapserver
Does anyone have Windows binaries for, say, 500 layers (or even more) in
Mapserver? Can anyone comment on if such a large number of layers is an
issue?
Thanks,
Trent Burton
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.684 / Virus Database: 446 - Release Date: 13-5-2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.684 / Virus Database: 446 - Release Date: 13-5-2004
------=_NextPart_000_000A_01C453AB.CDCC7C60
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DWindows-1252">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C453AB.CD3656E0">
<title>Message</title>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:536871559 0 0 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
{margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.EmailStijl17
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:Standaardtabel;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=3DNL link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:35.4pt'>
<div class=3DSection1>
<p><strong><b><font size=3D2 face=3DVerdana><span lang=3DEN-GB =
style=3D'font-size:10.0pt;
font-family:Verdana;mso-ansi-language:EN-GB'>You have to create <span
class=3DGramE>an</span> tile index</span></font></b></strong><b><font =
size=3D2
face=3DVerdana><span lang=3DEN-GB =
style=3D'font-size:10.0pt;font-family:Verdana;
mso-ansi-language:EN-GB;font-weight:bold'><br>
<br>
</span></font></b><font size=3D2 face=3DVerdana><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Verdana;mso-ansi-language:EN-GB'>Locate <span =
class=3DSpellE>gdaltindex</span>
on the server </span></font><span lang=3DEN-GB =
style=3D'mso-ansi-language:EN-GB'><br>
<b><span style=3D'font-weight:bold'><br>
<span class=3DGramE><strong><b><font face=3D"Times New =
Roman">You</font></b></strong></span><strong><b><font
face=3D"Times New Roman"> can <span class=3DSpellE>aplly</span> the =
following with
the <span class=3DSpellE>gdal</span> index =
tool</font></b></strong></span></b><br>
/var/www/html/down/gdal-cvs-030530/apps/gdaltindex top25.shp =
/var/www/html/data/top25/*.<span
class=3DSpellE>tif</span><br>
<br>
<br>
<span class=3DSpellE><strong><b><font face=3D"Times New =
Roman">Mapfile</font></b></strong></span><strong><b><font
face=3D"Times New Roman"> </font></b></strong><br>
<br>
LAYER<br>
NAME top25<br>
GROUP <span class=3DSpellE>raster_layers</span><br>
STATUS ON<br>
TYPE RASTER<br>
TILEINDEX /<span =
class=3DSpellE>var/www/html/data/tileindex/test.shp</span><br>
TILEITEM "location"<br>
END<o:p></o:p></span></p>
<p><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>De
TILEITEM is het veld is standaard.<br>
<br>
</span></font><span lang=3DEN-GB style=3D'mso-ansi-language:EN-GB'>**** =
<span
class=3DSpellE><span class=3DGramE>gebruikers</span></span> add<br>
<em><i><font face=3D"Times New Roman">You can run <span =
class=3DSpellE>gdaltindex</span>
multiple times (with different directories for instance) or list =
multiple
directories on a single <span class=3DSpellE>commandline</span>. If the
directories are all simple subdirectories of top25 you might be able to =
do
something like:</font></i></em><o:p></o:p></span></p>
<p><span class=3DGramE><em><i><font size=3D3 face=3D"Times New =
Roman"><span
lang=3DEN-GB =
style=3D'font-size:12.0pt;mso-ansi-language:EN-GB'>./</span></font></i></=
em></span><span
class=3DSpellE><em><i><font face=3D"Times New Roman"><span lang=3DEN-GB
style=3D'mso-ansi-language:EN-GB'>gdaltindex</span></font></i></em></span=
><em><i><font
face=3D"Times New Roman"><span lang=3DEN-GB =
style=3D'mso-ansi-language:EN-GB'>
top25.shp /var/www/html/datalocal/top25/*/*.<span =
class=3DSpellE>tif</span></span></font></i></em><span
lang=3DEN-GB style=3D'mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p><em><i><font size=3D3 face=3D"Times New Roman"><span lang=3DEN-GB
style=3D'font-size:12.0pt;mso-ansi-language:EN-GB'>The key is that you =
have to
provide all the directory <span class=3DSpellE>seperators</span> in your =
<span
class=3DSpellE>wildcarded</span> expansion.</span></font></i></em><span
lang=3DEN-GB style=3D'mso-ansi-language:EN-GB'><o:p></o:p></span></p>
<p><em><i><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>Best
<span =
class=3DSpellE>regards</span>,</span></font></i></em><o:p></o:p></p>
<p><strong><b><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'><a
href=3D"http://www.remotesensing.org/gdal/" =
target=3D"_blank">http://www.remotesensing.org/gdal/</a></span></font></b=
></strong><b><span
style=3D'font-weight:bold'><br>
<strong><b><font face=3D"Times New Roman"><a
href=3D"http://mapserver.gis.umn.edu/doc/raster-howto.html" =
target=3D"_blank"><br>
http://mapserver.gis.umn.edu/doc/raster-howto.html =
</a></font></b></strong></span></b><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:=
EN-GB'>Hope
this helps you a bit<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:=
EN-GB'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:=
EN-GB'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:=
EN-GB'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:=
EN-GB'><o:p> </o:p></span></font></p>
<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm =
0cm 4.0pt'>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Oorspronkelijk</span><=
/font></span><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>
bericht-----<br>
<b><span style=3D'font-weight:bold'>Van:</span></b> Trent Burton =
[mailto:tburton at holonics.ca]
<br>
<b><span style=3D'font-weight:bold'>Verzonden:</span></b> woensdag 16 =
juni 2004
13:34<br>
<b><span style=3D'font-weight:bold'>Aan:</span></b>
mapserver-users at lists.gis.umn.edu<br>
<b><span style=3D'font-weight:bold'>Onderwerp:</span></b> =
[Mapserver-users] More
than 100 layers in Mapserver</span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Does anyone have Windows binaries for, say, 500 =
layers (or
even more) in Mapserver? Can anyone comment on if such a large =
number of
layers is an <span =
class=3DGramE>issue</span>?</span></font><o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks,</span></font><o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Trent Burton</span></font><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>
<BR>
<P><FONT SIZE=3D2>---<BR>
Incoming mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (http://www.grisoft.com).<BR>
Version: 6.0.684 / Virus Database: 446 - Release Date: 13-5-2004<BR>
</FONT> </P><BR>
<P><FONT SIZE=3D2>---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (http://www.grisoft.com).<BR>
Version: 6.0.684 / Virus Database: 446 - Release Date: 13-5-2004<BR>
</FONT> </P>
------=_NextPart_000_000A_01C453AB.CDCC7C60--
More information about the MapServer-users
mailing list