boolean retrieveAllProperties = propertyNames == null; if (!retrieveAllProperties) { List<String> propertyName = wfsQuery.getPropertyName(); for (String propName : propertyNames) { propertyName.add(propName);
map.put("TYPENAME", typeName); if (query.getPropertyName().size() > 0) { List<String> propertyNames = query.getPropertyName(); StringBuilder pnames = new StringBuilder(); for (Iterator<String> it = propertyNames.iterator(); it.hasNext();) {
/** * @return a {@link GetFeatureParser} to stream the contents of the GML 3.1 response */ public Object parse(WFS_1_1_0_DataStore wfs, WFSResponse response) throws IOException { GetFeatureType request = (GetFeatureType) response.getOriginatingRequest(); QueryType queryType = (QueryType) request.getQuery().get(0); String prefixedTypeName = (String) queryType.getTypeName().get(0); SimpleFeatureType schema = wfs.getSchema(prefixedTypeName); List<String> propertyNames = queryType.getPropertyName(); if (propertyNames.size() > 0) { // the expected schema may contain less properties than the full schema. Let's say it to // the parser so it does not parse unnecessary attributes in case the WFS returns more // than requested String[] properties = propertyNames.toArray(new String[propertyNames.size()]); try { schema = DataUtilities.createSubType(schema, properties); } catch (SchemaException e) { throw (RuntimeException) new RuntimeException().initCause(e); } } QName featureName = wfs.getFeatureTypeName(prefixedTypeName); InputStream in = response.getInputStream(); GetFeatureParser featureReader = new XmlSimpleFeatureParser(in, schema, featureName, wfs.getAxisOrderForOutput()); return featureReader; } }
queryType.getPropertyName().add(propertyName.getPropertyName());
boolean retrieveAllProperties = propertyNames == null; if (!retrieveAllProperties) { List propertyName = wfsQuery.getPropertyName(); for (String propName : propertyNames) { propertyName.add(propName);
boolean retrieveAllProperties = propertyNames == null; if (!retrieveAllProperties) { List<String> propertyName = wfsQuery.getPropertyName(); for (String propName : propertyNames) { propertyName.add(propName);
else propertyName = (String) ((PropertyName) property).getPropertyName(); query.getPropertyName().add(propertyName);