[mapserver-users] How to combine all included map files in to one production map file.

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Wed Jul 16 11:31:01 PDT 2014


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 at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of TDS
Sent: Wednesday, July 16, 2014 11:54 AM
To: Moen, Paul T.; mapserver-users at 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 at 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 at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140716/7ca24791/attachment.html>


More information about the mapserver-users mailing list