MapScript multithreading performance

6 messages Options
Embed this post
Permalink
adrian kruk

MapScript multithreading performance

Reply Threaded More More options
Print post
Permalink
Hi,
I did some multithreading performance tests using C# mapscript (We've discussed about safety and performance before)

I have run 200 threads running simultanously and performing actions like: create mapObject, zoom, pan, query, draw, etc
Testing application environment:
-4processors server (Intel Xeon E5320)
-Win2003EE+SP3
-4GM RAM
-MapScript 5.1-DEV from http://www.coordinatesolutions.com/download/ASPNET20Sample_50.zip
-1GB data in shapefiles on RAID

I expected performance problems with parsing mapfile (static variables, locks). But there were no problems with it.
During parsing mapfile by 200 threads processors was used in 98-100%. So it is perfect result.
But, I find problem probably with draw method. Each thread was executing methods on its own map object like:
drawLegend, drawScalebar, queryByAttributes, zoomPoint, setExtent, Draw.
During running test application, and executing those methods, processors was used in 25-35% ONLY (25% - one processor).
Its very poor result. I guess that problem may be related with using locks in drawing process{ imageObj img = map.draw() }, which takes much more time than other mapObject methods.

How to improve performance? It is hard to fix it?

Regards,
Adrian Kruk,
infovidematrix.pl

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Steve Lime

Re: MapScript multithreading performance

Reply Threaded More More options
Print post
Permalink
That's the expected bottleneck point.  The locks are around pretty specific
pieces of code, mostly related to expression handling if I'm not mistaken. So
I wonder if moving to a threadsafe lexer/parser would help. Both bison and
flex support that. We'd have to carry the static variables associated with those
as a piece of the mapObj. I've not looked at doing that very closely but it's
probably relatively straight forward.

Steve

>>> "adrian kruk" <[hidden email]> 02/11/08 6:15 AM >>>
Hi,
I did some multithreading performance tests using C# mapscript (We've
discussed about safety and performance before)

I have run 200 threads running simultanously and performing actions like:
create mapObject, zoom, pan, query, draw, etc
Testing application environment:
-4processors server (Intel Xeon E5320)
-Win2003EE+SP3
-4GM RAM
-MapScript 5.1-DEV from
http://www.coordinatesolutions.com/download/ASPNET20Sample_50.zip
-1GB data in shapefiles on RAID

I expected performance problems with parsing mapfile (static variables,
locks). But there were no problems with it.
During parsing mapfile by 200 threads processors was used in 98-100%. So it
is perfect result.
But, I find problem probably with draw method. Each thread was executing
methods on its own map object like:
drawLegend, drawScalebar, queryByAttributes, zoomPoint, setExtent, Draw.
During running test application, and executing those methods, processors was
used in 25-35% ONLY (25% - one processor).
Its very poor result. I guess that problem may be related with using locks
in drawing process{ imageObj img = map.draw() }, which takes much more time
than other mapObject methods.

How to improve performance? It is hard to fix it?

Regards,
Adrian Kruk,
infovidematrix.pl

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Tamas Szekeres

Re: MapScript multithreading performance

Reply Threaded More More options
Print post
Permalink
In reply to this post by adrian kruk
Adrian,

I'm not aware of much locking around the drawing code of it's own.
This might be another issue I think. Would you share your mapfile and
the C# code you test with?
How do you detect which part of the code causes the problem and which not?

I expect your problem reported might be related to some operations
requiring heavy resource access (eg. file loads during epsg lookups).
Have you monitored your disk access that might also be optimized?

I'm not sure if the processor usage is the perfect measure of the
efficiency of the application either.


Best regards,

Tamas




2008/2/11, adrian kruk <[hidden email]>:

> Hi,
> I did some multithreading performance tests using C# mapscript (We've
> discussed about safety and performance before)
>
> I have run 200 threads running simultanously and performing actions like:
> create mapObject, zoom, pan, query, draw, etc
>  Testing application environment:
> -4processors server (Intel Xeon E5320)
> -Win2003EE+SP3
> -4GM RAM
> -MapScript 5.1-DEV from
> http://www.coordinatesolutions.com/download/ASPNET20Sample_50.zip
>  -1GB data in shapefiles on RAID
>
> I expected performance problems with parsing mapfile (static variables,
> locks). But there were no problems with it.
> During parsing mapfile by 200 threads processors was used in 98-100%. So it
> is perfect result.
>  But, I find problem probably with draw method. Each thread was executing
> methods on its own map object like:
> drawLegend, drawScalebar, queryByAttributes, zoomPoint, setExtent, Draw.
> During running test application, and executing those methods, processors was
> used in 25-35% ONLY (25% - one processor).
>  Its very poor result. I guess that problem may be related with using locks
> in drawing process{ imageObj img = map.draw() }, which takes much more time
> than other mapObject methods.
>
> How to improve performance? It is hard to fix it?
>
> Regards,
> Adrian Kruk,
> infovidematrix.pl
>
> _______________________________________________
> mapserver-dev mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>
_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Frank Warmerdam

Re: MapScript multithreading performance

Reply Threaded More More options
Print post
Permalink
Tamas Szekeres wrote:

