// for each row
Iterator it = dataStore.iterator();
IFeaturesProviderDAO featuresProvider = FeaturesProviderDAOFactory.getFeaturesProviderDAO(featureSourceType);
while(it.hasNext()) {
IRecord record = (IRecord)it.next();
IField field;
field = record.getFieldAt( dataStoreMeta.getFieldIndex(businessIdPName) );
//IDfetaure
geoIdPValue = "" + field.getValue();
if(geoIdPValues.contains(geoIdPValue)) {
continue;
} else {
geoIdPValues.add(geoIdPValue);
}
Map parameters = new HashMap();
parameters.put("layerName", layerName);
parameters.put("geoIdPName", geoIdPName);
parameters.put("geoIdPValue", geoIdPValue);
// geoserver call
try {
MfFeatureCollection featureCollection = featuresProvider.getFeatures(featureSource, parameters);
List featureList = new ArrayList(featureCollection.getCollection());
MfFeature feature = (MfFeature) featureList.get(0);
//Geometry from GeoServer
MfGeometry geom = feature.getMfGeometry();