[Xastir] dbfawk files on OSX
Tom Russo
russo at bogodyn.org
Sun Mar 20 19:27:57 EST 2005
On Sun, Mar 20, 2005 at 12:47:40PM -0500, we recorded a bogon-computron collision of the <va2ksh at rac.ca> flavor, containing:
> Hi Tom and to the rest of the list,
>
> Interesting, very intersting as the saying goes. Thanks for showing me
> the testawk command, I didn't even know it existed. Well, the output
> of testawk shows name, key, symbol, color, lanes, filled,
> pattern=-1073742784 (for every row), display_level, font_size and
> label_level but not a single line has label_color.
>
> with the dbfawk file sent earlier.
Grumble. Looks like testawk was never updated to print out label_color. Must
have been one of those variables that got added late in the game.
Look at testawk.c down around line 227 --- add a printf to output label_color.
Then try again.
Now why every line has pattern=-1073742784 is a mystery, but it's probably
because you don't initialize it in your BEGIN_RECORD block, and testawk
doesn't initialize it either. This is a flaw in testawk. Unlike testawk,
though, draw_shapefile_map in xastir explicitly initializes all dbfawk
variables to something sane, so that's not the problem.
Are the display level, font size, and label level you set in your dbfawk file
the same as the ones that testawk shows?
> On Mar 20, 2005, at 08:10, Tom Russo wrote:
> >Ok, that narrows it down a lot.
> >
> >Please try running "testawk" (it's created in the src directory when
> >you build
> >xastir, but not installed into /usr/local/bin when you type "make
> >install").
> >
> > testawk -D <directory containing your dbfawk file> -d <your dbf
> >file>
> >
> >Testawk should tell you that the dbf signature in the dbfawk file
> >matches
> >your dbf file, and should show what dbfawk is doing for each record in
> >the
> >dbf file.
> >
> >If testawk shows that your dbfawk file is doing the right thing to
> >each record
> >then you can move on to figuring out why xastir isn't changing the
> >colors of
> >the labels. Try running xastir with debug level 16 and displaying
> >just your
> >one map (if you display more than that there's too much output). You
> >should
> >see output that says "dbfawk parse of structure" followed by a bunch of
> >variable assignments. If the label_color variable is *still* correct,
> >but the
> >display shows black labels, then I dunno what's up --- I use
> >label_color
> >to set label colors all the time and at least in my cases the thing
> >works.
> >We'll have to dig deeper if you get to this point and still can't get
> >the
> >color working.
> >
> >--
> >Tom Russo KM5VY SAR502 DM64ux
> >http://www.swcp.com/~russo/
> >Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1
> > "The only thing you can do easily is be wrong, and that's hardly
> > worth the effort." -- Norton Juster
> >
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1
"The only thing you can do easily is be wrong, and that's hardly
worth the effort." -- Norton Juster
More information about the Xastir
mailing list