> Adrian,
>
> I'm not aware of much locking around the drawing code of it's own.
> This might be another issue I think. Would you share your mapfile and
> the C# code you test with?
> How do you detect which part of the code causes the problem and which not?
>
> I expect your problem reported might be related to some operations
> requiring heavy resource access (eg. file loads during epsg lookups).
> Have you monitored your disk access that might also be optimized?
>
> I'm not sure if the processor usage is the perfect measure of the
> efficiency of the application either.

Adrian,

I agree with Tamas - we don't have enough information to give an informed
answer.

I will note that DrawMap() has to access the feature data, and so is quite
subject to feature access lock contention.  For instance, if you are using
CONNECTIONTYPE OGR and MapServer 5 there is a big lock around OGR.  That means
only one drawing thread at a time can be in OGR fetching data which is often
the dominant time consumer.

So, providing details of your datasource would be helpful.  But really,
you need a way of interrupting your threads to see where they are blocked
in some fashion to get a better sense of what is the hold up.

I will say, that I'm unaware of any locks around the rendering work itself,
at least with the GD vector rendering code.  So for actual rendering intensive
applications, multi-threading should give good cpu utilization.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [hidden email]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
adrian kruk

Re: MapScript multithreading performance

Reply Threaded More More options
Print post
Permalink
>Would you share your mapfile and the C# code you test with?
Yes,  here is my mapfile.

>Have you monitored your disk access that might also be optimized?
Yes it could be a reason. I was not monitored a disk. Thank you Tamas for advice. How can I optimize access to shapefiles?
Maybe Linux will be faster for reading shapefiles (NTFS is slow)? What about PostgreSQL/PostGIS on different machine (instead of shapefiles on the same machine as mapscript application), will it makes better overall performance of mapscript application?


>I'm not sure if the processor usage is the perfect measure of the efficiency of the application either.
I have never mention that processor usage is a measure of application efficiency.
I mean that 30% usage obviously is to low. If I will bought 8 processors machine I wouldn't like to find out that usage will be 15-20%.


Regards
Adrian


# Map file created from QGIS project file D:/Program Files/Quantum GIS/postgis.qgs
# Edit this file to customize for your map interface
MAP

WEB
  IMAGEPATH "/ms4w/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
END


  NAME "Mapa Polski"
  UNITS METERS
  FONTSET "fonts\fonts.list"

  EXTENT 164464.162916 119780.320456 926562.436294 761428.792872
  PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
  END

############################################################################################################

# Symbol used by CLASS
  SYMBOL
    NAME "circle"
    TYPE ellipse
    FILLED true
    POINTS 1 1 END
  END #end symbol

SYMBOL
  NAME 'point'
  TYPE ELLIPSE
  POINTS
    1 1
  END
  FILLED TRUE
END

SYMBOL
  NAME 'rectangle-train'
  TYPE VECTOR
  POINTS
    0 0
    0 0.6
    1 0.6
    1 0
    0 0
  END
  FILLED TRUE
  STYLE
    8 12 8 12
  END
END

############################################################################################################


  # Legend
  LEGEND
      IMAGECOLOR 255 255 255
    STATUS ON
    KEYSIZE 18 12
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      COLOR 0 0 89
    END
  END
 
 QUERYMAP
  STYLE HILITE
  COLOR 255 0 0
 END

#######################################################################################################
  LAYER
    NAME 'Morze'
        #group "Wody"
    TYPE POLYGON
#    DATA 'Morze'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM morze"

    METADATA
      'wms_title' 'Morze'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    CLASS
TEMPLATE 'template.html'
       NAME 'Morze'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 138 166 189
         COLOR 138 166 189
       END
    END
  END
#######################################################################################################

  LAYER
    NAME 'Wojewodztwo'
    #group "Administracja"
    TYPE POLYGON
# DATA Wojewodztwo
        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM wojewodztwo"

    METADATA
      'wms_title' 'Wojewodztwo'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    CLASS
    TEMPLATE 'template.html'
       NAME 'Wojewodztwo'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 252 250 244
         COLOR 252 250 244
       END
    END
  END

#######################################################################################################

  LAYER
    NAME 'Area100'
        #group "Zielen"
    TYPE POLYGON
#    DATA 'Area100'
        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM area100"

    METADATA
      'wms_title' 'Area100'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1000000 #w³¹cznie
    MAXSCALE 5000000
    CLASS
TEMPLATE 'template.html'
       NAME 'Area100'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 203 216 195
         COLOR 203 216 195
       END
     LABEL
      SIZE medium
      COLOR 0 0 0
      ANGLE 0
      BUFFER 1
     END
    END
  END


    LAYER
    NAME 'Zielen'
        #group "Zielen"
    TYPE POLYGON
# DATA Zielen
        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM zielen"

    METADATA
      'wms_title' 'Zielen'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1 #w³¹cznie
    MAXSCALE 1000000
    CLASS
TEMPLATE 'template.html'
       NAME 'Area100'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 203 216 195
         COLOR 203 216 195
       END
     LABEL
      SIZE medium
      COLOR 0 0 0
      ANGLE 0
      BUFFER 1
     END
    END
  END


#######################################################################################################

 LAYER
    NAME 'Miejscowosc1'
        #group "Miasta"
    TYPE POLYGON
#    DATA 'Miejscowosc1'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM miejscowosc1"

    METADATA
      'wms_title' 'Miejscowosc1'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    LABELITEM 'nazwa'
    CLASS
