public class BasicFeature
extends java.lang.Object
implements io.jeo.vector.Feature
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BasicFeature.Storage |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
id
feature identifier
|
protected BasicFeature.Storage |
storage
Underlying feature storage.
|
| Modifier | Constructor and Description |
|---|---|
|
BasicFeature(java.lang.String id)
Constructor taking a feature identifier.
|
protected |
BasicFeature(java.lang.String id,
BasicFeature.Storage storage)
Constructor taking an identifier and feature storage object directly.
|
|
BasicFeature(java.lang.String id,
java.util.List<java.lang.Object> values)
Constructs a feature from an identifier and a list of values.
|
|
BasicFeature(java.lang.String id,
java.util.List<java.lang.Object> values,
io.jeo.vector.Schema schema)
Constructs a feature from an identifier, a list of values, and a schema.
|
|
BasicFeature(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> values)
Constructs a feature from an identifier and a map of values.
|
|
BasicFeature(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> values,
io.jeo.vector.Schema schema)
Constructs a feature from an identifier, a map of values, and a schema.
|
|
BasicFeature(java.lang.String id,
io.jeo.vector.Schema schema)
Constructor taking a feature identifier and an explicit schema object.
|
| Modifier and Type | Method and Description |
|---|---|
BasicFeature |
crs(org.osgeo.proj4j.CoordinateReferenceSystem crs) |
boolean |
equals(java.lang.Object obj) |
com.vividsolutions.jts.geom.Geometry |
geometry() |
java.lang.Object |
get(java.lang.String key) |
boolean |
has(java.lang.String key) |
int |
hashCode() |
java.lang.String |
id() |
java.util.Map<java.lang.String,java.lang.Object> |
map() |
BasicFeature |
put(com.vividsolutions.jts.geom.Geometry g) |
BasicFeature |
put(java.lang.String key,
java.lang.Object val) |
java.lang.String |
toString() |
protected java.lang.String id
protected BasicFeature.Storage storage
public BasicFeature(java.lang.String id)
id - The feature id, if null an identifier will be generated.public BasicFeature(java.lang.String id,
io.jeo.vector.Schema schema)
id - The feature id, if null an identifier will be generated.schema - The feature schema, if null the schema will be always be derivedpublic BasicFeature(java.lang.String id,
java.util.List<java.lang.Object> values)
id - The feature id, if null an identifier will be generated.values - The feature values.public BasicFeature(java.lang.String id,
java.util.List<java.lang.Object> values,
io.jeo.vector.Schema schema)
id - The feature id, if null an identifier will be generated.values - The feature values.schema - The feature schema, if null the schema will be always be derivedpublic BasicFeature(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> values)
id - The feature id, if null an identifier will be generated.values - The feature values.public BasicFeature(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> values,
io.jeo.vector.Schema schema)
id - The feature id, if null an identifier will be generated.values - The feature values.schema - The feature schema, if null the schema will be always be derivedprotected BasicFeature(java.lang.String id,
BasicFeature.Storage storage)
This constructor is typically only used for subclasses that need to implement custom feature storage.
public java.lang.String id()
id in interface io.jeo.vector.Featurepublic BasicFeature crs(org.osgeo.proj4j.CoordinateReferenceSystem crs)
public boolean has(java.lang.String key)
has in interface io.jeo.vector.Featurepublic java.lang.Object get(java.lang.String key)
get in interface io.jeo.vector.Featurepublic BasicFeature put(java.lang.String key, java.lang.Object val)
put in interface io.jeo.vector.Featurepublic BasicFeature put(com.vividsolutions.jts.geom.Geometry g)
put in interface io.jeo.vector.Featurepublic com.vividsolutions.jts.geom.Geometry geometry()
geometry in interface io.jeo.vector.Featurepublic java.util.Map<java.lang.String,java.lang.Object> map()
map in interface io.jeo.vector.Featurepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object