<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:8pt"><div><span><br></span></div><div> </div><div>--<br>Nahum Castro<br>Leon, Guanajuato, Mexico<br>http://www.leon-linux.com<br>e-mail: pedro1_72 [en] yahoo [punto] com</div><div><br></div>  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 8pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">De:</span></b> Stephen Woodbridge <woodbri@swoodbridge.com><br> <b><span style="font-weight: bold;">Para:</span></b> mapserver-users <mapserver-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Enviado:</span></b> Miércoles, 2 de octubre, 2013 10:52:51<br> <b><span style="font-weight: bold;">Asunto:</span></b> [mapserver-users] Any
 thoughts on combining 3 regional maps into     one?<br> </font> </div> <div class="y_msg_container"><br>Hi all,<br><br>I have 3 regional mapfiles for US, Canada and Mexico and I want to <br>create a single North America map. Since the data comes from separate <br>vendors and they refresh on different cycles, I'm trying to figure out <br>the best way to structure this in a mapfile. I also need to maintain <br>each region as a separate mapfile. (I'm ignoring issues like data <br>alignment over borders.)<br><br>The reginal mapfile data is structure like:<br><br>.../us/data/<shapefiles><br>.../us/us.map<br>.../mx/data/<shapefiles><br>.../mx/mx.map<br>.../ca/data/<shapefiles><br>.../ca/ca.map<br><br>The shapepath for each mapfile is set to the local data directory. What <br>I would like to avoid is having to change all the paths in the mapfiles <br>to accomodate a change
 like:<br><br>.../na/us/data/<br>.../na/mx/data/<br>.../na/ca/data/<br>.../na/na.map<br><br>It would be cool if I can change the shapepath in the middle of the <br>mapfile so layers beyond the change would use the new shapepath, but I <br>suspect that will not work.<br><br>So it looks like my options are:<br><br>1. rewrite all the mapfile data pathes as I combine them into one new <br>mapfile and maintain two copies, regional and na versions.<br><br>2. maybe create a new mapfile that loads each of the regions as a WMS <br>client and overlays the adjacent regions. This will get served via <br>mapcache so that might add some options for tile assembly.<br><br>3. other ideas????<br><br>This can be done with postgis!!!<br>create a database with all layers you have, then create views joining the similar layers, and in your map<br><br>LAYER<br>    NAME "states"<br>    STATUS ON<br>    DATA "the_geom from (select *
 from view_from_postgis) as foo using unique gid using srid=4326"<br>    TYPE POLYGON<br>    CONNECTIONTYPE POSTGIS<br>    CONNECTION "user=xyz password=***** dbname=postgis_database_name host=127.0.0.1 port=5432"<br>    UNITS METERS<br>    SIZEUNITS PIXELS<br>    LABELITEM "name"<br>    LABELMINSCALE 750000<br>    TRANSFORM TRUE<br>    TEMPLATE void<br>    METADATA<br>      "LAYER_ENCODING" "UTF-8"<br>    END<br>    projection<br>        "init=epsg:32614"<br>    end<br>    CLASS<br>      NAME "estados"<br>      LABEL<br>        TYPE TRUETYPE<br>        FONT
 "trebuchet"<br>        SIZE 12<br>        POSITION cc<br>        FORCE true<br>        OUTLINECOLOR 255 255 255<br>        COLOR 0 0 255<br>        ANTIALIAS TRUE<br>      END<br>      STYLE<br>        OUTLINECOLOR 130 131 140<br>        BACKGROUNDCOLOR 0 0 0<br>        ANTIALIAS TRUE<br>      END<br>    END<br>  END<br><br>Thanks,<br>   -Steve<br>_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org"
 href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br><br><br></div> </div> </div>  </div></body></html>