TEMPLATE 'template.html'
       NAME 'Miejscowosc1'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 222 225 230
         COLOR 222 225 230
       END
     LABEL
      POSITION   CC
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 10
      COLOR 60 60 60
      ANGLE 0
      BUFFER 1
      PRIORITY 10
      MINDISTANCE 1000
      PARTIALS FALSE
    END
    END
  END

#######################################################################################################

  LAYER
    NAME 'wody_region'
        #group "Wody"
    TYPE POLYGON
#    DATA 'wody_region'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM wody_region"

    METADATA
      'wms_title' 'wody_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    CLASS
TEMPLATE 'template.html'
       NAME 'wody_region'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 168 195 211
         COLOR 168 195 211
       END
    END
  END

#######################################################################################################

  LAYER
    NAME 'Miejscowosc2_point'
        #group "Miasta"
    TYPE POINT

    DATA 'Miejscowosc2_point'

# CONNECTIONTYPE postgis
#    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
#    DATA "the_geom FROM miejscowosc2_point"

        METADATA
      'wms_title' 'Miejscowosc2_point'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 3500000
    LABELITEM 'NAZWA'
    CLASS
        TEMPLATE 'template.html'
       NAME 'Miejscowosc2_point'
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 2
     END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 9
      COLOR 80 80 80
      ANGLE 0
      BUFFER 1
      PRIORITY 9
      POSITION AUTO
      MINDISTANCE 1000
      PARTIALS FALSE
     END
    END
  END

  LAYER
    NAME 'Miejscowosc2_region'
                #group "Miasta"
    TYPE POLYGON

    DATA 'Miejscowosc2_region'

# CONNECTIONTYPE postgis
#    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
#    DATA "the_geom FROM miejscowosc2_region"

    METADATA
      'wms_title' 'Miejscowosc2_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 3500000
    LABELITEM 'NAZWA'
    CLASS
       TEMPLATE 'template.html'
       NAME 'Miejscowosc2_region'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 222 225 230
         COLOR 222 225 230
       END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 9
      COLOR 80 80 80
      ANGLE 0
      BUFFER 1
      PRIORITY 9
      MINDISTANCE 1000
      PARTIALS FALSE
     END
    END
  END

#######################################################################################################

  LAYER
    NAME 'Miejscowosc3_point'
        #group "Miasta"
    TYPE POINT

    DATA 'Miejscowosc3_point'

# CONNECTIONTYPE postgis
#    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
#    DATA "the_geom FROM miejscowosc3_point"


    METADATA
      'wms_title' 'Miejscowosc3_point'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 2000000
    LABELITEM 'NAZWA'
    CLASS
TEMPLATE 'template.html'
       NAME 'Miejscowosc3_point'
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 3
     END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 8
      COLOR 100 100 100
      ANGLE 0
      BUFFER 1
      PRIORITY 6
      POSITION AUTO
      PARTIALS FALSE
     END
    END
  END

  LAYER
    NAME 'Miejscowosc3_region'
                #group "Miasta"
    TYPE POLYGON

    DATA 'Miejscowosc3_region'

# CONNECTIONTYPE postgis
#    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
#    DATA "the_geom FROM miejscowosc3_region"


    METADATA
      'wms_title' 'Miejscowosc3_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 2000000
    LABELITEM 'NAZWA'
    CLASS
       TEMPLATE 'template.html'
       NAME 'Miejscowosc3_region'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 222 225 230
         COLOR 222 225 230
       END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 8
      COLOR 100 100 100
      ANGLE 0
      BUFFER 1
      PRIORITY 6
      POSITION AUTO
      MINDISTANCE 500
      PARTIALS FALSE
     END
    END
  END


#######################################################################################################

  LAYER
    NAME 'Miejscowosc4_point'
        #group "Miasta"
    TYPE POINT

    DATA 'Miejscowosc4_point'

# CONNECTIONTYPE postgis
#    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
#    DATA "the_geom FROM miejscowosc4_point"

    METADATA
      'wms_title' 'Miejscowosc4_point'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 500000
    LABELITEM 'NAZWA'
    CLASS
TEMPLATE 'template.html'
       NAME 'Miejscowosc4_point'
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 3
     END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 8
      COLOR 100 100 100
      ANGLE 0
      BUFFER 1
      PRIORITY 3
      POSITION AUTO
      PARTIALS FALSE
     END
    END
  END

  LAYER
    NAME 'Miejscowosc4_region'
        #group "Miasta"
    TYPE POLYGON

    DATA 'Miejscowosc4_region'

# CONNECTIONTYPE postgis
#    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
#    DATA "the_geom FROM miejscowosc4_region"


    METADATA
      'wms_title' 'Miejscowosc4_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 500000
    LABELITEM 'NAZWA'
    CLASS
        TEMPLATE 'template.html'
       NAME 'Miejscowosc4_region'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 222 225 230
         COLOR 222 225 230
       END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 8
      COLOR 100 100 100
      ANGLE 0
      BUFFER 1
      PRIORITY 3
      MINDISTANCE 500
      PARTIALS FALSE
     END
    END
  END


#######################################################################################################

  LAYER
    NAME 'Miejscowosc5_point'
        #group "Miasta"
        TYPE POINT

    DATA 'Miejscowosc5_point'

