[mapserver-users] symbology showing line direction
I'm working in a GeoMoose application and trying to display utility lines with the correct line direction via some arrow character or symbol. I've had no luck so far. I've successfully labeled my lines with a truetype font character by defining the TEXT parameter in the CLASS object. I've also tried a pixelmap symbol definition using a .gif file. Both appear to work at first, but when you compare it to the actual line direction it isn't true in all cases. Has anybody found a way to accomplish this? I would appreciate if you could send me any examples. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] symbology showing line direction
I was hoping it could read ESRI's From and To node structure much like ArcMap, but by the sounds of it that isn't possible. Shapefile geometry is saved in the Shape column, which I'm guessing is useless in Mapserver. What you're saying is I need to create an attribute and populate it with the angle of the line and use that to define my label direction? Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -Original Message- From: G. Allegri [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 8:57 AM To: Adam Feidt Cc: Fawcett, David; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] symbology showing line direction A question: how can you derive a line direction by a shp without having an appropriate attribute? Giovanni 2008/2/29, Adam Feidt [EMAIL PROTECTED]: David, Below is my Layer definition. I've tried a truetype symbol and label with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out actual shapefile line direction. I'm reading an ESRI shapefile so there is no specific column for line direction. LAYER NAME 'Utilities Sanitary Lines' DATA './UtilitiesSanitaryLines.shp' TYPE LINE STATUS DEFAULT CLASSITEM Function CLASS NAME 'Main' EXPRESSION STYLE COLOR 85 255 0 SYMBOL plainline SIZE 2 END END # end class CLASS NAME 'Low Pressure' EXPRESSION Low Pressure STYLE COLOR 255 85 0 SYMBOL plainline SIZE 2 END END # end class CLASS NAME 'Sub Trunk' EXPRESSION Sub Trunk STYLE COLOR 85 255 0 SYMBOL plainline SIZE 2 END END # end class CLASS NAME 'Trunk' EXPRESSION Trunk STYLE COLOR 112 168 0 SYMBOL plainline SIZE 2 END END # end class CLASS NAME 'Force Main' EXPRESSION forcemain STYLE COLOR 255 170 0 SYMBOL 'dashed1' SIZE 2 END END # end class CLASS NAME 'Private' EXPRESSION private STYLE COLOR 161 33 240 SYMBOL 'plainline' SIZE 2 END END # end class END #end layer Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 From: Fawcett, David [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 8:19 AM To: Adam Feidt; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] symbology showing line direction Adam, What does your layer definition, with the classes look like? Does your data have the direction column properly populated for all records? David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Feidt Sent: Friday, February 29, 2008 8:14 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] symbology showing line direction I'm working in a GeoMoose application and trying to display utility lines with the correct line direction via some arrow character or symbol. I've had no luck so far. I've successfully labeled my lines with a truetype font character by defining the TEXT parameter in the CLASS object. I've also tried a pixelmap symbol definition using a .gif file. Both appear to work at first, but when you compare it to the actual line direction it isn't true in all cases. Has anybody found a way to accomplish this? I would appreciate if you could send me any examples. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 ___ 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] symbology showing line direction
Yes it does work. The negative GAP value seems to be the solution. I did not compare it extensively, but the areas I checked do appear correct. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -Original Message- From: G. Allegri [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 11:49 AM To: Fawcett, David Cc: Adam Feidt; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] symbology showing line direction David, I had your opinion too, but Adam seems to have solved it. Adam, do you confirm that you can display correctly directions? 2008/2/29, Fawcett, David [EMAIL PROTECTED]: Adam, I am quite sure that MapServer is not going to read the line topology. To display direction, you will need to add an attribute for flow direction and populate it. You would then use an expression for each class that combined both the pipe type and the direction. (Maybe use -1 and 1 for values?) Something like ('[FUNCTION]' = 'Main' AND [DIRECTION] = -1) I haven't tested this. Note the difference in quoting for string fields vs number fields. David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Feidt Sent: Friday, February 29, 2008 8:43 AM To: Fawcett, David; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] symbology showing line direction David, Below is my Layer definition. I've tried a truetype symbol and label with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out actual shapefile line direction. I'm reading an ESRI shapefile so there is no specific column for line direction. LAYER NAME 'Utilities Sanitary Lines' DATA './UtilitiesSanitaryLines.shp' TYPE LINE STATUS DEFAULT CLASSITEM Function CLASS NAME 'Main' EXPRESSION STYLE COLOR 85 255 0 SYMBOL plainline SIZE 2 END END # end class CLASS NAME 'Low Pressure' EXPRESSION Low Pressure STYLE COLOR 255 85 0 SYMBOL plainline SIZE 2 END END # end class CLASS NAME 'Sub Trunk' EXPRESSION Sub Trunk STYLE COLOR 85 255 0 SYMBOL plainline SIZE 2 END END # end class CLASS NAME 'Trunk' EXPRESSION Trunk STYLE COLOR 112 168 0 SYMBOL plainline SIZE 2 END END # end class CLASS NAME 'Force Main' EXPRESSION forcemain STYLE COLOR 255 170 0 SYMBOL 'dashed1' SIZE 2 END END # end class CLASS NAME 'Private' EXPRESSION private STYLE COLOR 161 33 240 SYMBOL 'plainline' SIZE 2 END END # end class END #end layer Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 From: Fawcett, David [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 8:19 AM To: Adam Feidt; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] symbology showing line direction Adam, What does your layer definition, with the classes look like? Does your data have the direction column properly populated for all records? David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Feidt Sent: Friday, February 29, 2008 8:14 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] symbology showing line direction I'm working in a GeoMoose application and trying to display utility lines with the correct line direction via some arrow character or symbol. I've had no luck so far. I've successfully labeled my lines with a truetype font character by defining the TEXT parameter in the CLASS object. I've also tried a pixelmap symbol definition using a .gif file. Both appear to work at first, but when you compare it to the actual line direction it isn't true in all cases. Has anybody found a way to accomplish this? I would appreciate if you could send me any examples. Adam M. Feidt