[Xastir] More fun with shapefiles
Curt Mills, WE7U
hacker at tc.fluke.com
Fri Apr 11 13:34:56 EDT 2003
On Fri, 11 Apr 2003, Jack Twilley wrote:
> I used negative numbers for my area maps and positive ones for my line
> maps, and that worked fine until I restarted xastir and got many of
> these messages:
>
> index_restore_from_file: map_layer field incorrect -2000 in map name:
> area/water/tgr06115wat.shp
>
> So I guess there's a bug in the layer or in the chooser -- the chooser
> is documented to say that negative numbers are valid entries.
Hmmm. Never tried negative numbers. Didn't know that they were
specified as valid.
> Also, is there a good way to deal with large numbers of maps? I have
> almost seven hundred maps, and setting up each map requires multiple
> clicks -- click all the area maps, select fill yes, click all the
> county maps, change level to 100, etc. -- and I was wondering if I was
> missing a more efficient way to do this.
Yea. Perl/sed/awk. The ~/.xastir/config/map_index.sys file
contains these entries. You can figure out the column format.
> Curt> Red X's with number eh? Try to figure out which layer is doing
> Curt> that. It may be a layer that we haven't implemented specific
> Curt> code for. Only a few of the more useful layers were done. It's
> Curt> likely that you're hitting the generic code that happened to
> Curt> find a label on a layer that we didn't implment support for.
> Curt> Only some of the layers are useful (in my opinion anyway) for
> Curt> what we're doing. Turn off or delete the others.
>
> That turns out to be the "lpt" type of map -- it doesn't display the
> words (due to the font issue), just the numbers.
Near as I can tell that's not one of the layers we support. At
least I only have two of those types of maps on my system, which
means that it's likely a map layer that I didn't support, and when I
enable it, I get X's with numbers too. Can't remember what that
layer is off-hand.
--
Curt Mills, WE7U hacker_NO_SPAM_ at tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto: A tax on people who are bad at math!"
"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