use of com.runwaysdk.system.gis.metadata.MdAttributeMultiPoint in project geoprism-registry by terraframe.
the class ListTypeVersion method createMdAttributeFromAttributeType.
public void createMdAttributeFromAttributeType(MdBusiness mdBusiness, GeometryType attributeType) {
MdAttributeGeometry mdAttribute = null;
if (attributeType.equals(GeometryType.POINT)) {
mdAttribute = new MdAttributePoint();
} else if (attributeType.equals(GeometryType.MULTIPOINT)) {
mdAttribute = new MdAttributeMultiPoint();
} else if (attributeType.equals(GeometryType.LINE)) {
mdAttribute = new MdAttributeLineString();
} else if (attributeType.equals(GeometryType.MULTILINE)) {
mdAttribute = new MdAttributeMultiLineString();
} else if (attributeType.equals(GeometryType.POLYGON)) {
mdAttribute = new MdAttributePolygon();
} else if (attributeType.equals(GeometryType.MULTIPOLYGON)) {
mdAttribute = new MdAttributeMultiPolygon();
} else if (attributeType.equals(GeometryType.MIXED)) {
mdAttribute = new MdAttributeShape();
}
mdAttribute.setAttributeName(RegistryConstants.GEOMETRY_ATTRIBUTE_NAME);
mdAttribute.getDisplayLabel().setValue(RegistryConstants.GEOMETRY_ATTRIBUTE_NAME);
mdAttribute.setDefiningMdClass(mdBusiness);
mdAttribute.setSrid(4326);
mdAttribute.apply();
}
use of com.runwaysdk.system.gis.metadata.MdAttributeMultiPoint in project geoprism-registry by terraframe.
the class MasterListVersion method createMdAttributeFromAttributeType.
public void createMdAttributeFromAttributeType(MdBusiness mdBusiness, GeometryType attributeType) {
MdAttributeGeometry mdAttribute = null;
if (attributeType.equals(GeometryType.POINT)) {
mdAttribute = new MdAttributePoint();
} else if (attributeType.equals(GeometryType.MULTIPOINT)) {
mdAttribute = new MdAttributeMultiPoint();
} else if (attributeType.equals(GeometryType.LINE)) {
mdAttribute = new MdAttributeLineString();
} else if (attributeType.equals(GeometryType.MULTILINE)) {
mdAttribute = new MdAttributeMultiLineString();
} else if (attributeType.equals(GeometryType.POLYGON)) {
mdAttribute = new MdAttributePolygon();
} else if (attributeType.equals(GeometryType.MULTIPOLYGON)) {
mdAttribute = new MdAttributeMultiPolygon();
} else if (attributeType.equals(GeometryType.MIXED)) {
mdAttribute = new MdAttributeShape();
}
mdAttribute.setAttributeName(RegistryConstants.GEOMETRY_ATTRIBUTE_NAME);
mdAttribute.getDisplayLabel().setValue(RegistryConstants.GEOMETRY_ATTRIBUTE_NAME);
mdAttribute.setDefiningMdClass(mdBusiness);
mdAttribute.setSrid(4326);
mdAttribute.apply();
}
Aggregations