[Geoprisma-dev] PHP OO to generate a mapfile
Daniel Morissette
dmorissette at mapgears.com
Wed Jan 6 15:03:58 EST 2010
My quick comment on this based on past experience with MapLab is that
maintaining a mapfile parser that works across MapServer versions is a
very daunting task, and using MapScript for editing mapfiles is not a
viable option either.
That's why we started working on a XML encoding for mapfiles... so that
external editors can use the XML encoding, and apply the XLST to convert
to text mapfile at deployment time. More info at:
http://trac.osgeo.org/mapserver/wiki/XMLMapfiles
Daniel
Stephen Woodbridge wrote:
> Happy New Year Everyone,
>
> Over the holidays, I took a stab at generating OO PHP Classes that can
> take a PHP hash array and turn it into a mapfile. It works quite well
> but probably needs to additional refactoring. You can see the hash, the
> mapfile and the map image here.
>
> http://imaptools.com:8080/work/testMapfile2.php
>
> I want to add a mapfile parser to read a mapfile and create the hash
> and/or the object tree directly.
>
> My thoughts behind this effort are that it might be useful for building
> a tool that could be used as part of shapefile upload tool that would
> also need to generate or modify a mapfile. While I am not using
> mapscript and prefer not to to keep installation and configuration
> simple, this could also be extended to pass the mapfile directly to
> mapscript so you could provide realtime sample images of styling
> changes. The current demo is using cgi mapserver.
>
> Thoughts on this?
> I think some of you have thought about a shapefile upload tool.
>
> -Steve W
> _______________________________________________
> Geoprisma-dev mailing list
> Geoprisma-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geoprisma-dev
--
Daniel Morissette
http://www.mapgears.com/
More information about the Geoprisma-dev
mailing list