Andrea,
the features are obtained with this statement :
FeatureCollection<? extends FeatureType, ? extends Feature> features =
getFeatures(request, source, gtQuery);
The code of getFeatures :
protected FeatureCollection<? extends FeatureType, ? extends Feature>
getFeatures(Object request, FeatureSource<? extends FeatureType, ? extends
Feature> source,
org.geotools.data.Query gtQuery)
throws IOException {
FeatureCollection<? extends FeatureType, ? extends Feature> features
= source.getFeatures(gtQuery);
features = FeatureSizeFeatureCollection.wrap(features, source,
gtQuery);
return features;
}
Am I right or features is already wrapped ?
For now I can see that the geometry is updated using :
try (FeatureIterator iterator = features.features()){
while( iterator.hasNext()){
Feature f = iterator.next();
Geometry geom = (Geometry) f.getProperty(geomFieldName).getValue();
geom = clipper.clip(geom, true);
if (geom != null)
{
GeometryAttribute ga = f.getDefaultGeometryProperty();
ga.setValue(geom);
f.setDefaultGeometryProperty(ga);
}
}
}
but the client (browser) still gets the original features.
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users