<div>Hi my friends,</div>
<div> </div>
<div>I am really very thankful for all your information, I am a newbie in MapServer.</div>
<div> </div>
<div>here is the data amount that I am using for the application:</div>
<div>(all the source data is MapInfo format, and what I calculated is the ".MAP" file)</div>
<div> </div>
<div>1. boundaries -- 388 KB</div>
<div>2. forests -- 9163 KB</div>
<div>3. lakes -- 26 KB</div>
<div>4. city parks -- 25 KB</div>
<div>5. settlement -- 2279 KB</div>
<div>6. rivers -- 1653 KB</div>
<div>7. road networks -- 56370 KB</div>
<div>8. railway -- 1343 KB</div>
<div>9. train station -- 27 KB</div>
<div>10 bus station -- 2 KB</div>
<div>11. tourist centers -- 9 KB</div>
<div>12. theaters -- 6 KB</div>
<div>13. shopping center -- 7 KB</div>
<div>14. city location -- 9 KB</div>
<div> </div>
<div>*****</div>
<div>and here is how I am symbolizing the layers, mapfile for all these layers:</div>
<div> </div>
<div>***</div>
<div>LAYER<br> NAME "Country"<br> STATUS DEFAULT<br> TYPE POLYGON<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_COUNTRY.TAB"<br> TRANSPARENCY 40<br> DEBUG ON<br> PROJECTION<br>
"init=epsg:4326" <br> END<br> CLASS<br> #NAME "Boundaries"<br> STYLE<br> SYMBOL 0<br> COLOR 155 155 155<br> OUTLINECOLOR 155 155 155<br> BACKGROUNDCOLOR 255 255 255
<br> END<br> END<br> END<br> LAYER<br> NAME "lakes"<br> STATUS DEFAULT<br> TYPE POLYGON<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_LAKE.TAB"<br> DEBUG ON<br> PROJECTION
<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Lake"<br> STYLE<br> COLOR 102 153 255<br> END<br> END<br> END<br> LAYER<br> NAME "woodland"<br> STATUS DEFAULT
<br> TYPE POLYGON<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_WOODLAND_G.TAB"<br> DEBUG ON<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "woodland"
<br> STYLE<br> COLOR 0 185 92<br> END<br> END<br> END<br> LAYER<br> NAME "woodland"<br> STATUS DEFAULT<br> TYPE POLYGON<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_WOODLAND.TAB"
<br> MAXSCALE 100000<br> #LABELITEM "Street_Label"<br> #SYMBOLSCALE 50000<br> #LABELMAXSCALE 80000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "woodland"
<br> STYLE<br> COLOR 0 185 92<br> END<br> END<br> END<br> LAYER<br> NAME "city parks"<br> STATUS DEFAULT<br> TYPE POLYGON<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_CITY_PARK.TAB"
<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Park"<br> STYLE<br> SYMBOL 0<br> COLOR 233 254 205<br> END<br> END<br> END <br> LAYER<br>
NAME "settlement"<br> STATUS DEFAULT<br> TYPE POLYGON<br> #CLASSITEM "Area"<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_BUILT_UP_AREA.TAB"<br> MAXSCALE 800000<br> #LABELITEM "Street_Label"
<br> #SYMBOLSCALE 80000<br> #LABELMAXSCALE 120000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "settlement"<br> #EXPRESSION ([Area]>20000)<br> STYLE
<br> COLOR 207 207 158<br> END<br> END<br> END<br> LAYER<br> NAME "rivers"<br> STATUS DEFAULT<br> TYPE POLYGON<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_WATERWYS.TAB"
<br> MAXSCALE 800000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "river"<br> STYLE<br> COLOR 102 153 255<br> END<br> END<br> END<br> LAYER
<br> NAME "street50"<br> STATUS DEFAULT<br> TYPE LINE<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_S50.TAB"<br> MAXSCALE 40000<br> LABELITEM "Street_Label"<br> SYMBOLSCALE 5000
<br> LABELMAXSCALE 20000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Street 50"<br> LABEL<br> # must be in your FONTSET<br> TYPE TRUETYPE<br>
FONT "vera"<br> SIZE 8<br> MINSIZE 2<br> MAXSIZE 8<br> ANGLE AUTO<br> POSITION CC<br> OFFSET 0 0 <br> COLOR 0 0 255<br> MINFEATURESIZE AUTO<br> BUFFER 0
<br> END<br> STYLE<br> SYMBOL "point"<br> SIZE 8<br> MINSIZE 1<br> MAXSIZE 8<br> COLOR 255 255 255<br> END<br> END<br> END<br> LAYER<br> NAME "oneway"
<br> STATUS DEFAULT<br> TYPE LINE<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_ONEWAY.TAB"<br> MAXSCALE 40000<br> SYMBOLSCALE 5000<br> PROJECTION<br> "init=epsg:4326" <br> END
<br> CLASS<br> NAME "Oneway" <br> STYLE<br> SYMBOL "oneway"<br> SIZE 8<br> MINSIZE 1<br> MAXSIZE 8<br> COLOR 255 51 0<br> END<br> END<br> END
<br> LAYER<br> NAME "street40"<br> STATUS DEFAULT<br> TYPE LINE<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_S40.TAB"<br> MAXSCALE 100000<br> LABELITEM "Street_Label"<br>
SYMBOLSCALE 15000<br> LABELMAXSCALE 30000<br> LABELCACHE ON<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Street 40"<br> LABEL<br> # must be in the FONTSET
<br> TYPE TRUETYPE<br> FONT "vera"<br> SIZE 9<br> MINSIZE 2<br> MAXSIZE 9<br> ANGLE AUTO<br> POSITION CC<br> OFFSET 0 0 <br> COLOR 0 0 255<br> MINFEATURESIZE 20
<br> BUFFER 0<br> END<br> STYLE<br> SYMBOL "point"<br> SIZE 10<br> MINSIZE 3<br> MAXSIZE 10<br> COLOR 160 160 160<br> ANTIALIAS TRUE<br> END<br> STYLE
<br> SYMBOL "point"<br> SIZE 8<br> MINSIZE 1<br> MAXSIZE 8<br> COLOR 255 255 255<br> ANTIALIAS TRUE<br> END<br> END<br> END<br> LAYER<br> NAME "street30"
<br> STATUS DEFAULT<br> TYPE LINE<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_S30.TAB"<br> MAXSCALE 250000<br> LABELITEM "Street_Label"<br> SYMBOLSCALE 40000<br> LABELMAXSCALE 120000
<br> LABELCACHE ON<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Street 30"<br> LABEL<br> # must be in your FONTSET<br> TYPE TRUETYPE<br> FONT "vera"
<br> SIZE 9<br> MINSIZE 2<br> MAXSIZE 9<br> ANGLE AUTO<br> POSITION CC<br> OFFSET 0 0 <br> COLOR 0 0 255<br> MINFEATURESIZE 30<br> #MINDISTANCE 10<br> BUFFER 0
<br> END<br> STYLE<br> SYMBOL "point"<br> SIZE 10<br> MINSIZE 3<br> MAXSIZE 10<br> COLOR 160 160 160<br> END<br> STYLE<br> SYMBOL "point"<br>
SIZE 8<br> MINSIZE 1<br> MAXSIZE 8<br> COLOR 255 204 51<br> END<br> END<br> END<br> LAYER<br> NAME "railway"<br> STATUS DEFAULT<br> TYPE LINE<br> CONNECTIONTYPE OGR
<br> CONNECTION "CA_NAV_RAILRDS.TAB"<br> MAXSCALE 8000<br> SYMBOLSCALE 4000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "railway"<br> SYMBOL 'point'
<br> COLOR 0 0 0<br> SIZE 5<br> MINSIZE 1<br> MAXSIZE 5<br> OVERLAYSYMBOL "dashedline"<br> OVERLAYCOLOR 255 255 255<br> OVERLAYSIZE 3<br> OVERLAYMINSIZE 0<br>
OVERLAYMAXSIZE 3 <br> END<br> END<br> LAYER<br> NAME "street20"<br> STATUS DEFAULT<br> TYPE LINE<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_S20.TAB"<br> MAXSCALE 900000
<br> LABELITEM "Street_Label"<br> SYMBOLSCALE 100000<br> LABELMAXSCALE 430000<br> LABELCACHE ON<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Street 20"
<br> LABEL<br> # must be in your FONTSET<br> TYPE TRUETYPE<br> FONT "vera"<br> SIZE 9<br> MINSIZE 1<br> MAXSIZE 9<br> ANGLE AUTO<br> POSITION CC<br> OFFSET 0 0
<br> COLOR 0 0 255<br> MINFEATURESIZE 50<br> #MINDISTANCE 10<br> BUFFER 0<br> END<br> STYLE<br> SYMBOL "point"<br> SIZE 10<br> MINSIZE 3<br> MAXSIZE 10
<br> COLOR 160 160 160<br> END<br> STYLE<br> SYMBOL "point"<br> SIZE 8<br> MINSIZE 1<br> MAXSIZE 8<br> COLOR 247 193 157<br> END<br> END<br> END<br> LAYER
<br> NAME "street10"<br> STATUS DEFAULT<br> TYPE LINE<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_S10_O.TAB"<br> MAXSCALE 1700000<br> LABELITEM "Street_Label"<br> SYMBOLSCALE 400000
<br> LABELMAXSCALE 500000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Street 10"<br> LABEL<br> # must be in your FONTSET<br> TYPE TRUETYPE<br>
FONT "vera"<br> SIZE 8<br> MINSIZE 1<br> MAXSIZE 8<br> ANGLE AUTO<br> POSITION CC<br> OFFSET 0 0 <br> COLOR 255 0 0<br> BACKGROUNDCOLOR 153 204 153<br>
MINFEATURESIZE AUTO<br> MINDISTANCE 200<br> BUFFER 1<br> END<br> STYLE<br> SYMBOL "point"<br> SIZE 10<br> MINSIZE 3<br> MAXSIZE 10<br> COLOR 255 0 0
<br> END<br> STYLE<br> SYMBOL "point"<br> SIZE 6<br> MINSIZE 1<br> MAXSIZE 6<br> COLOR 255 255 0<br> END<br> END<br> END<br> LAYER<br> NAME "train station"
<br> STATUS OFF<br> TYPE POINT<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_TRAIN_STATION.TAB"<br> MAXSCALE 10000<br> #LABELITEM "Label"<br> SYMBOLSCALE 1000<br> LABELMAXSCALE 5000
<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Train station"<br> LABEL<br> TYPE TRUETYPE<br> FONT "vera"<br> SIZE 8<br> MINSIZE 2
<br> MAXSIZE 8<br> ANGLE AUTO<br> POSITION UC<br> OFFSET 0 0<br> END<br> STYLE<br> SYMBOL "triangle"<br> COLOR 153 0 0<br> SIZE 8<br> MINSIZE 3<br>
MAXSIZE 8<br> END<br> END<br> END<br> LAYER<br> NAME "bus station"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_BUS_STATION.TAB"<br> MAXSCALE 10000
<br> LABELITEM "Label"<br> SYMBOLSCALE 1000<br> LABELMAXSCALE 5000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "bus station"<br> LABEL<br>
TYPE TRUETYPE<br> FONT "vera"<br> SIZE 8<br> MINSIZE 2<br> MAXSIZE 8<br> ANGLE AUTO<br> POSITION UC<br> OFFSET 0 0<br> END<br> STYLE<br> SYMBOL "triangle"
<br> COLOR 0 153 0<br> SIZE 8<br> MINSIZE 3<br> MAXSIZE 8<br> END<br> END<br> END<br> LAYER<br> NAME "LOCATIONS0"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR
<br> CONNECTION "CA_AND_LOCATIONS0.TAB"<br> MAXSCALE 1000000<br> LABELITEM "Name" <br> SYMBOLSCALE 200000<br> LABELMAXSCALE 500000<br> PROJECTION<br> "init=epsg:4326"
<br> END<br> CLASS<br> NAME "LOCATIONS0"<br> LABEL<br> TYPE TRUETYPE<br> FONT "vera"<br> SIZE 12<br> MINSIZE 2<br> MAXSIZE 12<br> ANGLE AUTO<br>
POSITION AUTO<br> OFFSET 0 0<br> COLOR 0 0 255<br> END<br> STYLE<br> SYMBOL "star"<br> COLOR 255 0 0<br> SIZE 18<br> MINSIZE 8<br> MAXSIZE 18<br> END
<br> END<br> END<br> LAYER<br> NAME "LOCATIONS1"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_AND_LOCATIONS1.TAB"<br> MAXSCALE 800000<br> LABELITEM "Name"
<br> SYMBOLSCALE 200000<br> LABELMAXSCALE 500000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "LOCATIONS1"<br> LABEL<br> TYPE TRUETYPE<br> FONT "vera"
<br> SIZE 12<br> MINSIZE 2<br> MAXSIZE 12<br> ANGLE AUTO<br> POSITION AUTO<br> OFFSET 0 0<br> COLOR 0 0 255<br> END<br> STYLE<br> SYMBOL "point"<br>
COLOR 153 153 0<br> SIZE 8<br> MINSIZE 3<br> MAXSIZE 8<br> END<br> END<br> END<br> LAYER<br> NAME "LOCATIONS2"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR
<br> CONNECTION "CA_AND_LOCATIONS2.TAB"<br> MAXSCALE 800000<br> LABELITEM "Name"<br> SYMBOLSCALE 200000<br> LABELMAXSCALE 500000<br> PROJECTION<br> "init=epsg:4326" <br>
END<br> CLASS<br> NAME "LOCATIONS2"<br> LABEL<br> TYPE TRUETYPE<br> FONT "vera"<br> SIZE 10<br> MINSIZE 2<br> MAXSIZE 10<br> ANGLE AUTO<br> POSITION AUTO
<br> OFFSET 0 0<br> COLOR 0 0 255<br> END<br> STYLE<br> SYMBOL "point"<br> COLOR 153 153 0<br> SIZE 6<br> MINSIZE 1<br> MAXSIZE 6<br> END<br> END<br>
END<br> LAYER<br> NAME "LOCATIONS3"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_AND_LOCATIONS3.TAB"<br> MAXSCALE 400000<br> LABELITEM "Name"
<br> SYMBOLSCALE 200000<br> LABELMAXSCALE 200000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "LOCATIONS3"<br> LABEL<br> TYPE TRUETYPE<br> FONT "vera"
<br> SIZE 10<br> MINSIZE 2<br> MAXSIZE 10<br> ANGLE AUTO<br> POSITION AUTO<br> OFFSET 0 0<br> COLOR 0 0 255<br> END<br> STYLE<br> SYMBOL "point"<br>
COLOR 153 51 153<br> SIZE 6<br> MINSIZE 1<br> MAXSIZE 6<br> END<br> END<br> END<br> LAYER<br> NAME "Tourist Information"<br> STATUS OFF<br> TYPE POINT<br> CONNECTIONTYPE OGR
<br> CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB"<br> MAXSCALE 10000<br> LABELITEM "Label"<br> SYMBOLSCALE 1000<br> LABELMAXSCALE 5000<br> PROJECTION<br> "init=epsg:4326"
<br> END<br> CLASS<br> NAME "Tourist Information"<br> LABEL<br> TYPE TRUETYPE<br> FONT "vera"<br> SIZE 8<br> MINSIZE 2<br> MAXSIZE 8<br> ANGLE AUTO
<br> POSITION UC<br> OFFSET 0 0<br> END<br> STYLE<br> SYMBOL "rectangle"<br> COLOR 255 51 0<br> SIZE 8<br> MINSIZE 3<br> MAXSIZE 8<br> END<br> END
<br> END<br> LAYER<br> NAME "Shopping Center"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_SHOPPING_CENTER.TAB"<br> MAXSCALE 10000<br> LABELITEM "Label"
<br> SYMBOLSCALE 1000<br> LABELMAXSCALE 5000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "shopping center"<br> LABEL<br> TYPE TRUETYPE<br> FONT "vera"
<br> SIZE 10<br> MINSIZE 2<br> MAXSIZE 10<br> ANGLE AUTO<br> POSITION UC<br> OFFSET 0 0<br> END<br> STYLE<br> SYMBOL "special"<br> COLOR 255 51 0<br>
SIZE 15<br> MINSIZE 6<br> MAXSIZE 15<br> END<br> END<br> END<br> LAYER<br> NAME "Theater"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_THEATER.TAB"
<br> MAXSCALE 10000<br> LABELITEM "Label"<br> SYMBOLSCALE 1000<br> LABELMAXSCALE 5000<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "Theater"<br>
LABEL<br> TYPE TRUETYPE<br> FONT "vera"<br> SIZE 8<br> MINSIZE 2<br> MAXSIZE 8<br> ANGLE AUTO<br> POSITION UC<br> OFFSET 0 0<br> END<br> STYLE
<br> SYMBOL "triangle"<br> COLOR 255 51 0<br> SIZE 8<br> MINSIZE 3<br> MAXSIZE 8<br> END<br> END<br> END</div>
<div>***********************</div>
<div> </div>
<div>is it still possible to speed up my application?</div>
<div> </div>
<div>****</div>
<div> </div>
<div>
<div>the system parameters of my application:</div>
<div> </div>
<div>Windows XP professional</div>
<div>MS4W 4.8.1</div>
<div>data source -- MapInfo data</div>
<div> </div>
<div>*--only CGI parameters are used,since it is a pure static version with HTML,</div>
<div> </div>
<div>is it possible to develop a pure static application based on MapServer, even in conjunction with PHP/MapScript or Chameleon?</div>
<div> </div>
<div> </div></div>
<div>thanks for any clues.</div>
<div> </div>
<div>zhonghai</div>
<div> </div>
<div>16.05.2006</div><br><br>
<div><span class="gmail_quote">On 5/15/06, <b class="gmail_sendername">Steve Lime</b> <<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">We really need more information about the nature of the data. I mean if you've got<br>20 layers each with a million polygons and are trying to show all of them then 3 seconds
<br>might be really fast! Also, the way you are symbolizing features may impact things.<br><br>In my experience neither 1 or 2 is worth considering...<br><br>Steve<br><br>Steve<br><br>>>> Zhonghai Wang <<a href="mailto:zhonghaiw@GMAIL.COM">
zhonghaiw@GMAIL.COM</a>> 5/15/2006 9:15:49 AM >>><br>Hi there,<br><br>for a special purpose I've developed an static version application based on<br>MapServer CGI, which means I just use pure HTML tages for the GUI, even
<br>without JavaScript code snippets to validate forms.<br><br>I have about 20 map layers to display according to different map scale<br>(ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data<br>classifications within a layer object, the status of all layers are set as
<br>default.<br><br>I've made a test on a standalone MapServer (XP system), every request takes<br>about 3 second. Obvioursly it's not fast enough for a web application, since<br>there may be many users requesting the server at the same time if the
<br>application is published on the web.<br><br>Is MapServer really so slow? can anybody give me some ideas?should I modify<br>the mapfiles?<br><br>I am wondering whether the following solutions will work:<br>1. define every layer as a seperate mapfile, and combine them together by
<br>request<br>2. turn off the non-displayed layers off on the fly<br><br>are these possible to speed up MapServer performance?</blockquote></div><br>