Package mil.nga.sf.geojson
Class Feature
- java.lang.Object
-
- mil.nga.sf.geojson.GeoJsonObject
-
- mil.nga.sf.geojson.Feature
-
- All Implemented Interfaces:
Serializable
public class Feature extends GeoJsonObject
Feature- Author:
- yutzlejp
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)GeometrygetGeometry()Get the geometryGeometryTypegetGeometryType()Get the geometry typeStringgetId()Get the feature idMap<String,Object>getProperties()Get the propertiesGeometrygetSimpleGeometry()Get the simple feature geometryStringgetType()Get the GeoJSON object typeinthashCode()voidsetGeometry(Geometry geometry)Set the geometryvoidsetId(String id)Set the feature idvoidsetProperties(Map<String,Object> properties)Set the properties-
Methods inherited from class mil.nga.sf.geojson.GeoJsonObject
getBbox, getForeignMember, getForeignMembers, hasForeignMember, hasForeignMembers, setBbox, setForeignMember
-
-
-
-
Constructor Detail
-
Feature
public Feature()
Constructor
-
Feature
public Feature(Geometry geometry)
Constructor- Parameters:
geometry- geometry
-
-
Method Detail
-
getId
public String getId()
Get the feature id- Returns:
- feature id
-
setId
public void setId(String id)
Set the feature id- Parameters:
id- feature id
-
getGeometry
public Geometry getGeometry()
Get the geometry- Returns:
- geometry
-
setGeometry
public void setGeometry(Geometry geometry)
Set the geometry- Parameters:
geometry- geometry object
-
setProperties
public void setProperties(Map<String,Object> properties)
Set the properties- Parameters:
properties- properties map
-
getSimpleGeometry
public Geometry getSimpleGeometry()
Get the simple feature geometry- Specified by:
getSimpleGeometryin classGeoJsonObject- Returns:
- simple feature geometry
-
getGeometryType
public GeometryType getGeometryType()
Get the geometry type- Returns:
- geometry type
- Since:
- 3.0.0
-
getType
public String getType()
Get the GeoJSON object type- Specified by:
getTypein classGeoJsonObject- Returns:
- GeoJSON object type
-
hashCode
public int hashCode()
- Overrides:
hashCodein classGeoJsonObject
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classGeoJsonObject
-
-