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 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