Difference between revisions of "Nordic:axl2map"
Jump to navigation
Jump to search
Wiki-Sverre (talk | contribs) |
Wiki-Sverre (talk | contribs) |
||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == | + | == Converting from ArcIMS axl-files to Mapserver map-files == |
− | Norges geologiske undersøkelse (NGU) faser nå ut ArcIMS. ArcIMS-tjenestene skal i hovedsak over til Mapserver. Vi har et stort antall tjenester og fant det nødvendig å lage et XSLT-script som konverterer | + | ''Norges geologiske undersøkelse (NGU) faser nå ut ArcIMS. ArcIMS-tjenestene skal i hovedsak over til Mapserver. Vi har et stort antall tjenester og fant det nødvendig å lage et XSLT-script som konverterer axl-filer (ArcIMS) til .map-filer (Mapserver). |
− | |||
+ | Geological Survey of Norway (NGU) phases out ArcIMS. ArcIMS services will mainly be ported to the Mapserver. We have a large number of services and found it necessary to create an XSLT script which converts from axl-files (ArcIMS) to map-files (Mapserver). | ||
− | + | ||
+ | Execution: | ||
* java org.apache.xalan.xslt.Process -IN foo.axl -XSL axl2mapNGU.xsl -OUT foo.map | * java org.apache.xalan.xslt.Process -IN foo.axl -XSL axl2mapNGU.xsl -OUT foo.map | ||
* Add in axl-file right after first line - open file in Web browser: <?xml-stylesheet type="text/xsl" encoding="iso-8859-1" href="axl2mapNGU.xslt"?> | * Add in axl-file right after first line - open file in Web browser: <?xml-stylesheet type="text/xsl" encoding="iso-8859-1" href="axl2mapNGU.xslt"?> | ||
− | + | Other info: | |
*Support renderer types that are mostly used by the NGU. Should be easy to add renderer types with the <xsl:template match="..."> | *Support renderer types that are mostly used by the NGU. Should be easy to add renderer types with the <xsl:template match="..."> | ||
− | *GROUPRENDERER with multple elements will result in multiple CLASS sections with identical names. Edit and integrate these into unique classes manually. | + | *GROUPRENDERER (ArcIMS) with multple elements will result in multiple CLASS (Mapserver) sections with identical names. Edit and integrate these into unique classes manually. |
− | *SCALEDEPENDENTRENDERER is | + | *SCALEDEPENDENTRENDERER (ArcIMS) is supported to some extent. Alternativly you can create a separate layer for this with its own scale range. |
− | *The type attribute | + | *The ''type'' attribute renderer (ArcIMS) are mapped to a SYMBOL reference (Mapserver) like: SYMBOL "star" or SYMBOL "dot". Additional symbols must be defined for this. |
− | *The character attribute in TRUETYPEMARKERSYMBOL are mapped to a SYMBOL reference | + | *The ''character'' attribute in TRUETYPEMARKERSYMBOL (ArcIMS) are mapped to a SYMBOL reference (Mapserver) like: SYMBOL "135". Additional symbols must be defined for this. |
− | + | *Implements renderers like RASTER_RENDERER, RASTER_EXACT, RASTER_OTHER | |
+ | *Uses patterns (Mapserver - e.g. [ServiceAbstract]) to be replaced by user defined content after conversion. | ||
+ | |||
− | + | Contact and related documents: | |
− | *Sverre Iversen,NGU. | + | *Sverre Iversen, NGU. E-mail:sverre.iversen(a)ngu.no |
− | *[http://wiki.osgeo.org/wiki/File:Axl2mapNGU.odt | + | *[http://wiki.osgeo.org/wiki/File:Axl2mapNGU.odt Code: axl2mapNGU.xslt] |
− | *[http://trac.osgeo.org/mapserver/wiki/axl2map_xslt | + | *[http://trac.osgeo.org/mapserver/wiki/axl2map_xslt Inspired by] |
Latest revision as of 06:49, 18 September 2012
Converting from ArcIMS axl-files to Mapserver map-files
Norges geologiske undersøkelse (NGU) faser nå ut ArcIMS. ArcIMS-tjenestene skal i hovedsak over til Mapserver. Vi har et stort antall tjenester og fant det nødvendig å lage et XSLT-script som konverterer axl-filer (ArcIMS) til .map-filer (Mapserver).
Geological Survey of Norway (NGU) phases out ArcIMS. ArcIMS services will mainly be ported to the Mapserver. We have a large number of services and found it necessary to create an XSLT script which converts from axl-files (ArcIMS) to map-files (Mapserver).
Execution:
- java org.apache.xalan.xslt.Process -IN foo.axl -XSL axl2mapNGU.xsl -OUT foo.map
- Add in axl-file right after first line - open file in Web browser: <?xml-stylesheet type="text/xsl" encoding="iso-8859-1" href="axl2mapNGU.xslt"?>
Other info:
- Support renderer types that are mostly used by the NGU. Should be easy to add renderer types with the <xsl:template match="...">
- GROUPRENDERER (ArcIMS) with multple elements will result in multiple CLASS (Mapserver) sections with identical names. Edit and integrate these into unique classes manually.
- SCALEDEPENDENTRENDERER (ArcIMS) is supported to some extent. Alternativly you can create a separate layer for this with its own scale range.
- The type attribute renderer (ArcIMS) are mapped to a SYMBOL reference (Mapserver) like: SYMBOL "star" or SYMBOL "dot". Additional symbols must be defined for this.
- The character attribute in TRUETYPEMARKERSYMBOL (ArcIMS) are mapped to a SYMBOL reference (Mapserver) like: SYMBOL "135". Additional symbols must be defined for this.
- Implements renderers like RASTER_RENDERER, RASTER_EXACT, RASTER_OTHER
- Uses patterns (Mapserver - e.g. [ServiceAbstract]) to be replaced by user defined content after conversion.
Contact and related documents:
- Sverre Iversen, NGU. E-mail:sverre.iversen(a)ngu.no
- Code: axl2mapNGU.xslt
- Inspired by