[mapserver-users] Union layer: How to use the additional attributes?

Erick erik.guldberg at kartverket.no
Fri Sep 21 01:49:18 PDT 2012


Hello,
I’m trying to create classes in a Union layer, where I specify the source
layers by using the “Combine:SourceLayerName”-attribute in EXPRESSIONs. The
log file tells me that the “column "Combine:SourceLayerName" does not
exist”. Can  somebody please tell me what I’m doing wrong?

LAYER
  NAME “Unionlayer”
  TYPE POLYGON
  STATUS ON
  DUMP TRUE
  CONNECTIONTYPE UNION
  CONNECTION " sourcelayer1, sourcelayer2"
  #PROCESSING "ITEMS=makshoyde "
  DEBUG 5
  #STYLEITEM "AUTO"
   METADATA
         'wms_title' 'Unionlayer'
         #'wms_group_title' ''
         #'ows_extent' '-18.6663036346 55.9362335205 49.8427810669
80.2292480469'
         "ows_extent" "-127998 6377917 1145513 7976805"
         'ows_include_items' 'ALL'
         'gml_include_items' 'ALL'
        'gml_featureid' 'id'
      END

  CLASS
           NAME "2"
        EXPRESSION ([Combine:SourceLayerName] = “sourcelayer1”)
        MINSCALE 1300000
         STYLE
            COLOR 0 0 204
            #OUTLINECOLOR 110 100 100
         END
  END
CLASS
           NAME "2"
        EXPRESSION ([Combine:SourceLayerName] = “sourcelayer2”)
        MAXSCALE 1300000 
         STYLE
            COLOR 0 0 204
            #OUTLINECOLOR 110 100 100
         END
  END

  PROJECTION
    "init=epsg:32632"
  END

END

Regards,
Erik




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Union-layer-How-to-use-the-additional-attributes-tp5003479.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list