Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/utils/MapfileGenerator.java @ 9738:afad1fac70fb 3.2.x
Cleanup mapfile templating a bit
_ Update names and titles
_ Skip wms_onlineresource because it's set automatically
_ Contact information is optional according to WMS specification
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 25 Jul 2022 16:21:34 +0200 |
parents | 0a5239a1e46e |
children | 308a0d822d18 |
comparison
equal
deleted
inserted
replaced
9737:0c4736d5dd4a | 9738:afad1fac70fb |
---|---|
130 | 130 |
131 protected abstract String getVelocityLogfile(); | 131 protected abstract String getVelocityLogfile(); |
132 | 132 |
133 protected abstract String getMapserverTemplatePath(); | 133 protected abstract String getMapserverTemplatePath(); |
134 | 134 |
135 public abstract String getMapserverUrl(); | |
136 | |
137 protected VelocityContext getVelocityContext() { | 135 protected VelocityContext getVelocityContext() { |
138 VelocityContext context = new VelocityContext(); | 136 VelocityContext context = new VelocityContext(); |
139 | 137 |
140 try { | 138 try { |
141 context.put("MAPSERVERURL", | |
142 getMapserverUrl()); | |
143 context.put("SHAPEFILEPATH", | 139 context.put("SHAPEFILEPATH", |
144 getShapefileBaseDir().getCanonicalPath()); | 140 getShapefileBaseDir().getCanonicalPath()); |
145 context.put("CONFIGDIR", | 141 context.put("CONFIGDIR", |
146 Config.getConfigDirectory().getCanonicalPath()); | 142 Config.getConfigDirectory().getCanonicalPath()); |
147 } | 143 } |