Search in sources :

Example 1 with GeometryAttributeImpl

use of org.geotools.feature.GeometryAttributeImpl in project GeoGig by boundlessgeo.

the class GeogigSimpleFeature method getDefaultGeometryProperty.

@Override
public GeometryAttribute getDefaultGeometryProperty() {
    GeometryDescriptor geometryDescriptor = featureType.getGeometryDescriptor();
    GeometryAttribute geometryAttribute = null;
    if (geometryDescriptor != null) {
        Object defaultGeometry = getDefaultGeometry();
        geometryAttribute = new GeometryAttributeImpl(defaultGeometry, geometryDescriptor, null);
    }
    return geometryAttribute;
}
Also used : GeometryDescriptor(org.opengis.feature.type.GeometryDescriptor) GeometryAttribute(org.opengis.feature.GeometryAttribute) GeometryAttributeImpl(org.geotools.feature.GeometryAttributeImpl)

Aggregations

GeometryAttributeImpl (org.geotools.feature.GeometryAttributeImpl)1 GeometryAttribute (org.opengis.feature.GeometryAttribute)1 GeometryDescriptor (org.opengis.feature.type.GeometryDescriptor)1