displaying styles

boice tomlin boice at RUNSKIP.COM
Thu Sep 15 14:39:17 EDT 2005


Hello,

I need help displaying a layer with a style.  I can display the layer  
with a solid fill color.  But when I try to display it with a hatch  
style it doesn't show up.

Any advice is much appreciated.

Here is my symbol definition and the layer in question.

     SYMBOL
         NAME 'hatch_style'
         TYPE HATCH
     END

     LAYER
         NAME "county_layer"
         DATA county_NatAtlas_US
         STATUS ON
         TYPE POLYGON
         TRANSPARENCY 100
         CLASS
             NAME "complete_hatch"
             STYLE
                 SYMBOL 'hatch_style'
                 COLOR 255 0 0
                 ANGLE 45
                 SIZE 6
                 WIDTH 3
             END
         END
     END

             $lyr = $this->map->getLayerByName("county_layer");
             $lyr->set('classitem','FIPS');

             $cla = $lyr->getclass('0');
             $cla->setExpression($county_id);











////////////////////////////
Run Skip

boice tomlin

boice at runskip.com

503-528-6204



More information about the mapserver-users mailing list