ThinkGeo.com    |     Documentation    |     Premium Support

Railroad pattern?

How would I implement this type of hatch pattern or line pattern ? Thanks.



Nelson, 
  
   When you mentioned rail roads I know I just saw a post talking about it.  To get the effect you only need one line of code, see below.  It sets the line style, there is also a picture of what it will look like at the link below.  It is fairly simple since we have a built in style specifically it. 
  
 MyLineBasedShapeFile.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.Railway1 
  
 Post with Picture: 
  
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5060/afv/topic/Default.aspx 
  
 I hope this helps! 
  
 David

Nelson, 
  
   One more thing I forgot to add.  You notice there is an object called LineStyles?  This houses a bunch of predefined styles.  There are also AreaStyles, PointStyles and TextStyles objects as well.  To get an idea of what they look like we have a web page that shows each style in our library.  Take a look and make suggestions if there are styles we don’t have that you think we should. 
  
 gis.thinkgeo.com/Support/APIDocumentation/GeoStyleReferenceGuide/tabid/205/Default.aspx 
  
 David

I had actually come across this not too long after the post and hadn’t updated the post accordingly. Thanks, Dave.

It’s always our pleasure:) Just let us know if we can make your coding easier, Nelson.