[mapserver-users] Mapfile verification tool
Ivan Mincik
ivan.mincik at gmail.com
Tue May 15 08:38:39 PDT 2012
I mean something like this:
import sys
import mapscript
try:
m = mapscript.mapObj(sys.argv[1])
print 'VALID (%s layers found)' % m.numlayers
except:
print 'INVALID'
I did some tests and it seems working. Even it outputs detailed parsing
error message (for example: loadProjection(): Unknown identifier.
Parsing error near (METADATA):(line 100))
More information about the MapServer-users
mailing list