Examples of WMS


Examples of org.geoserver.wms.WMS

     *
     * @throws Exception
     */
    public void testEncodeAsOverlay() throws Exception {
        XpathEngine xpath = XMLUnit.newXpathEngine();
        WMS wms = mockData.getWMS();
        KMLNetworkLinkTransformer transformer = new KMLNetworkLinkTransformer(wms);
        transformer.setEncodeAsRegion(false);
        transformer.setIndentation(2);

        request.setBbox(new Envelope(-1, 1, -10, 10));
View Full Code Here

Examples of org.geoserver.wms.WMS

    protected void setUpInternal() throws Exception {
        super.setUpInternal();

        dispatcher = (Dispatcher) applicationContext.getBean("dispatcher");
        WMS wms = new WMS(getGeoServer());
        reader = new GetMapKvpRequestReader(wms);
    }
View Full Code Here

Examples of org.geoserver.wms.WMS

    private Map<String, String> params;

    protected void setUp() throws Exception {
        geoServerImpl = new GeoServerImpl();
        geoServerImpl.add(new WMSInfoImpl());
        wms = new WMS(geoServerImpl);
        params = new HashMap<String, String>();
    }
View Full Code Here

Examples of org.geoserver.wms.WMS

        catalog.add(coverageStoreInfo);
        catalog.add(coverageInfo);
        catalog.add(coverageLayerInfo);

        geoServerImpl.add(new WMSInfoImpl());
        WMS wms = new WMS(geoServerImpl);
        request = new DescribeLayerRequest();
        request.setBaseUrl("http://localhost:8080/geoserver");
        request.setVersion(WMS.VERSION_1_1_1.toString());
    }
View Full Code Here

Examples of org.geoserver.wms.WMS

        geosConfig.add(wmsInfo);

        catalog = new CatalogImpl();
        geosConfig.setCatalog(catalog);

        wmsConfig = new WMS(geosConfig);

        req = new GetCapabilitiesRequest();
        req.setBaseUrl(baseUrl);

        Map<String, String> namespaces = new HashMap<String, String>();
View Full Code Here

Examples of org.geoserver.wms.WMS

    private HashMap kvp;

    private HashMap rawKvp;

    public void setUp() {
        this.reader = new CapabilitiesKvpReader(new WMS(null));
        this.kvp = new HashMap();
        this.rawKvp = new HashMap();
    }
View Full Code Here

Examples of org.geoserver.wms.WMS

     * </p>
     */
    public void testQueryNonQueryableLayer() throws Exception {
        // HACK: fake the WMS facade to inform the layer is non queryable. Looks like we would need
        // a LayerInfo.isQueryable() property
        final WMS wms = (WMS) applicationContext.getBean("wms");
        GetFeatureInfoKvpReader reader = (GetFeatureInfoKvpReader) applicationContext
                .getBean("getFeatureInfoKvpReader");
        try {
            WMS fakeWMS = new WMS(wms.getGeoServer()) {
                @Override
                public boolean isQueryable(LayerInfo layer) {
                    if ("Forests".equals(layer.getName())) {
                        return false;
                    }
View Full Code Here

Examples of org.vfny.geoserver.global.WMS

    wfsDTO.getService().setEnabled(wfsEnabled );
    beans.put("wfs", new WFS(wfsDTO));
   
    wmsDTO.setService(new ServiceDTO());
    wmsDTO.getService().setEnabled(wmsEnabled);
    beans.put("wms", new WMS(wmsDTO));
  }
View Full Code Here

Examples of org.vfny.geoserver.global.WMS

  public IStatusReport checkStatus() {
    int status = IStatusReport.OKAY;
    Exception message = null;
   
    WMS wms = null;
    try {
      wms = (WMS) applicationContext.getBean("wms");
    } catch (Exception e) {
      status = IStatusReport.ERROR;
      message = e;
      return new DefaultStatusReport(NAME, status, message);
    }
   
    if (wms == null) {
      status = IStatusReport.ERROR;
      message = new Exception("WMS failed to load. Please check server logs");
    } else if (!wms.isEnabled()) {
      status = IStatusReport.ERROR;
      message = new Exception("WMS service is currently disabled");
    }
   
    return new DefaultStatusReport(NAME, status, message);
View Full Code Here

Examples of org.wicketstuff.openlayers.api.layer.WMS

   
    HashMap<String, String>layerOptions = new HashMap<String, String>();
   
    layerOptions.put("layers", JSUtils.getQuotedString("basic"));
   
    layers.add(new WMS("OpenLayers WMS",
        "http://labs.metacarta.com/wms/vmap0", layerOptions));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.