org.geolatte.geom.Feature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-geom Show documentation
Show all versions of geolatte-geom Show documentation
This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL
specification.
The newest version!
package org.geolatte.geom;
import java.util.Map;
/**
* Models a spatial feature
*
* Created by Karel Maesen, Geovise BVBA on 13/07/2018.
*/
public interface Feature< P extends Position, ID> {
final static String TYPE = "Feature";
Geometry getGeometry();
ID getId();
Map getProperties();
Box getBbox();
default String getType(){
return TYPE;
}
default Object getProperty(String propertyName) {
return getProperties().get(propertyName);
}
}