About ordering of layers.

Bob Basques bob.basques at CI.STPAUL.MN.US
Mon Sep 20 11:42:55 EDT 2004


All,

It seems that the LAYERs are interpreted in the MAP file from the top
down for processing.

I've managed to get the grouping of LAYERS to work for IMAGEMAPs as
well.  It looks like the process reads from the bottom to the top though
for the IMAGEMAP generation when more than one definition is available.

This for example produces the correct IMAGEMAP (notice the order of the
commented out TEMPLATE parameters):

  LAYER
    NAME 'monuments-cogo'
    DATA
'/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_09/COGO/Monuments-cogo'
    GROUP 'monuments'
    STATUS DEFAULT
    TYPE POINT
    LABELITEM 'OLD'
    ##LABELITEM 'COGO'
    CLASS
      OUTLINECOLOR 0 0 0
      LABEL
        FORCE TRUE
        COLOR 255 200 200
        OUTLINECOLOR 0 0 0
        SIZE LARGE
        WRAP ' '
      END
    END
    ##HEADER   '../../imagemap/monuments_header.html'
    TEMPLATE '../../imagemap/monuments_record.html'
    FOOTER   '../../imagemap/monuments_footer.html'
  END

  LAYER
    NAME 'monuments-nocogo'
    DATA
'/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_09/NOCOGO/Monuments-nocogo'
    GROUP 'monuments'
    STATUS DEFAULT
    TYPE POINT
    LABELITEM 'OLD'
    ##LABELITEM 'COGO'
    CLASS
      OUTLINECOLOR 0 0 0
      LABEL
        FORCE TRUE
        COLOR 200 200 255
        OUTLINECOLOR 0 0 0
        SIZE LARGE
        WRAP ' '
      END
    END
    HEADER   '../../imagemap/monuments_header.html'
    TEMPLATE '../../imagemap/monuments-nocogo_record.html'
    ##FOOTER   '../../imagemap/monuments_footer.html'
  END

Is this normal operation?   Is there some ordering directive someplace
that can be inserted to dictate at what point a  LAYER is drawn?

Thanks  bobb



More information about the mapserver-users mailing list