[mapserver-users] MapFile ClassItem Expression on in-linefeatures

Ian Walberg ian.walberg at airborne.aero
Mon Jun 11 19:56:44 PDT 2012


Steve,

Oops, looks like I volunteered to raise an issue for someone else's
problem.

Need to pay attention, I thought you were replying to mine.

Regards

Ian

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian
Walberg
Sent: Monday, June 11, 2012 10:07 AM
To: Lime, Steve D (DNR); StevenHin; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] MapFile ClassItem Expression on
in-linefeatures

Steve,

Happy to raise a ticket.

We are also happy to investigate a bit deeper if anyone can point us in
the right direction.

Regards

Ian

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime,
Steve D (DNR)
Sent: Monday, June 11, 2012 10:05 AM
To: StevenHin; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] MapFile ClassItem Expression on in-line
features

I can replicate the behavior locally. Seems like a bug to me... Will
investigate. Could I trouble you to create a ticket?

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of StevenHin
Sent: Thursday, June 07, 2012 8:36 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] MapFile ClassItem Expression on in-line
features

Hi,

Hoping someone can help out here...

I am trying to configure MapFile that would generate an image based on
the attributes setting, but could not get it creates correctly. 

What I am trying to do is when the 'color' attribute value is 1 then
render a star symbol and when is 0 then render a circle. It works when I
am reading the data from a shapfile, but it does not when using in-line.


Is there something I have to add here for in-line feature set?

Here is my MapFile:

MAP
  NAME "myMap"
  STATUS ON
  UNITS METERS

  SYMBOL
    NAME "circle"
    TYPE ELLIPSE
    FILLED TRUE
    POINTS
      1 1
    END
  END

  SYMBOL
    NAME "star"
    TYPE VECTOR
    FILLED TRUE
    POINTS
      0 0.375
      0.35 0.375
      0.5 0
      0.65 0.375
      1 0.375
      0.75 0.625
      0.875 1
      0.5 0.75
      0.125 1
      0.25 0.625
    END
  END

  LAYER
    NAME "myLayer"
    TYPE POINT
    PROCESSING "ITEMS=layer,pid,color"
    STATUS ON
    #CLASSITEM "color"
    FEATURE
      POINTS
         123 123
      END
      ITEMS "address;123;0"
    END
    FEATURE
      POINTS
        125 125
      END
      ITEMS "address;125;1"
    END

    CLASS
      EXPRESSION ('[color]' == '1')
      STYLE
        ANGLE 0
        COLOR 250 0 0
        OFFSET 0 0
        OUTLINECOLOR 255 255 255
        SIZE 10
        SYMBOL "star"
      END
    END
    CLASS
      EXPRESSION ('[color]' == '0')
      STYLE
        ANGLE 0
        COLOR 0 0 250
        OFFSET 0 0
        OUTLINECOLOR 255 255 255
        SIZE 10
        SYMBOL "circle"
      END
    END
  END
END

Thanks,

Steven.


--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-l
ine-features-tp4979849.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list