On 4/20/09, Keith Kaiser <[email protected]> wrote: > Well yes your Saturday instructions were pretty good and I used them > for the most part to try one county. The problem is I'm far more > likely to download an entire state because my primary Xastir usage is > for high altitude balloon tracking. So for example I downloaded the > entire state(s) of Kansas and Missouri, I put them in /usr/local/share/ > xastir/maps/tiger2008/kansas and of course missouri. > Do I now need to go into each and every county within each state and > run the vi edit (vi works fine in Mac btw)? Or do I just need to run > it once at the tiger2008 level? I'm learning more and more about the > workings of Unix but I have a ways to go so I don't know where exactly > to do this edit. > > vi ~/.xastir/config/map_index.sys > :g/tabblock/s/01000/00995/ > :g/pointlm/s/01000/00996/ > :g/arealm/s/01000/00997/ > :wq
You only have to edit one file, which is located in ~/.xastir/config a.k.a. /home/yourusername/.xastir/config. The .xastir directory is hidden, so it won't necessarily be seen in a file browser without enabling viewing hidden files - not sure what is normally used in a Mac for that. The file to be edited is named map_index.sys. Before editing, you have to make sure the maps have been extracted and are located in the /usr/local/share/xastir/maps directory in your choice of arrangement AND that you have launched Xastir and re-indexed the maps. Then shut down Xastir and edit the index file with vi (or you can use the perl script that I posted previously that will edit the file). If you do the above and then add more Tiger 2008 maps later, you will have to re-index, shut down Xastir, and edit the file again in order to get the new maps to look right. Regards, Lee - K5DAT Murphy, TX _______________________________________________ Xastir mailing list [email protected] http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