# CONNECTIONTYPE postgis
#    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
#    DATA "the_geom FROM miejscowosc5_point"

    METADATA
      'wms_title' 'Miejscowosc5_point'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 300000
    LABELITEM 'NAZWA'
    CLASS
TEMPLATE 'template.html'
       NAME 'Miejscowosc5_point'
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 5
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 3
     END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 7
      COLOR 110 110 110
      ANGLE 0
      BUFFER 1
      PRIORITY 1
      POSITION LR
      PARTIALS FALSE
     END
    END
  END

  LAYER
    NAME 'Miejscowosc5_region'
        #group "Miasta"
    TYPE POLYGON

    DATA 'Miejscowosc5_region'

# CONNECTIONTYPE postgis
#    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
#    DATA "the_geom FROM miejscowosc5_region"

    METADATA
      'wms_title' 'Miejscowosc5_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 300000
    LABELITEM 'NAZWA'
    CLASS
TEMPLATE 'template.html'
       NAME 'Miejscowosc5_region'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 222 225 230
         COLOR 222 225 230
       END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 7
      COLOR 110 110 110
      ANGLE 0
      BUFFER 1
      PRIORITY 1
      MINDISTANCE 500
      PARTIALS FALSE
     END
    END
  END


#######################################################################################################

  LAYER
    NAME 'Koleje'
        #group "Drogi i koleje"
    TYPE LINE

#    DATA 'Koleje'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM koleje"

    METADATA
      'wms_title' 'Koleje'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1000000
    MAXSCALE 100000
    CLASS
TEMPLATE 'template.html'
       NAME 'Koleje'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 126 126 126
         COLOR 0 0 0
       END
    END
  END

#################################################################################################################

  LAYER
    NAME 'Koleje'
        #group "Drogi i koleje"
    TYPE LINE


#    DATA 'Koleje'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM koleje"

    METADATA
      'wms_title' 'Koleje'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    MINSCALE 1
    MAXSCALE 100000
    CLASS
TEMPLATE 'template.html'
       NAME 'Koleje'
       STYLE
        COLOR 102 102 102
        SYMBOL 'point'
        SIZE 4
       END
      STYLE
       COLOR 255 255 255
       SYMBOL 'rectangle-train'
       SIZE 2
      END
    END
  END


#################################################################################################################

  LAYER
    NAME 'DrogiInne'
        #group "Drogi i koleje"
    TYPE LINE

#    DATA 'DrogiInne'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM drogiinne"

    METADATA
      'wms_title' 'DrogiInne'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    CLASS
TEMPLATE 'template.html'
       MINSCALE 1 #w³¹cznie
       MAXSCALE 1000000
       NAME 'DrogiWojewodzkie'
       STYLE
         SIZE 20
         COLOR 209 207 202
       END
    END
    CLASS
TEMPLATE 'template.html'
       MINSCALE 1 #w³¹cznie
       MAXSCALE 1000000
       NAME 'DrogiWojewodzkie'
     STYLE
       SYMBOL 'circle'
       COLOR 158 157 153
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 2
     END
    END
  END

#################################################################################################################

  LAYER
    NAME 'DrogiWojewodzkie'
        #group "Drogi i koleje"
    TYPE LINE

#    DATA 'DrogiWojewodzkie'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM drogiwojewodzkie"


    METADATA
      'wms_title' 'DrogiWojewodzkie'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    CLASS
        TEMPLATE 'template.html'
       MINSCALE 1000000 #w³¹cznie
       NAME 'DrogiWojewodzkie'
       STYLE
         SIZE 20
         COLOR 199 197 192
       END
    END
    CLASS
TEMPLATE 'template.html'
       MAXSCALE 1000000 #wy³¹cznie
       NAME 'DrogiWojewodzkie'
     STYLE
       SYMBOL 'circle'
       COLOR 158 157 153
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 223 151
      SIZE 2
     END
    END
  END

#################################################################################################################

 LAYER
    NAME 'DrogiKrajowe'
        #group "Drogi i koleje"
    TYPE LINE

 #   DATA 'DrogiKrajowe'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM drogikrajowe"

    METADATA
      'wms_title' 'DrogiKrajowe'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    CLASS
TEMPLATE 'template.html'
      NAME 'DrogiKrajowe'
     STYLE
       SYMBOL 'circle'
       COLOR 132 131 130
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 222 60 41
      SIZE 2
     END
     LABEL
      SIZE medium
      COLOR 0 0 0
      ANGLE 0
      BUFFER 1
     END
    END
  END

#################################################################################################################



#################################################################################################################

  LAYER
    NAME 'Wojewodztwo'
        #group "Administracja"
    TYPE LINE

#   DATA 'Wojewodztwo'

        CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=postgis user=postgres password=postgres port=5432"
    DATA "the_geom FROM wojewodztwo"

    METADATA
      'wms_title' 'Wojewodztwo'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    CLASS
TEMPLATE 'template.html'
       NAME 'Wojewodztwo'
       STYLE
        SYMBOL 'circle'
        COLOR 160 160 160
       SIZE 2
     END
    END
  END

