[mapserver-dev] Re: MapFile generator?
Daniel Morissette
dmorissette at mapgears.com
Sat Mar 20 15:23:06 EDT 2010
The new XML mapfile encoding might be your best alternative to achieve
what you are suggesting. You could use your favorite XML library to
manipulate XML mapfiles, either on the server or on the client:
http://trac.osgeo.org/mapserver/wiki/XMLMapfiles
Daniel
Mulone wrote:
> Thanks for your reply.
> My point is that we need a structure to load, manipulate and generate
> mapfiles similar to an XML/JSON parser.
> Something like:
>
> mapfile = new Mapfile( path );
> mapfile.getLayer('buildings').setColor( newcolor );
> // change structures
> mapfile.write( new path );
>
> Probably we don't need to call functions on the server, so I was wondering
> if it is possible to extract a smaller library to do this.
> We could easily write it ourselves, but it would be a bit of a waste of
> time, given that all that logic is already written in mapscript.
>
> Cheers
>
> -----
> Mulone
> PhD student
--
Daniel Morissette
http://www.mapgears.com/
More information about the mapserver-dev
mailing list