Package mil.nga.sf.geojson
Class GeoJsonObject
- java.lang.Object
-
- mil.nga.sf.geojson.GeoJsonObject
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Feature
,FeatureCollection
,Geometry
public abstract class GeoJsonObject extends Object implements Serializable
GeoJSON Object- Author:
- yutzlejp
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeoJsonObject()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
double[]
getBbox()
Get the bounding boxObject
getForeignMember(String name)
Get the foreign member by nameMap<String,Object>
getForeignMembers()
Get the foreign membersabstract Geometry
getSimpleGeometry()
Get the simple feature geometryabstract String
getType()
Get the GeoJSON object typeObject
hasForeignMember(String name)
Check if has the foreign memberboolean
hasForeignMembers()
Check if has foreign membersint
hashCode()
void
setBbox(double[] bbox)
Set the bounding boxvoid
setForeignMember(String name, Object value)
Set a foreign member
-
-
-
Method Detail
-
getBbox
public double[] getBbox()
Get the bounding box- Returns:
- bounding box
-
setBbox
public void setBbox(double[] bbox)
Set the bounding box- Parameters:
bbox
- bounding box
-
getType
public abstract String getType()
Get the GeoJSON object type- Returns:
- GeoJSON object type
-
getSimpleGeometry
public abstract Geometry getSimpleGeometry()
Get the simple feature geometry- Returns:
- simple feature geometry
- Since:
- 3.3.3
-
getForeignMembers
public Map<String,Object> getForeignMembers()
Get the foreign members- Returns:
- foreign members
-
getForeignMember
public Object getForeignMember(String name)
Get the foreign member by name- Parameters:
name
- name- Returns:
- value
-
hasForeignMember
public Object hasForeignMember(String name)
Check if has the foreign member- Parameters:
name
- name- Returns:
- true if has
-
setForeignMember
public void setForeignMember(String name, Object value)
Set a foreign member- Parameters:
name
- namevalue
- value
-
hasForeignMembers
public boolean hasForeignMembers()
Check if has foreign members- Returns:
- true if has
-
-