#################################################################################################################

  LAYER
    NAME 'Geocoding_Result'
    GROUP "Bankomaty"
    TYPE POINT
    DATA 'Geocoding_Result.shp'
    METADATA
      'wms_title' 'Geocoding_Result'
      'queryable' 'true'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=sterea'
    'lat_0=51.67083333333333'
    'lon_0=16.67222222222222'
    'k=0.999800'
    'x_0=3703000'
    'y_0=5627000'
    'ellps=krass'
    'towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84'
    'units=m'
    'no_defs'
    END
    CLASS
TEMPLATE 'template.html'
       NAME 'Geocoding_Result'
       TEMPLATE 'template.html'
       STYLE
         SYMBOL 'CIRCLE'
         SIZE 6
         OUTLINECOLOR 0 0 0
         COLOR 150 123 90
       END
    END
  END

END
_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
adrian kruk

Fwd: MapScript multithreading performance

Reply Threaded More More options
Print post
Permalink
Second mapfile without projections and without postgis connection couse the same low usage.
TestApp01.png - taskmgr screenshot- starting test tapplication, 100%usage is when I'm creating threads and mapObjects, after that usage is decreasing


--
Regards,
AK

# Map file created from QGIS project file D:/Program Files/Quantum GIS/mapapolski.qgs
# Edit this file to customize for your map interface
MAP

WEB
  IMAGEPATH "/ms4w/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
END


  NAME "Mapa Polski"
  UNITS METERS
  FONTSET "fonts\fonts.list"

  EXTENT 164464.162916 119780.320456 926562.436294 761428.792872

############################################################################################################

# Symbol used by classes
  SYMBOL
    NAME "circle"
    TYPE ellipse
    FILLED true
    POINTS 1 1 END
  END #end symbol

SYMBOL
  NAME 'point'
  TYPE ELLIPSE
  POINTS
    1 1
  END
  FILLED TRUE
END

SYMBOL
  NAME 'rectangle-train'
  TYPE VECTOR
  POINTS
    0 0
    0 0.6
    1 0.6
    1 0
    0 0
  END
  FILLED TRUE
  STYLE
    8 12 8 12
  END
END

############################################################################################################


  # Legend
  LEGEND
      IMAGECOLOR 255 255 255
    STATUS ON
    KEYSIZE 18 12
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      COLOR 0 0 89
    END
  END
 
 QUERYMAP
  STYLE HILITE
  COLOR 255 0 0
 END

#######################################################################################################
  LAYER
    NAME 'Morze'
        #group "Wody"
    TYPE POLYGON
    DATA Morze
    METADATA
      'wms_title' 'Morze'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    CLASS
       NAME 'Morze'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 138 166 189
         COLOR 138 166 189
       END
    END
  END
#######################################################################################################

  LAYER
    NAME 'Wojewodztwo'
    #group "Administracja"
    TYPE POLYGON
    DATA Wojewodztwo
    METADATA
      'wms_title' 'Wojewodztwo'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    CLASS
       NAME 'Wojewodztwo'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 252 250 244
         COLOR 252 250 244
       END
    END
  END

#######################################################################################################

  LAYER
    NAME 'Area100'
        #group "Zielen"
    TYPE POLYGON
    DATA Area100
    METADATA
      'wms_title' 'Area100'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    MINSCALE 1000000 #włącznie
    MAXSCALE 5000000
    CLASS
       NAME 'Area100'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 203 216 195
         COLOR 203 216 195
       END
     LABEL
      SIZE medium
      COLOR 0 0 0
      ANGLE 0
      BUFFER 1
     END
    END
  END


    LAYER
    NAME 'Zielen'
        #group "Zielen"
    TYPE POLYGON
    DATA Zielen
    METADATA
      'wms_title' 'Zielen'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    MINSCALE 1 #włącznie
    MAXSCALE 1000000
    CLASS
       NAME 'Area100'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 203 216 195
         COLOR 203 216 195
       END
     LABEL
      SIZE medium
      COLOR 0 0 0
      ANGLE 0
      BUFFER 1
     END
    END
  END

#######################################################################################################

  LAYER
    NAME 'obszary'
    MINSCALE 1
    MAXSCALE 200000
    TYPE POLYGON
#    GROUP "Obszary"
    DATA ObszaryGetIn
    STATUS DEFAULT
    TRANSPARENCY 85
    CLASSITEM 'ObjectID'
    CLASS
      NAME '2000'
      EXPRESSION '298'
      STYLE
         SYMBOL 0
         OUTLINECOLOR 100 100 100
         COLOR 245 245 245
         SIZE 20
       END
    END
    CLASS
      NAME '4000'
      EXPRESSION '299'
      STYLE
        SYMBOL 0
         OUTLINECOLOR 100 100 100
         COLOR 225 225 225
         SIZE 6
       END
    END

    CLASS
      NAME '600'
      EXPRESSION '300'
      STYLE
        SYMBOL 0
        OUTLINECOLOR 100 100 100
        COLOR 206 196 186
        SIZE 20
      END
    END
  END


#######################################################################################################

 LAYER
    NAME 'Miejscowosc1'
        #group "Miasta"
    TYPE POLYGON
    DATA Miejscowosc1
    METADATA
      'wms_title' 'Miejscowosc1'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    LABELITEM 'nazwa'
    CLASS
       NAME 'Miejscowosc1'
