Other than using shp2img or one of the other command-line executables I'm
afraid there isn't a validator.
Steve
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alberto Najera
Sent: Monday, May 14, 2012 8:35
On 05/15/2012 03:56 PM, Lime, Steve D (DNR) wrote:
Other than using shp2img or one of the other command-line executables I'm
afraid there isn't a validator.
What about writing some trivial mapscript script which will loop over
all layers in mapfile. If some syntax error would be found some
On 5/15/2012 11:02 AM, Ivan Mincik wrote:
On 05/15/2012 03:56 PM, Lime, Steve D (DNR) wrote:
Other than using shp2img or one of the other command-line executables I'm
afraid there isn't a validator.
What about writing some trivial mapscript script which will loop over
all layers in mapfile.
I don't think this will work because the mapfile is read all at once and
parsed into an internal data structure. You can't access it in mapscript
until the parser has read it and the parser will error out on any errors.
Understand, but i mean only valid/invalid output from test script. If
some
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:
worth the effort.
Steve
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ivan Mincik
Sent: Tuesday, May 15, 2012 10:24 AM
To: mapserver-users
Subject: Re: [mapserver-users] Mapfile verification tool
I don't
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ivan Mincik
Sent: Tuesday, May 15, 2012 10:24 AM
To: mapserver-users
Subject: Re: [mapserver-users] Mapfile verification tool
I don't think this will work because the mapfile is read all at once
and parsed into an internal data structure
-users] Mapfile verification tool
I don't think this will work because the mapfile is read all at once
and parsed into an internal data structure. You can't access it in
mapscript until the parser has read it and the parser will error out on any
errors.
Understand, but i mean only valid
-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ivan Mincik
Sent: Tuesday, May 15, 2012 10:24 AM
To: mapserver-users
Subject: Re: [mapserver-users] Mapfile verification tool
I don't think this will work because the mapfile
it be activated?
Alberto Najera
De: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Bob Basques
Enviado el: martes, 15 de mayo de 2012 11:14 a.m.
Para: ivan.min...@gmail.com; mapserver-users; Steve D (DNR) Lime
Asunto: RE: [mapserver-users
10 matches
Mail list logo