public class PointFeature extends Object implements Serializable
Constructor and Description |
---|
PointFeature() |
PointFeature(String id) |
PointFeature(String id,
com.vividsolutions.jts.geom.Geometry g,
HashMap<String,Integer> ad) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String id,
Integer val) |
boolean |
equals(Object o)
Compare to another object.
|
static PointFeature |
fromJsonNode(com.fasterxml.jackson.databind.JsonNode feature) |
com.vividsolutions.jts.geom.Geometry |
getGeom() |
String |
getId() |
double |
getLat() |
double |
getLon() |
com.vividsolutions.jts.geom.Polygon |
getPolygon() |
Map<String,Integer> |
getProperties() |
int |
getProperty(String id) |
int |
hashCode()
Hash the relevant features of this PointFeature for efficient use in HashSets, etc.
|
void |
setGeom(com.vividsolutions.jts.geom.Geometry geom) |
void |
setId(String id) |
void |
setLat(double lat) |
void |
setLon(double lon) |
public PointFeature()
public PointFeature(String id)
public PointFeature(String id, com.vividsolutions.jts.geom.Geometry g, HashMap<String,Integer> ad) throws EmptyPolygonException, UnsupportedGeometryException
public void setGeom(com.vividsolutions.jts.geom.Geometry geom) throws EmptyPolygonException, UnsupportedGeometryException
public com.vividsolutions.jts.geom.Polygon getPolygon()
public com.vividsolutions.jts.geom.Geometry getGeom()
public String getId()
public static PointFeature fromJsonNode(com.fasterxml.jackson.databind.JsonNode feature) throws EmptyPolygonException, UnsupportedGeometryException
public void setId(String id)
public double getLat()
public double getLon()
public void setLat(double lat)
public void setLon(double lon)
public int getProperty(String id)
public boolean equals(Object o)
Copyright © 2018. All rights reserved.