[Xastir] more dbfawk problems

Curt, WE7U archer at eskimo.com
Wed Jan 5 18:16:35 EST 2005


On Sun, 2 Jan 2005, Jason Winningham wrote:

> I'm working on a dbfawk for the roads shapefile from NOAA, and it's not
> doing what I want.
>
> some roads have lengthy names, like "US 72, US 231, US 431, SR 1, SR 2"
> or "I- 20, I- 59, US 11, SR 5, SR 7".  I'm trying to use just the text
> before the first comma and ignore the rest, so the map isn't so
> cluttered. Here's the guts of the file:
>
> /^FEATURE=Limited Access Highway/ { lanes=3; color=4; label_level=2048;
> font_size=3}
> /^ROUTE=[ ]*([^,]*).*$/ {name="$1";next}
> /^ROUTE=[ ]*(.*)$/ {name="$1"}
>
> Usually what happens is that I don't get any text for labels that
> should match the /^ROUTE=([^,]*).*$/ rule. Oddly enough, if I use a
> rule like this
>
> /^ROUTE=([ ]*)([^,]*)(.*)$/ {name="$1:$2:$3";next}
>
> I see something like " :US 72:, SR 20". which seems to indicate that my
> regexp syntax is OK, but maybe dbfawk isn't doing what I want with it.
> I have also tried it like /^ROUTE=([ ]*)([^,]*)(.*)$/ {name="$2";next}
> which gives me the same incorrect results.
>
> help?

Tom, did you see this one?  Any ideas?

Jason, did you find a solution already?

--
Curt, WE7U.   APRS Client Comparisons: http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list