|
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. |
|
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: [hidden email] [mailto:[hidden email]] On Behalf Of StevenHin Sent: Thursday, June 07, 2012 8:36 PM To: [hidden email] 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users |
|
In reply to this post by StevenHin
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: [hidden email] [mailto:[hidden email]] On Behalf Of Lime, Steve D (DNR) Sent: Monday, June 11, 2012 10:05 AM To: StevenHin; [hidden email] 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: [hidden email] [mailto:[hidden email]] On Behalf Of StevenHin Sent: Thursday, June 07, 2012 8:36 PM To: [hidden email] 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users |
|
In reply to this post by StevenHin
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. |
|
Issues are created via Github, see:
https://github.com/mapserver/mapserver/issues Steve ________________________________________ From: [hidden email] [[hidden email]] on behalf of StevenHin [[hidden email]] Sent: Monday, June 11, 2012 12:32 PM To: [hidden email] 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users |
|
In reply to this post by ianwalberg
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: [hidden email] [mailto:[hidden email]] On Behalf Of Ian Walberg Sent: Monday, June 11, 2012 10:07 AM To: Lime, Steve D (DNR); StevenHin; [hidden email] 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: [hidden email] [mailto:[hidden email]] On Behalf Of Lime, Steve D (DNR) Sent: Monday, June 11, 2012 10:05 AM To: StevenHin; [hidden email] 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: [hidden email] [mailto:[hidden email]] On Behalf Of StevenHin Sent: Thursday, June 07, 2012 8:36 PM To: [hidden email] 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users |
|
In reply to this post by StevenHin
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. |
| Powered by Nabble | Edit this page |
