details.add("Find result is NULL.");
} else {
arrayTemp = new JSONArray();
for (Iterator<FeatureResult> it = featureResults.iterator(); it
.hasNext();) {
FeatureResult featureResult = it.next();
Feature feature = featureResult.getFeature();
GeometryAttribute geoAttr = feature
.getDefaultGeometryProperty();
Geometry geo = (Geometry) geoAttr.getValue();
if (geo != null) {
geo = GeometryToolkit.project(geo, mapSR, outSR);
geoAttr.setValue(geo);
feature.setDefaultGeometryProperty(geoAttr);
}
objTemp = EsriJsonUtil.feature2JSON(feature,
isReturnGeometry);
objTemp.put("layerId", featureResult.getLayerId());
objTemp.put("layerName", featureResult.getLayer()
.getMapLayer().getTitle());
String geoFieldName = feature.getDefaultGeometryProperty()
.getDescriptor().getLocalName();
for (Iterator<Property> itr = feature.getProperties()