[mapserver-users] draw order of .shp file arcs

Stepan Kafka stepan.kafka at centrum.cz
Fri Jun 21 10:13:18 EDT 2002


The shapes are drawn in the order which they have in the shapefile (or other
source). To get right drawing order you have to

- preprocess your shapefile with shpsort

OR

- divide your layer into more layers (filtered by FILTER/FILTERITEM). The
order of this layers in mapfile ensures right order in the map. But each
layer will read entire dataset again.

Stepan Kafka

> -----Pùvodní zpráva-----
> Od: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu]za uživatele Ryan, Adam
> Odesláno: 20. èervna 2002 21:05
> Komu: mapserver-users at lists.gis.umn.edu
> Pøedmìt: [mapserver-users] draw order of .shp file arcs
>
>
>
> OK, here's a good one for the list...
>
> I have a taxlot layer where almost all features are adjacent to other
> features (shared arcs).
>
> I have three different classes:
>
> One selected lot outlined red, size 3.
> Several selected lots outlined blue, size 2.
> The rest of the lots outlined black, size 1.
>
> See the portion of my map file below.
>
> See the attached image file for what I get.
>  <<the_img.gif>>
> It seems like the arcs are drawn in the order they appear in the .shp file
> rather than whole polygons according to the class order.
>
> Any suggestions on how to make the red, selected lot, come out ENTIRELY on
> top and not partially hidden by the blue, secondary lots?
>
>
>   LAYER
>     NAME taxlots
>     DATA "\webmap\data\shpfiles\taxlots"
>     STATUS ON
>     TYPE POLYGON
>     CLASSITEM TAXLOTS_
>
>     CLASS
>       NAME "selected_feature"
>       OUTLINECOLOR 125 125 0
>       TEMPLATE "\webmap\GIS7\GIS7_nq_temp.htm"
>       EXPRESSION /8131/
>       SIZE 3
>       SYMBOL regular
>       OUTLINECOLOR 255 74 74
>     END
>
>     CLASS
>       NAME "selected_list"
>       OUTLINECOLOR 125 125 0
>       TEMPLATE "\webmap\GIS7\GIS7_nq_temp.htm"
>       EXPRESSION /8208|8233|8259/
>       SIZE 2
>       SYMBOL regular
>       OUTLINECOLOR 73 96 199
>     END
>
>     CLASS
>       NAME "taxlots"
>       OUTLINECOLOR 100 100 100
>       TEMPLATE "\webmap\GIS7\GIS7_nq_temp.htm"
>       EXPRESSION /./
>       SIZE 1
>       SYMBOL regular
>     END
>
> END
>




More information about the mapserver-users mailing list