RE: [mapserver-users] mapserv 5.6 -> 6.0 label symbol change
I can verify the code in 6.0 that let's this happen- it's deliberate (in msDrawLabelCache()). I have to do some more digging to understand the rationale. At first glance I prefer the 5.6 behavior as well. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Richard Greenwood [richard.greenw...@gmail.com] Sent: Saturday, January 07, 2012 5:51 PM To: mapserver Subject: [mapserver-users] mapserv 5.6 -> 6.0 label symbol change I have an annotation layer with a class definition that puts a highway shield behind the highway number. In mapserver 5.6 if the number value is an empty string no shield symbol is drawn, but in 6.0 the shield is drawn. The data is coming from a shapefile. Two images are attached that illustrate the issue. The class definition is below. In my case the 5.6 behavior is preferable. So is this change deliberate, or a bug, or is my class definition incorrect for 6.0? CLASS STYLE SYMBOL 'wyhwy' SIZE 16 END LABEL TYPE truetype FONT arial SIZE 8 COLOR 0 0 0 END END Thanks, Rich -- Richard Greenwood richard.greenw...@gmail.com www.greenwoodmap.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] .NET SWIG Mapscript - Bug or Doc issue
Looking at mapserver.h the opacity attribute of a styleObj is exposed via SWIG. So it should be mutable, so there's a documentation problem. You can read the mapfile, change the value and save the mapfile as a quick test. Can you try another language? Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Stephen Woodbridge [wood...@swoodbridge.com] Sent: Friday, January 06, 2012 6:43 PM To: mapserver-users Subject: [mapserver-users] .NET SWIG Mapscript - Bug or Doc issue Hi all, The mapfile STYLE block[1] has OPACITY [integer|attribute] but I do not see this attribute listed in the SWIG mapscript [2] styleObj Attributes list. And I have a report that when trying to use this via .NET mapscript that it does not seem to work. layerObj opacity seems to work just fine. So, is this: a. a code bug or oversight in the SWIG wrappers b. something specific to .NET code c. a documentation bug d. something else all together I'm happy to create appropriate bugs as needed. [1] http://mapserver.org/mapfile/style.html [2] http://mapserver.org/mapscript/mapscript.html#styleobj Thanks, -Steve W ___ 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] mod_mapcache creating arcgis hex based folder structure
Is it possible to generate arcgis's hex based folder structure using mod_mapcache? http://blogs.esri.com/Support/blogs/mappingcenter/archive/2010/08/20/Checking-Your-Local-Cache-Folders.aspx Regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapserv 5.6 -> 6.0 label symbol change
Steve, The 5.6 behavior was more user friendly, but the work around is simple enough that I don't think the issue deserves much attention. I put a FILTER on the label field and got back to where I wanted to be. LABELITEM "NUMBER" FILTER ([NUMBER]) As always, thanks for your knowledge and insight. Rich On Tue, Jan 10, 2012 at 8:30 AM, Lime, Steve D (DNR) wrote: > I can verify the code in 6.0 that let's this happen- it's deliberate (in > msDrawLabelCache()). I have to do some more > digging to understand the rationale. At first glance I prefer the 5.6 > behavior as well. > > Steve > > > From: mapserver-users-boun...@lists.osgeo.org > [mapserver-users-boun...@lists.osgeo.org] on behalf of Richard Greenwood > [richard.greenw...@gmail.com] > Sent: Saturday, January 07, 2012 5:51 PM > To: mapserver > Subject: [mapserver-users] mapserv 5.6 -> 6.0 label symbol change > > I have an annotation layer with a class definition that puts a highway > shield behind the highway number. In mapserver 5.6 if the number value > is an empty string no shield symbol is drawn, but in 6.0 the shield is > drawn. The data is coming from a shapefile. Two images are attached > that illustrate the issue. The class definition is below. In my case > the 5.6 behavior is preferable. So is this change deliberate, or a > bug, or is my class definition incorrect for 6.0? > > CLASS > STYLE > SYMBOL 'wyhwy' > SIZE 16 > END > LABEL > TYPE truetype > FONT arial > SIZE 8 > COLOR 0 0 0 > END > END > > Thanks, > Rich > > -- > Richard Greenwood > richard.greenw...@gmail.com > www.greenwoodmap.com > -- Richard Greenwood richard.greenw...@gmail.com www.greenwoodmap.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] layerObj.setFilter parser error
If I use layerObj.setFilter ( "(point.id = 1)" ), mapObj.OWSDispatch gives an error: "msTokenizeExpression(): Expression parser error. Parsing time value failed. msParseTime(): Regular expression error. Unrecognized date or time format ()." It works correctly with layerObj.setFilter ( "( id = 1)" ) or layerObj.setFilter ( "point.id = 1" ). FILTER "( point.id = 1 )" in mapfile also works. This is of course only a simple example, I need both fully qualified column name and parenthesis. It seems to be a bug. Do you know any simple trick, how to get it working for a presentation tomorrow morning? Version 6.0.1. Thanks Radim ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] performance question - labeling roads with shields
Hello, On my Application I currently am using two layers to draw my roads. The first one is a line layer that draws the road itself. The second is a annotation layer that draws the labels and the road shields. Both layers have the same source dataset. My concern is that my application is taking a performance hit since the road file is being read twice. If there is a performance hit by reading the same data file twice, is there a way combine the line layer and annotation layer into a single layer that has both the road symbology, and labels that have shields? Layer Roads ... DATA MyRoads TYPE LINE CLASS NAME 'State Highway' EXPRESSION "A20" STYLE COLOR 0 0 0 SYMBOL 'plainline' SIZE 5 END #style STYLE SYMBOL 'plainline' SIZE 1 COLOR 255 0 0 END #style END #class ... END #LAYER Layer RoadLabels ... Data MyRoads TYPE ANNOTATION CLASS TEXT ([ROADNUM]) EXPRESSION 'A20' SYMBOL './symbols/STHWY.png' LABEL type truetype # AGG required size 7 #for AGG ANTIALIAS TRUE FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 COLOR 254 254 254 END #LABEL END #CLASS END #Layers Thank You Mark Volz GIS Specialist ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: performance question - labeling roads with shields
Hi Mark: With the changes in label styles in 6.0 you should be able to combine the layers, for example: LAYER NAME 'major_roads' ... CLASS NAME 'Interstates' STYLE # orange lines with a brownish outline WIDTH 4 MAXWIDTH 8 MINWIDTH 4 COLOR 242 191 36 OUTLINECOLOR 187 176 157 OUTLINEWIDTH 1 END LABEL TYPE TRUETYPE SIZE 7 ... STYLE SYMBOL 'interstate_shield.png' END END END END That should be all there is to it- all in one pass. Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Volz Sent: Tuesday, January 10, 2012 1:37 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] performance question - labeling roads with shields Hello, On my Application I currently am using two layers to draw my roads. The first one is a line layer that draws the road itself. The second is a annotation layer that draws the labels and the road shields. Both layers have the same source dataset. My concern is that my application is taking a performance hit since the road file is being read twice. If there is a performance hit by reading the same data file twice, is there a way combine the line layer and annotation layer into a single layer that has both the road symbology, and labels that have shields? Layer Roads ... DATA MyRoads TYPE LINE CLASS NAME 'State Highway' EXPRESSION "A20" STYLE COLOR 0 0 0 SYMBOL 'plainline' SIZE 5 END #style STYLE SYMBOL 'plainline' SIZE 1 COLOR 255 0 0 END #style END #class ... END #LAYER Layer RoadLabels ... Data MyRoads TYPE ANNOTATION CLASS TEXT ([ROADNUM]) EXPRESSION 'A20' SYMBOL './symbols/STHWY.png' LABEL type truetype # AGG required size 7 #for AGG ANTIALIAS TRUE FONT vera_sans #for AGG MINFEATURESIZE 25 MINDISTANCE 200 COLOR 254 254 254 END #LABEL END #CLASS END #Layers Thank You Mark Volz GIS Specialist ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Edward McNierney mentioned in Ars-Technica
Of no surprise to long time members of this list, Edward McNierney is still busy... http://arstechnica.com/gadgets/news/2012/01/charging-by-crank-bicycle-waterwheel-hands-on-with-the-olpc-xo-30-tablet.ars -- Richard Greenwood richard.greenw...@gmail.com www.greenwoodmap.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users