Sunday, 23 March 2008

Convert Web Map Context (WMC) to OWS Context

After manually converting many WMC files to OWS Context I convinced myself that it would be easier to write a stylesheet to do the job for me. As usual, the XSL took longer to write than expected, but it was much more satisfying.

You can try out the stylesheet yourself, it is incorporated into Mapbuilder's codebase at:

http://svn.codehaus.org/mapbuilder/trunk/mapbuilder/lib/tool/xsl/Wmc2OwsContext.xsl


To run, from a linux command line:
    xsltproc http://svn.codehaus.org/mapbuilder/trunk/mapbuilder/lib/tool/xsl/Wmc2OwsContext.xsl YourWMC.xml > NewOWSContext.xml
If you find any bugs, please report them in http://jira.codehaus.org/browse/MAP, and let me know you have reported them.

No comments: