new org.geotools.wfs.v1_0.WFSConfiguration_1_0(); configuration.getProperties().add(GMLConfiguration.OPTIMIZED_ENCODING); Encoder e = new Encoder(configuration);
@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()); }
gmlNamespace = org.geotools.gml2.GML.NAMESPACE; gmlLocation = "gml/2.1.2/feature.xsd"; gmlConfiguration = new org.geotools.wfs.v1_0.WFSConfiguration_1_0();