PDA

View Full Version : Mapfile sanity checker



ksmith
11-04-2002, 03:49 PM
This perl script checks all .map files in the current directory for the following errors:
Invalid header line
M line where number of coordinates is not divisible by 3 (incomplete point)
M line where number of points does not equal the number of points it says it has
M line with 0 or one points
L line where number of coordinates is not divisible by 2 (incomplete point)
L line where number of points does not equal the number of points it says it has
L line with 0 or one points
P, Z, A, and H lines with an incorrect number of fields
(null) as a color name or line/point name (this is debatable as to whether it is an error)