Examples of WFS


Examples of org.vfny.geoserver.global.WFS

        /**
         * DOCUMENT ME!
         */
        private void handleFeatureTypes() {
            WFS wfs = request.getWFS();

            if (!wfs.isEnabled()) {
                // should we return anything if we are disabled?
            }

            start("FeatureTypeList");
            start("Operations");

            if ((wfs.getServiceLevel() | WFSDTO.SERVICE_BASIC) != 0) {
                element("Query", null);
            }

            if ((wfs.getServiceLevel() | WFSDTO.SERVICE_INSERT) != 0) {
                element("Insert", null);
            }

            if ((wfs.getServiceLevel() | WFSDTO.SERVICE_UPDATE) != 0) {
                element("Update", null);
            }

            if ((wfs.getServiceLevel() | WFSDTO.SERVICE_DELETE) != 0) {
                element("Delete", null);
            }

            if ((wfs.getServiceLevel() | WFSDTO.SERVICE_LOCKING) != 0) {
                element("Lock", null);
            }

            end("Operations");

            Collection featureTypes = wfs.getData().getFeatureTypeInfos()
                                         .values();
            FeatureTypeInfo ftype;

            for (Iterator it = featureTypes.iterator(); it.hasNext();) {
                ftype = (FeatureTypeInfo) it.next();
View Full Code Here

Examples of org.vfny.geoserver.global.WFS

    WMS vp = Requests.getWMS( getHttpServletRequest() );
    return vp;
  }
 
  public WFS getWFS(){
    WFS vp = Requests.getWFS( getHttpServletRequest() );
    return vp;
  }
View Full Code Here

Examples of org.vfny.geoserver.global.WFS

     */
    public void init(ActionServlet arg0, ModuleConfig arg1)
        throws ServletException {
        ServletContext sc = arg0.getServletContext();
        WMS wms = (WMS) sc.getAttribute(WMS.WEB_CONTAINER_KEY);
        WFS wfs = (WFS) sc.getAttribute(WFS.WEB_CONTAINER_KEY);

        if (wms == null || wfs == null) {
            GeoServerPlugIn gspi = new GeoServerPlugIn();
            gspi.init(arg0, arg1);
            wms = (WMS) sc.getAttribute(WMS.WEB_CONTAINER_KEY);
            wfs = (WFS) sc.getAttribute(WFS.WEB_CONTAINER_KEY);

            if (wms == null || wfs == null) {
                throw new ServletException(
                    "GeoServerPlugIn Failed. Thus ConfigPlugIn cannot run.");
            }
        }

        sc.setAttribute(WMSConfig.CONFIG_KEY, new WMSConfig((WMSDTO)wms.toDTO()));
        sc.setAttribute(WFSConfig.CONFIG_KEY, new WFSConfig((WFSDTO)wfs.toDTO()));
        sc.setAttribute(GlobalConfig.CONFIG_KEY,
            new GlobalConfig((GeoServerDTO)wfs.getGeoServer().toDTO()));
        sc.setAttribute(DataConfig.CONFIG_KEY, new DataConfig((DataDTO)wfs.getData().toDTO()));
       
        ValidationConfig vc = null;
    try{
      vc = new ValidationConfig((Map)wfs.getValidation().toPlugInDTO(), (Map)wfs.getValidation().toTestSuiteDTO());
    }catch(Exception e){
      //load error
      vc = new ValidationConfig();
    }
        sc.setAttribute(ValidationConfig.CONFIG_KEY, vc);
View Full Code Here

Examples of org.vfny.geoserver.global.WFS

        return citeData;
      }
    };

    WFSDTO wfsDto = newWfsDto();
    WFS wfs = new WFS(wfsDto) {
      public Data getData() {
        return citeData;
      }
    };
View Full Code Here

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

            + osm.getJSconstructor() + ";\n");
        js.append(getJSinvoke("addLayer(osm" + osm.getId() + ","
            + osm.getId() + ")"));
      }
      if (layer instanceof WFS) {
        WFS wfs = (WFS) layer;
        js.append("var wfs" + wfs.getId() + " ="
            + wfs.getJSconstructor() + ";\n");
        js.append(getJSinvoke("addLayer(wfs" + wfs.getId() + ","
            + wfs.getId() + ")"));

      }
      if (layer instanceof Vector) {
        Vector vec = (Vector) layer;
        js.append("var vec" + vec.getId() + " ="
View Full Code Here

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

   
    Map<String, String> wfsLayerExtraOptions = new LinkedHashMap<String, String>();
   
    wfsLayerExtraOptions.put("featureClass", "OpenLayers.Feature.WFS");
   
    WFS wfsLayer = new WFS("Owl Survey", "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?", wfsLayerOptions, wfsLayerExtraOptions);
   
    layerList.add(wfsLayer);
   
    final WFSProxyBehavior wfsProxy = new WFSProxyBehavior();
   
View Full Code Here

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

    Map<String, String> wfsLayerExtraOptions = new LinkedHashMap<String, String>();

    wfsLayerExtraOptions.put("featureClass", "OpenLayers.Feature.WFS");

    WFS wfsLayer = new WFS("Owl Survey", "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?",
      wfsLayerOptions, wfsLayerExtraOptions);

    layerList.add(wfsLayer);

    final WFSProxyBehavior wfsProxy = new WFSProxyBehavior();
View Full Code Here

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

        js.append("var osm" + osm.getId() + " =" + osm.getJSconstructor() + ";\n");
        js.append(getJSinvoke("addLayer(osm" + osm.getId() + "," + osm.getId() + ")"));
      }
      if (layer instanceof WFS)
      {
        WFS wfs = (WFS)layer;
        js.append("var wfs" + wfs.getId() + " =" + wfs.getJSconstructor() + ";\n");
        js.append(getJSinvoke("addLayer(wfs" + wfs.getId() + "," + wfs.getId() + ")"));

      }
      if (layer instanceof Vector)
      {
        Vector vec = (Vector)layer;
View Full Code Here

Examples of org.zkoss.openlayers.protocol.WFS

    // create a vector layer using the canvas renderer (where available)
    map.addLayer(new Vector(
        "States",
        toMap(pair("strategies", new Object[] { new BBOX() }),
          pair("protocol",
          new WFS(toMap(pair("version", "1.1.0"),
              pair("srsName", "EPSG:900913"),
              pair("url",
                "http://v2.suite.opengeo.org/geoserver/wfs"),
              pair("featureType", "states"),
              pair("featureNS",
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.