#       STYLE
#         SYMBOL 0
#         SIZE 6
#         OUTLINECOLOR 222 225 230
#         COLOR 222 225 230
#       END
     LABEL
      POSITION   CC
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 10
      COLOR 10 10 10
      ANGLE 0
      BUFFER 15
      PRIORITY 10
      MINDISTANCE 1000
      PARTIALS FALSE
    END
    END
  END

#######################################################################################################

  LAYER
    NAME 'wody_region'
        #group "Wody"
    TYPE POLYGON
    DATA wody_region
    METADATA
      'wms_title' 'wody_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    CLASS
       NAME 'wody_region'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 168 195 211
         COLOR 168 195 211
       END
    END
  END

#######################################################################################################

  LAYER
    NAME 'Miejscowosc2_point'
        #group "Miasta"
    TYPE POINT
    DATA Miejscowosc2_point
    METADATA
      'wms_title' 'Miejscowosc2_point'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    MINSCALE 1
    MAXSCALE 5000000
    LABELITEM 'NAZWA'
    CLASS
       NAME 'Miejscowosc2_point'
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 2
     END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 9
      COLOR 30 30 30
      ANGLE 0
      BUFFER 1
      PRIORITY 9
      POSITION AUTO
      MINDISTANCE 1000
      PARTIALS FALSE
     END
    END
  END

  LAYER
    NAME 'Miejscowosc2_region'
                #group "Miasta"
    TYPE POLYGON
    DATA Miejscowosc2_region
    METADATA
      'wms_title' 'Miejscowosc2_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    MINSCALE 1
    MAXSCALE 5000000
    LABELITEM 'NAZWA'
    CLASS
       NAME 'Miejscowosc2_region'
#       STYLE
#         SYMBOL 0
#         SIZE 6
#         OUTLINECOLOR 222 225 230
#         COLOR 222 225 230
#       END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 9
      COLOR 30 30 30
      ANGLE 0
      BUFFER 1
      PRIORITY 9
      MINDISTANCE 1000
      PARTIALS FALSE
     END
    END
  END

#######################################################################################################

  LAYER
    NAME 'Miejscowosc3_point'
        #group "Miasta"
    TYPE POINT
    DATA Miejscowosc3_point
    METADATA
      'wms_title' 'Miejscowosc3_point'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    MINSCALE 1
    MAXSCALE 2500000
    LABELITEM 'NAZWA'
    CLASS
       NAME 'Miejscowosc3_point'
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 3
     END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 8
      COLOR 40 40 40
      ANGLE 0
      BUFFER 1
      PRIORITY 6
      POSITION AUTO
      PARTIALS FALSE
     END
    END
  END

  LAYER
    NAME 'Miejscowosc3_region'
                #group "Miasta"
    TYPE POLYGON
    DATA Miejscowosc3_region
    METADATA
      'wms_title' 'Miejscowosc3_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    MINSCALE 1
    MAXSCALE 2500000
    LABELITEM 'NAZWA'
    CLASS
       NAME 'Miejscowosc3_region'
#       STYLE
#         SYMBOL 0
#         SIZE 6
#         OUTLINECOLOR 222 225 230
#         COLOR 222 225 230
#       END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 8
      COLOR 40 40 40
      ANGLE 0
      BUFFER 1
      PRIORITY 6
      POSITION AUTO
      MINDISTANCE 500
      PARTIALS FALSE
     END
    END
  END


#######################################################################################################

  LAYER
    NAME 'Miejscowosc4_point'
        #group "Miasta"
    TYPE POINT
    DATA Miejscowosc4_point
    METADATA
      'wms_title' 'Miejscowosc4_point'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    MINSCALE 1
    MAXSCALE 500000
    LABELITEM 'NAZWA'
    CLASS
       NAME 'Miejscowosc4_point'
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 3
     END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 8
      COLOR 50 50 50
      ANGLE 0
      BUFFER 1
      PRIORITY 3
      POSITION AUTO
      PARTIALS FALSE
     END
    END
  END

  LAYER
    NAME 'Miejscowosc4_region'
        #group "Miasta"
    TYPE POLYGON
    DATA Miejscowosc4_region
    METADATA
      'wms_title' 'Miejscowosc4_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    MINSCALE 1
    MAXSCALE 500000
    LABELITEM 'NAZWA'
    CLASS
       NAME 'Miejscowosc4_region'
#       STYLE
#         SYMBOL 0
#         SIZE 6
#         OUTLINECOLOR 222 225 230
#         COLOR 222 225 230
#       END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 8
      COLOR 50 50 50
      ANGLE 0
      BUFFER 1
      PRIORITY 3
      MINDISTANCE 500
      PARTIALS FALSE
     END
    END
  END


