Search in sources :

Example 1 with MdAttributeMultiPolygon

use of com.runwaysdk.system.gis.metadata.MdAttributeMultiPolygon 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();
}
Also used : MdAttributeMultiPoint(com.runwaysdk.system.gis.metadata.MdAttributeMultiPoint) MdAttributeMultiLineString(com.runwaysdk.system.gis.metadata.MdAttributeMultiLineString) MdAttributeGeometry(com.runwaysdk.system.gis.metadata.MdAttributeGeometry) MdAttributePoint(com.runwaysdk.system.gis.metadata.MdAttributePoint) MdAttributePolygon(com.runwaysdk.system.gis.metadata.MdAttributePolygon) MdAttributeMultiPolygon(com.runwaysdk.system.gis.metadata.MdAttributeMultiPolygon) MdAttributeShape(com.runwaysdk.system.gis.metadata.MdAttributeShape) MdAttributeLineString(com.runwaysdk.system.gis.metadata.MdAttributeLineString)

Example 2 with MdAttributeMultiPolygon

use of com.runwaysdk.system.gis.metadata.MdAttributeMultiPolygon 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();
}
Also used : MdAttributeMultiPoint(com.runwaysdk.system.gis.metadata.MdAttributeMultiPoint) MdAttributeMultiLineString(com.runwaysdk.system.gis.metadata.MdAttributeMultiLineString) MdAttributeGeometry(com.runwaysdk.system.gis.metadata.MdAttributeGeometry) MdAttributePoint(com.runwaysdk.system.gis.metadata.MdAttributePoint) MdAttributePolygon(com.runwaysdk.system.gis.metadata.MdAttributePolygon) MdAttributeMultiPolygon(com.runwaysdk.system.gis.metadata.MdAttributeMultiPolygon) MdAttributeShape(com.runwaysdk.system.gis.metadata.MdAttributeShape) MdAttributeLineString(com.runwaysdk.system.gis.metadata.MdAttributeLineString)

Aggregations

MdAttributeGeometry (com.runwaysdk.system.gis.metadata.MdAttributeGeometry)2 MdAttributeLineString (com.runwaysdk.system.gis.metadata.MdAttributeLineString)2 MdAttributeMultiLineString (com.runwaysdk.system.gis.metadata.MdAttributeMultiLineString)2 MdAttributeMultiPoint (com.runwaysdk.system.gis.metadata.MdAttributeMultiPoint)2 MdAttributeMultiPolygon (com.runwaysdk.system.gis.metadata.MdAttributeMultiPolygon)2 MdAttributePoint (com.runwaysdk.system.gis.metadata.MdAttributePoint)2 MdAttributePolygon (com.runwaysdk.system.gis.metadata.MdAttributePolygon)2 MdAttributeShape (com.runwaysdk.system.gis.metadata.MdAttributeShape)2