this.entityMappingService = entityMappingService;
try {
beanClass = Class.forName(vectorLayerInfo.getFeatureInfo().getDataSourceName());
} catch (ClassNotFoundException e) {
throw new LayerException(ExceptionCode.FEATURE_MODEL_PROBLEM, "Feature class "
+ vectorLayerInfo.getFeatureInfo().getDataSourceName() + " was not found", e);
}
this.srid = srid;
PropertyDescriptor d = BeanUtils.getPropertyDescriptor(beanClass, getGeometryAttributeName());
Class geometryClass = d.getPropertyType();
if (Geometry.class.isAssignableFrom(geometryClass)) {
wkt = false;
} else if (geometryClass == String.class) {
wkt = true;
} else {
throw new LayerException(ExceptionCode.FEATURE_MODEL_PROBLEM, "Feature "
+ vectorLayerInfo.getFeatureInfo().getDataSourceName() + " has no valid geometry attribute");
}
FeatureInfo featureInfo = vectorLayerInfo.getFeatureInfo();
attributeInfoMap.put(featureInfo.getIdentifier().getName(), featureInfo.getIdentifier());