use of org.geoserver.catalog.Keyword in project polymap4-core by Polymap4.
the class GeoServerLoader method createWMSInfo.
protected void createWMSInfo(IMap map) {
WMSInfoImpl wms = new WMSInfoImpl();
wms.setGeoServer(geoserver);
wms.setId(simpleName(map.id()) + "-wms");
wms.setKeywords(Lists.newArrayList(new Keyword("-Test-")));
wms.setOutputStrategy("SPEED");
addMaintainer(wms, map);
// XXX make this configurable; deliver all known EPSG codes for now :)
// FIXME configure allowed EPSG codes
List<String> srs = new ArrayList();
srs.add("EPSG:25832");
srs.add("EPSG:25833");
srs.add("EPSG:31468");
srs.add("EPSG:4326");
srs.add("EPSG:3857");
wms.setSRS(srs);
// List<Version> versions = new ArrayList<Version>();
// versions.add( new Version( "1.1.1" ) );
// versions.add( new Version( "1.3" ) );
// wms.setVersions( versions );
geoserver.add(wms);
log.info("WMS: " + wms);
}
Aggregations