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 boolean
equals(Object obj)
Geometry
getGeometry()
Get the geometryGeometryType
getGeometryType()
Get the geometry typeString
getId()
Get the feature idMap<String,Object>
getProperties()
Get the propertiesGeometry
getSimpleGeometry()
Get the simple feature geometryString
getType()
Get the GeoJSON object typeint
hashCode()
void
setGeometry(Geometry geometry)
Set the geometryvoid
setId(String id)
Set the feature idvoid
setProperties(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:
getSimpleGeometry
in 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:
getType
in classGeoJsonObject
- Returns:
- GeoJSON object type
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGeoJsonObject
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classGeoJsonObject
-
-