[Xastir] Dbfawk reload
Tom Russo
russo at bogodyn.org
Sat Dec 25 18:13:08 EST 2004
On Sat, Dec 25, 2004 at 02:00:05PM -0700, we recorded a bogon-computron collision of the <jewen at shaw.ca> flavor, containing:
> Is there a way to make Xastir reload the .dbfawk rules for maps?
>
> I am trying to get the .dbfawk rules set up the way I like for the
> shapefiles for Alberta. I make changes, and then have to shutdown and
> restart Xastir. At least that's the only way I know of getting the changes
> to appear. Is there another way?
At the moment, the "signature"-based dbfawk files are loaded only once at
the time xastir starts up, and are not reloaded ever again. Alan once talked
about changing that, perhaps by allowing them to be flushed en masse if one
were to reindex maps, or on command, but neither he nor anyone else ever did.
Per-file dbfawk files are read in every time, compiled, and executed every
time the associated map is displayed.
So if you're doing tons of development on a dbfawk file, don't put it in
/usr/local/share/xastir/config, just give it the same base name as the shape
file you're working on and a ".dbfawk" extension, and put it in the same
directory as the shapefile. You can then edit it and have its effects
visible just by going into the map chooser and clicking "ok" to redraw the
display. Only when you're done editing your dbfawk file and want to set it
in stone should you move it to the config directory and let it be used as
a per-signature file.
Not the best solution, but certainly a viable work-around.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1 http://www.qsl.net/~km5vy/
"When life gives you lemons, find someone with a paper cut."
More information about the Xastir
mailing list