Re: [mapserver-users] MapFile ClassItem Expression on in-line features
Hi Steve, I have created a ticket for this issue and the number is #4341 in GitHub. Here is the link: https://github.com/mapserver/mapserver/issues/4341. Regards, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849p4980805.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
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-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of StevenHin Sent: Thursday, June 07, 2012 8:36 PM To: mapserver-users@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-line-features-tp4979849.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapFile ClassItem Expression on in-line features
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-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Monday, June 11, 2012 10:05 AM To: StevenHin; mapserver-users@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-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of StevenHin Sent: Thursday, June 07, 2012 8:36 PM To: mapserver-users@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapFile ClassItem Expression on in-line features
Hi Steve, I am a newbie here, could you point some directions where I can create a trouble ticket? Thanks for looking into this issue. Regards, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849p4980525.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapFile ClassItem Expression on in-line features
Issues are created via Github, see: https://github.com/mapserver/mapserver/issues Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of StevenHin [steven_...@golder.com] Sent: Monday, June 11, 2012 12:32 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MapFile ClassItem Expression on in-line features Hi Steve, I am a newbie here, could you point some directions where I can create a trouble ticket? Thanks for looking into this issue. Regards, Steven. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapFile-ClassItem-Expression-on-in-line-features-tp4979849p4980525.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users