I have a problem with a shapefile(?) or mapfile(?) for street data that I have spent all day banging my head against.

mapserver 4.10.0 and CVS both are reporting:

[Sun Mar 11 16:00:18 2007].666330 msDrawMap(): Layer 8 (Streets A30 Z3 0), 
0.006s
Sun Mar 11 16:00:18 2007 - msDBFGetItemIndex(): DBASE file error. Invalid 
record number 81000.
Sun Mar 11 16:00:18 2007 - msDrawMap(): Image handling error. Failed to draw 
layer named 'Streets A20 Z3'.

this shapefile only has 12121 records in it. I thought that maybe the file was bad so I loaded it into postgres and dumped it to a new file and I get the same error. The layer and shapefile definitions are below. Anyone have any idea what is going on or how to debug this?

-Steve W

      LAYER
        NAME "Streets A30 Z3 0"
        GROUP "st"
        STATUS DEFAULT
        DATA "./Mexico/Major_roads/mexst"
        TYPE LINE
        MAXSCALE 500100
        MINSCALE 50100
        FILTERITEM "FCC"
        FILTER "A30"
        CLASS
          STYLE
            COLOR 170 153 34
            WIDTH 4
            ANTIALIAS TRUE
          END
          STYLE
            COLOR 238 187 34
            WIDTH 2
            ANTIALIAS TRUE
          END
        END
      END

[EMAIL PROTECTED]:/u/data/Mexico/Major_roads$ dbfdump -info mexst
Filename:       mexst.dbf
Version:        0x03 (ver. 3)
Num of records: 12121
Header length:  449
Record length:  371
Last change:    1995/7/26
Num fields:     13
Field info:
Num     Name            Type    Len     Decimal
1.      ID              N       19      11
2.      NAME            C       75      0
3.      NAME_ALT        C       80      0
4.      FCC             C       3       0
5.      FCC_ALT         C       6       0
6.      LEN_MILES       N       19      11
7.      LEN_KM          N       19      11
8.      SPEED_MPH       C       3       0
9.      SPEED_KMH       C       50      0
10.     CITY            C       16      0
11.     CITY_ALT        C       32      0
12.     COUNTRY         C       16      0
13.     COUNTRYALT      C       32      0

Reply via email to