[Geomoose-users] Geomoose optimization... map source

Len Kne lkne at houstoneng.com
Thu Feb 18 11:04:15 EST 2010


Just to be clear, we are talking GM 2.x (in GM 1.x each source could be only one layer).

For my two cents, I tried to put all layers into a single mapfile and thus have one map-source, but generally don't do this any more because:


1.       The stack order of layers is set by the order of the layers in the map-source (top layer on top, then goes down from there)

2.       Opacity is set at the map-source level, thus all layers in a map-source would have the same opacity

3.       The fade-in and fade-out tools work at the map-source level, thus all layers would be changed when changing one in the catalog

4.       Tend to get a redraw of all layers in the map-source when turning one layer on/off

I still combine "like" layers into one map-source and one mapfile, but watch how the layers are going to be displayed.

Len

From: Mark Volz [mailto:MarkVolz at co.lyon.mn.us]
Sent: Thursday, February 18, 2010 8:46 AM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] Geomoose optimization... map source


Hello,

I would like to try to move all my layers into a single .map file so that only one map with many layers is drawn at a time.  Is the standard practice to:

1)      Create a single <map-source> with multiple references in the catalog to that single map source.

2)      Create separate <map-source> tags that each have their own reference to the same .map file.

For example which example between the two is a standard practice so only one map is drawn?

<map-source name="AllLayers" type="mapserver">

        <file>AllLayers.map</file>

<layer name="layer1"/>

        <layer name="layer2"/>

        <layer name="layer3"/>

</map-source>

...

<catalog>

<layer title="layer1" src="AllLayers/layer1"/>

<layer title="layer2" src="AllLayers/layer2"/>

<layer title="layer3" src="AllLayers/layer3"/>

</catalog>

OR

<map-source name="layer1" type="mapserver">

        <file>AllLayers.map</file>

<layer name="layer1"/>

</map-source>

<map-source name="layer2" type="mapserver">

        <file>AllLayers.map</file>

<layer name="layer2"/>

</map-source>

<map-source name="layer3" type="mapserver">

        <file>AllLayers.map</file>

<layer name="layer3"/>

</map-source>

<catalog>

<layer title="layer1" src="layer1/layer1"/>

<layer title="layer2" src="layer2/layer2"/>

<layer title="layer3" src="layer3/layer3"/>

</catalog>

Next,

Is it okay to use this method for operational layers such as parcels?

Thanks

Mark Volz

GIS Specialist

Lyon County, MN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100218/9a8cd162/attachment.html


More information about the Geomoose-users mailing list