#######################################################################################################

  LAYER
    NAME 'Miejscowosc5_point'
        #group "Miasta"
        TYPE POINT
    DATA Miejscowosc5_point
    METADATA
      'wms_title' 'Miejscowosc5_point'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    MINSCALE 1
    MAXSCALE 500000
    LABELITEM 'NAZWA'
    CLASS
       NAME 'Miejscowosc5_point'
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 5
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 3
     END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 7
      COLOR 60 60 60
      ANGLE 0
      BUFFER 1
      PRIORITY 1
      POSITION LR
      PARTIALS FALSE
     END
    END
  END

  LAYER
    NAME 'Miejscowosc5_region'
        #group "Miasta"
    TYPE POLYGON
    DATA Miejscowosc5_region
    METADATA
      'wms_title' 'Miejscowosc5_region'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    MINSCALE 1
    MAXSCALE 500000
    LABELITEM 'NAZWA'
    CLASS
       NAME 'Miejscowosc5_region'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 222 225 230
         COLOR 222 225 230
       END
     LABEL
      FONT "verdana"
      ENCODING "CP1250"
      TYPE     TRUETYPE
      ANTIALIAS   TRUE
      OUTLINECOLOR 255 255 255
      SIZE 7
      COLOR 60 60 60
      ANGLE 0
      BUFFER 1
      PRIORITY 1
      MINDISTANCE 500
      PARTIALS FALSE
     END
    END
  END




#######################################################################################################

  LAYER
    NAME 'Koleje'
        #group "Drogi i koleje"
    TYPE LINE
    DATA Koleje
    METADATA
      'wms_title' 'Koleje'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    MINSCALE 1000000
    MAXSCALE 100000
    CLASS
       NAME 'Koleje'
       STYLE
         SYMBOL 0
         SIZE 6
         OUTLINECOLOR 126 126 126
         COLOR 0 0 0
       END
    END
  END

#################################################################################################################

  LAYER
    NAME 'Koleje'
        #group "Drogi i koleje"
    TYPE LINE
    DATA Koleje
    METADATA
      'wms_title' 'Koleje'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    MINSCALE 1
    MAXSCALE 100000
    CLASS
       NAME 'Koleje'
       STYLE
        COLOR 102 102 102
        SYMBOL 'point'
        SIZE 4
       END
      STYLE
       COLOR 255 255 255
       SYMBOL 'rectangle-train'
       SIZE 2
      END
    END
  END


#################################################################################################################

  LAYER
    NAME 'DrogiInne'
    LABELITEM NAZWA
    TYPE LINE
    DATA DrogiInne
        METADATA
      'wms_title' 'DrogiInne'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    CLASS
       MINSCALE 40000
       MAXSCALE 1000000
       NAME 'DrogiInne'
       STYLE
         SIZE 20
         COLOR 209 207 202
       END
    END

    CLASS
       MINSCALE 40000
       MAXSCALE 1000000
       NAME 'DrogiInne'
     STYLE
       SYMBOL 'circle'
       COLOR 158 157 153
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 255 255
      SIZE 2
     END
    END

    class
      MINSCALE 15000
      MAXSCALE 40000
      style
        SYMBOL 'circle'
        COLOR 158 157 153
        SIZE 4
        antialias true
      end
      style
        SYMBOL 'circle'
        COLOR 255 255 255
        SIZE 2
        antialias true
      end
      label
        ENCODING "CP1250"
        OUTLINECOLOR 255 255 255
        type truetype
        antialias true
        font verdana
        size 7
        position cc
        angle follow
        color 25 25 25
        buffer 15
        partials false
        mindistance 250
      end
    end
    class
      MINSCALE 7000
      MAXSCALE 15000
      style
        SYMBOL 'circle'
        color  158 157 153
        SIZE 8
        #antialias true
      end
      style
        SYMBOL 'circle'
        color 255 255 255
        SIZE 6
        #antialias true
      end
      label
        ENCODING "CP1250"
        type truetype
        antialias true
        font verdana
        size 8
        position cc
        angle follow
        color 25 25 25
        outlinecolor 255 255 255
        buffer 15
        partials false
        mindistance 250
      end
    end

    class
      MINSCALE 3000
      MAXSCALE 7000
      style
        SYMBOL 'circle'
        color 192 192 192
        SIZE 10
        antialias true
      end
      style
        SYMBOL 'circle'
        color 255 255 255
        SIZE 8
        antialias true
      end
      label
        ENCODING "CP1250"
        type truetype
        antialias true
        font verdana
        size 7
        position cc
        angle follow
        color 25 25 25
        outlinecolor 255 255 255
        buffer 10
        partials false
        mindistance 250
      end
    end


    class
      MINSCALE 1000
      MAXSCALE 3000
      style
        SYMBOL 'circle'
        color 192 192 192
        SIZE 13
        antialias true
      end
      style
        SYMBOL 'circle'
        color 255 255 255
        SIZE 11
        antialias true
      end
      label
        ENCODING "CP1250"
        type truetype
        antialias true
        font verdana
        size 9
        position cc
        angle follow
        color 25 25 25
        outlinecolor 255 255 255
        buffer 10
        partials false
        mindistance 200
      end
    end



  END

