[Xastir] Since we are talking about dbfawk...an issue

Lee Bengston lee.bengston at gmail.com
Tue Apr 21 23:25:23 EDT 2009


On 4/21/09, Tom Russo <russo at bogodyn.org> wrote:
> On Tue, Apr 21, 2009 at 09:49:50PM -0500, we recorded a bogon-computron
> collision of the <r.polivka at sbcglobal.net> flavor, containing:
>> How do I go about ignoring the display of a particular feature?
>>
>> I don't want the "x" displayed at the end of cul-de-sac's (MTFCC code
>> C3061).
>>
>> What is the structure of the line to accomplish this? I am getting
>> nowhere.
>
> Two ways to do it:
>
> If the majority of features in the shapefile are features you want to
> display,
> set display_level to something reasonable in BEGIN_RECORD, and set it to 0
> for features you don't want.  So in pointlm.dbfawk, if most features are
> features you want displayed, leave display_level where it is in
> BEGIN_RECORD,
> and add a dbfawk rule:
>
> /MTFCC=C3061/ {display_level=0; next;}
>
> Make sure that no earlier rule matches such a record first.  For example, if
> you have
> /MTFCC=C3/ {display_level=512; next;}
> (which you do), then you must put the C3061 rule earlier in the file so that
> only those MTFCC=C3... that aren't C3061 get caught by the less specific
> rule.

Perfect - I added
/MTFCC=C3061/ {display_level=0; next;}
to the file ahead of the other aforementioned rule, and no more red
X's at the dead ends.  Thanks, Tom, you really led the horse right to
the water on that one.

Lee - K5DAT
Murphy, TX



More information about the Xastir mailing list