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