2

I am working on a basemap project for pedestrians map for that I have a feature class for crosswalks (zebra crossing) as a polygon feature and I want a symbology of black white line as zebra crossing the problem is that if I am using a hatch line it is not working properly because the lines are oriented by screen not by the angle of polygons.

Is there is any way so that the symbology comes by angle of polygons?

1 Answer 1

3

One way to do this is to run the geoprocessing funcion Minimum Bounding Geometry with your polygon layer as the input. If the checkbox for geometry characteristics is on, the output layer will have a field called MBG_Orientation. You can use that field to determine the angle of hatching in the symbol for the zebra crossings. enter image description here

Add a hatched symbology, click on the symbol to edit it and adjust the parameters as shown here: enter image description here

Enter this expression: enter image description here

Then you should get something like this: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.