private OperationType dft(Node node, Ows10Factory ows10Factory) { OperationType operationType = createOperation("DescribeFeatureType", node, ows10Factory); addParameter(node, ows10Factory, operationType, "SchemaDescriptionLanguage"); return operationType; }
/** * Creates a new configuration. * * @generated */ public WFSConfiguration_1_0() { super(WFS.getInstance()); addDependency(new OGCConfiguration()); }
/** * Creates a new configuration. * * @generated */ public WFSCapabilitiesConfiguration() { super(WFSCapabilities.getInstance()); addDependency(new org.geotools.filter.v1_0.capabilities.OGCConfiguration()); }
public WFS10() { super( new WFSConfiguration(), "text/xml; subtype=wfs-collection/1.0", org.geoserver.wfs.xml.v1_0_0.WFS.FEATURECOLLECTION); } }
@Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Ows10Factory ows10Factory = Ows10Factory.eINSTANCE; OperationsMetadataType om = ows10Factory.createOperationsMetadataType(); Node request = node.getChild("Request"); OperationType operation; operation = getCapabilities(request.getChild("GetCapabilities"), ows10Factory); addOperation(om, operation); operation = dft(request.getChild("DescribeFeatureType"), ows10Factory); addOperation(om, operation); operation = getFeature(request.getChild("GetFeature"), ows10Factory); addOperation(om, operation); Node nodeOp = request.getChild("Transaction"); if (nodeOp != null) { operation = createOperation("Transaction", nodeOp, ows10Factory); addOperation(om, operation); } nodeOp = request.getChild("LockFeature"); if (nodeOp != null) { operation = createOperation("LockFeature", nodeOp, ows10Factory); addOperation(om, operation); } nodeOp = request.getChild("GetFeatureWithLock"); if (nodeOp != null) { operation = createOperation("GetFeatureWithLock", nodeOp, ows10Factory); addOperation(om, operation); } return om; }
public GMLOutputParams() { // by default, use WFS 1.0.0 wfsVersion = org.geotools.wfs.v1_0.WFS.getInstance().getVersion(); // by default, infer GML version from WFS version gmlVersion = null; // by default, use virtual ows services baseUrl = getBaseURL(); } }
/** * Creates a new configuration. * * @generated */ public WFSConfiguration() { super(WFS.getInstance()); addDependency(new OGCConfiguration()); }
new org.geotools.wfs.v1_0.WFSConfiguration_1_0(); configuration.getProperties().add(GMLConfiguration.OPTIMIZED_ENCODING); Encoder e = new Encoder(configuration); e.getNamespaces().declarePrefix(prefix, namespace);
@Override protected GetFeatureParser parser(GetFeatureRequest request, InputStream in) throws IOException { FeatureType queryType = request.getQueryType(); if (queryType == null) { queryType = request.getFullType(); } Configuration config = null; if (request.getStrategy().getVersion().equals(Versions.v2_0_0.toString())) { config = new org.geotools.wfs.v2_0.WFSConfiguration(); } else if (request.getStrategy().getVersion().equals(Versions.v1_1_0.toString())) { config = new org.geotools.wfs.v1_1.WFSConfiguration(); } else if (request.getStrategy().getVersion().equals(Versions.v1_0_0.toString())) { config = new WFSConfiguration_1_0(); } return new PullParserFeatureReader( config, in, queryType, request.getStrategy().getConfig().getAxisOrder()); }
private OperationType getCapabilities(Node node, Ows10Factory ows10Factory) { if (node == null) { return null; } OperationType operationType = ows10Factory.createOperationType(); operationType.setName("GetCapabilities"); addDCPTypes(node, operationType); return operationType; }
@SuppressWarnings("unchecked") private void addParameter( Node node, Ows10Factory ows10Factory, OperationType operationType, String parameterName) { Node paramParentNode = node.getChild(parameterName); List<String> paramValues = childNames(paramParentNode); DomainType domain = ows10Factory.createDomainType(); domain.setName(parameterName); for (String paramValue : paramValues) { domain.getValue().add(paramValue); } operationType.getParameter().add(domain); }
@SuppressWarnings("unchecked") @Override public Object parse(ElementInstance instance, Node node, Object value) throws Exception { Ows10Factory ows10Factory = Ows10Factory.eINSTANCE; DCPType dcpType = ows10Factory.createDCPType(); HTTPType httpType = ows10Factory.createHTTPType(); dcpType.setHTTP(httpType); List<Node> httpChildren = node.getChildren("HTTP"); for (Node http : httpChildren) { Node get = http.getChild("Get"); if (get != null) { RequestMethodType methodType = createRequestMethodType(ows10Factory, get); httpType.getGet().add(methodType); } Node post = http.getChild("Post"); if (post != null) { RequestMethodType methodType = createRequestMethodType(ows10Factory, post); httpType.getPost().add(methodType); } } return dcpType; }
public WFS10Alternate() { super( new WFSConfiguration(), "application/wfs-collection-1.0", org.geoserver.wfs.xml.v1_0_0.WFS.FEATURECOLLECTION); } }
private OperationType getFeature(Node node, Ows10Factory ows10Factory) { OperationType operationType = createOperation("GetFeature", node, ows10Factory); addParameter(node, ows10Factory, operationType, "ResultFormat"); return operationType; }
/** * Creates a new configuration. * * @generated */ public WFSCapabilitiesConfiguration() { super(WFSCapabilities.getInstance()); addDependency(new org.geotools.filter.v1_0.capabilities.OGCConfiguration()); }
gmlNamespace = org.geotools.gml2.GML.NAMESPACE; gmlLocation = "gml/2.1.2/feature.xsd"; gmlConfiguration = new org.geotools.wfs.v1_0.WFSConfiguration_1_0();
private OperationType createOperation( String opetationName, Node node, Ows10Factory ows10Factory) { if (node == null) { return null; } OperationType operationType = ows10Factory.createOperationType(); operationType.setName(opetationName); addDCPTypes(node, operationType); return operationType; }
public WFS10() { super(new WFSConfiguration(), "text/xml; subtype=wfs-collection/1.0", org.geoserver.wfs.xml.v1_0_0.WFS.FEATURECOLLECTION); }
private OperationType dft(Node node, Ows10Factory ows10Factory) { OperationType operationType = createOperation("DescribeFeatureType", node, ows10Factory); addParameter(node, ows10Factory, operationType, "SchemaDescriptionLanguage"); return operationType; }
private OperationType getFeature(Node node, Ows10Factory ows10Factory) { OperationType operationType = createOperation("GetFeature", node, ows10Factory); addParameter(node, ows10Factory, operationType, "ResultFormat"); return operationType; }