%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="org.deegree.ogcwebservices.wpvs.capabilities.WPVSCapabilitiesDocument"%> <%@ page import="org.deegree.ogcwebservices.wpvs.capabilities.WPVSCapabilities"%> <%@ page import="org.deegree.ogcwebservices.wpvs.capabilities.Dataset"%> <%@ page import="java.net.URL"%> <%@ page import="org.deegree.portal.common.WPVSClientConfig"%> <%@ page import="org.deegree.owscommon.com110.Operation110"%> <%@ page import="org.deegree.owscommon.com110.HTTP110"%> <%@ page import="org.deegree.ogcwebservices.wpvs.capabilities.WPVSOperationsMetadata"%> <%@ page import="org.deegree.enterprise.WebUtils"%> <%@ page import="org.deegree.ogcwebservices.OWSUtils"%>
<% int viewHeight = 600; int viewWidth = 800; String wmsGetMapFragment = WPVSClientConfig.getWmsGetMapFragment(); WPVSCapabilities caps = WPVSClientConfig.getWpvsCapabilities();//(WPVSCapabilities) capsDoc.parseCapabilities(); String elevModel = ""; String title = "No WPVS Service found"; String[] datasets = new String[0]; if( caps != null ){ //assuming all data sets are children of top ds!!! Dataset topDataset = caps.getDataset(); Dataset[] firstLevelDatasets = topDataset.getDatasets(); datasets = new String[firstLevelDatasets.length]; for ( int i = 0; i < datasets.length; i++ ) { datasets[i] = firstLevelDatasets[i].getName(); } //assuming elev model is child of topDataset elevModel = topDataset.getElevationModel().getName(); title = caps.getServiceIdentification().getName(); } String[] buttons = { "zoomin", "zoomout", "move" }; String tmp = request.getParameter( "bbox" ); String bbox = tmp != null ? tmp : WPVSClientConfig.getInitialBbox(); String[] boxCoords = bbox.split(","); String getViewUrl = WPVSClientConfig.getGetViewURL(); String crs = WPVSClientConfig.getDefaultCRS(); String elevation = WPVSClientConfig.getInitialElevation(); %>Client is not properly configured. Are the WPVS capabilities available?
" ); } else { %>
|
|
|||||||||||||||||||||||
powered by deegree |