#################################################################################################################

  LAYER
    NAME 'DrogiWojewodzkie'
    LABELITEM NAZWA
    TYPE LINE
    DATA DrogiWojewodzkie
    METADATA
      'wms_title' 'DrogiWojewodzkie'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    CLASS
      MINSCALE 1000000
      MAXSCALE 5000000
       NAME 'DrogiWojewodzkie'
       STYLE
         SIZE 20
         COLOR 199 197 192
       END
    END

    CLASS
       MINSCALE 200000
       MAXSCALE 1000000 #wy��cznie
       NAME 'DrogiWojewodzkie'
     STYLE
       SYMBOL 'circle'
       COLOR 158 157 153
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 255 223 151
      SIZE 2
     END
    END


    class
    minscale 40000
    maxscale 200000
      style
        COLOR 158 157 153
        width 6
        antialias true
      end
      style
        COLOR 255 223 151
        width 4
        antialias true
      end
    end


    class
    minscale 15000
    maxscale 40000
      style
        SYMBOL 'circle'
        color 185 174 155
        SIZE 8
        antialias true
      end
      style
        SYMBOL 'circle'
        color 255 255 115
        SIZE 6
        antialias true
      end
      label
        ENCODING "CP1250"
        type truetype
        antialias true
        font verdana
        size 7
        position cc
        angle follow
        color 25 25 25
        #BACKGROUNDSHADOWCOLOR  150 150 150
        OUTLINECOLOR 255 255 255
        buffer 15
        partials false
        mindistance 250
      end
    end


    class
      minscale 7000
      maxscale 15000
      style
        SYMBOL 'circle'
        color 185 174 155
        SIZE 10
        #antialias true
      end
      style
        SYMBOL 'circle'
        color 255 255 115
        SIZE 8
        #antialias true
      end
      label
        ENCODING "CP1250"
        type truetype
        antialias true
        font verdana
        size 8
        position cc
        angle follow
        color 25 25 25
        outlinecolor 255 255 115
        buffer 15
        partials false
        mindistance 250
      end
    end


    class
      MINSCALE 3000
      MAXSCALE 7000
      style
        SYMBOL 'circle'
        color 185 174 155
        SIZE 14
        antialias true
      end
      style
        SYMBOL 'circle'
        color 255 255 115
        SIZE 12
        antialias true
      end
      label
        ENCODING "CP1250"
        type truetype
        antialias true
        font verdana
        size 9
        position cc
        angle follow
        color 25 25 25
        outlinecolor 255 255 115
        buffer 10
        partials false
        mindistance 250
      end
    end

    class
      MINSCALE 1000
      MAXSCALE 3000
      style
        SYMBOL 'circle'
        color 185 174 155
        SIZE 16
        antialias true
      end
      style
        SYMBOL 'circle'
        color 255 255 115
        SIZE 14
        antialias true
      end
      label
        ENCODING "CP1250"
        type truetype
        antialias true
        font verdana
        size 11
        position cc
        angle follow
        color 25 25 25
        outlinecolor 255 255 255
        buffer 10
        partials false
        mindistance 300
      end
    end


  END

#################################################################################################################

 LAYER
    NAME 'DrogiKrajowe'
    LABELITEM NAZWA

    TYPE LINE
    DATA DrogiKrajowe
    METADATA
      'wms_title' 'DrogiKrajowe'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    CLASS
      MINSCALE 200000
      MAXSCALE 5000000
      NAME 'DrogiKrajowe'
     STYLE
       SYMBOL 'circle'
       COLOR 132 131 130
       SIZE 4
     END
     STYLE
      SYMBOL 'circle'
      COLOR 222 60 41
      SIZE 2
     END
    END


    class
    minscale 40000
    maxscale 200000
      style
        SYMBOL 'circle'
        COLOR 132 131 130
        size 5
        antialias true
      end
      style
        SYMBOL 'circle'
        COLOR 222 60 41
        size 3
        antialias true
      end
    end


    class
      minscale 15000
      maxscale 40000
     STYLE
       SYMBOL 'circle'
       COLOR 132 131 130
       SIZE 10
     END
     STYLE
      SYMBOL 'circle'
      COLOR 222 60 41
      SIZE 8
     END
    end

   class
      minscale 7000
      maxscale 15000
      style
        SYMBOL 'circle'
        color 132 131 130
        SIZE 12
        antialias true
      end
      style
        SYMBOL 'circle'        
        color 222 60 41
        SIZE 10
        antialias true
      end
    end


    class
      MINSCALE 3000
      MAXSCALE 7000
      style
        SYMBOL 'circle'
        color 132 131 130
        SIZE 14
        antialias true
      end
      style
        SYMBOL 'circle'
        color 222 60 41
        SIZE 12
        antialias true
      end
    end

    class
      MINSCALE 1000
      MAXSCALE 3000
      style
        SYMBOL 'circle'
        color 132 131 130
        SIZE 16
        antialias true
      end
      style
        SYMBOL 'circle'
        color 222 60 41
        SIZE 14
        antialias true
      end
    end


  END

#################################################################################################################

  LAYER
    NAME 'Wojewodztwo'
        #group "Administracja"
    TYPE LINE
    DATA Wojewodztwo
    METADATA
      'wms_title' 'Wojewodztwo'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    CLASS
       NAME 'Wojewodztwo'
       STYLE
        SYMBOL 'circle'
        COLOR 160 160 160
       SIZE 2
     END
    END
  END


#################################################################################################################

  LAYER
    NAME 'Geocoding_Result'
    MAXSCALE 200000
    GROUP "Bankomaty"
    TYPE POINT
    DATA Geocoding_Result
    METADATA
      'wms_title' 'Geocoding_Result'
      'queryable' 'true'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    CLASS
       NAME 'Geocoding_Result'
       TEMPLATE 'template.html'
       STYLE
         SYMBOL 'getin.gif'
         SIZE 20
         OUTLINECOLOR 0 0 0
         COLOR 150 123 90
       END
    END
  END

  #################################################################################################################

END

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev

TestApp01.png (26K) Download Attachment