[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] How to combine all included map files in to one production map file.
From:       "Lime, Steve D (MNIT)" <Steve.Lime () state ! mn ! us>
Date:       2014-07-16 18:31:01
Message-ID: C549F0496453D842B4DD71AC8188DDC507E96BC7 () 055-CH1MPN1-041 ! 055d ! mgd ! msft ! net
[Download RAW message or body]

[Attachment #2 (text/plain)]

Another easy way is using MapScript. Just open the mapfile and then save it. Here's \
the perl version:

#!/usr/bin/perl

use mapscript;

$map = new mapscript::mapObj('compass.map');
$map->save('compass_prod.map');

Steve

From: mapserver-users-bounces@lists.osgeo.org \
                [mailto:mapserver-users-bounces@lists.osgeo.org] On Behalf Of TDS
Sent: Wednesday, July 16, 2014 11:54 AM
To: Moen, Paul T.; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to combine all included map files in to one \
production map file.

Hello,

look for mapserver-utils / basemaps package => https://github.com/mapserver/basemaps
Bye, Mathias
________________________________
mailto:tds@tds-net.de
________________________________
1+1=10
You have a question? - 42 or RTFM.
Am 16.07.2014 18:14, schrieb Moen, Paul T.:
Is there an easy way to combine all included map files into a single map file?  The \
includes make it easy to organize the map file, but I want to combine all of them \
into one map file that will be used for debug or production.

The only thing I found related to what I want is specifically listed in the \
documentation at http://www.mapserver.org/mapfile/include.html, but it has no \
information on how to build a production map file.

Performance does not seem to be seriously impacted with limited use, however in high \
performance instances you may want to use includes in a pre-processing step to build \
a production mapfile.

Thanks,

Paul




_______________________________________________

mapserver-users mailing list

mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/mapserver-users


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Consolas","serif";
	color:black;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Another \
easy way is using MapScript. Just open the mapfile and then save it. Here's the perl \
version:<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><i><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">#!/usr/bin/perl<o:p></o:p></span></i></p>
 <p class="MsoNormal"><i><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></i></p>
 <p class="MsoNormal"><i><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">use \
mapscript;<o:p></o:p></span></i></p> <p class="MsoNormal"><i><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></i></p>
 <p class="MsoNormal"><i><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">$map \
= new mapscript::mapObj('compass.map');<o:p></o:p></span></i></p> <p \
class="MsoNormal"><i><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">$map-&gt;save('compass_prod.map');<o:p></o:p></span></i></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Steve<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> \
mapserver-users-bounces@lists.osgeo.org \
[mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>TDS<br>
<b>Sent:</b> Wednesday, July 16, 2014 11:54 AM<br>
<b>To:</b> Moen, Paul T.; mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-users] How to combine all included map files in to one \
production map file.<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<br>
<br>
look for mapserver-utils / basemaps package =&gt; <a \
href="https://github.com/mapserver/basemaps"> \
https://github.com/mapserver/basemaps</a><o:p></o:p></p> <div>
<p class="MsoNormal">Bye, Mathias <o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:10.0pt"><a \
href="mailto:tds@tds-net.de">mailto:tds@tds-net.de</a></span><o:p></o:p></p> <div \
class="MsoNormal" align="center" style="text-align:center"> <hr size="2" width="100%" \
align="center"> </div>
<p class="MsoNormal"><span style="font-size:10.0pt">1&#43;1=10<br>
You have a question? - 42 or RTFM. </span><o:p></o:p></p>
</div>
<p class="MsoNormal">Am 16.07.2014 18:14, schrieb Moen, Paul T.:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Is there an easy way to combine all included map files into a \
single map file? &nbsp;The includes make it easy to organize the map file, but I want \
to combine all of them into one map file that will be used for debug or \
production.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">The only thing I found related to what I want is specifically \
listed in the documentation at <a \
href="http://www.mapserver.org/mapfile/include.html">http://www.mapserver.org/mapfile/include.html</a>, \
but it has no information on how to build a production map file.<o:p></o:p></p> \
</div> <div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#3E4349;background:white">Performance \
does not seem to be seriously impacted with limited use, however in high performance \
instances you may want to use includes in a  pre-processing step to build a \
production mapfile.</span><o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Paul<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>mapserver-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><o:p></o:p></pre>
 <pre><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></pre>
 </blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--===============4477615797533080527==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic