Integer.parseInt(srid);
try {
crs = CRS.decode("EPSG:" + srid);
} catch (Exception e) {
String msg = "Error decoding srs: " + srid;
throw new SchemaException(msg, e);
}
}
}
}
Class clazz = type(type);
if (Geometry.class.isAssignableFrom(clazz)) {
GeometryType at = new GeometryTypeImpl(new NameImpl(name), clazz, crs, false,
false, Collections.EMPTY_LIST, null, null);
return new GeometryDescriptorImpl(at, new NameImpl(name), 0, 1, nillable, null);
} else {
AttributeType at = new AttributeTypeImpl(new NameImpl(name), clazz, false, false,
Collections.EMPTY_LIST, null, null);
return new AttributeDescriptorImpl(at, new NameImpl(name), 0, 1, nillable, null);
}
} catch (ClassNotFoundException e) {
throw new SchemaException("Could not type " + name + " as:" + type, e);
}
}