public class GeolocItemPolygon extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_GEOMETRY |
static String |
PATH_GEOMETRY_COORDINATES |
static String |
PATH_GEOMETRY_TYPE |
static String |
PATH_PROPERTIES |
static String |
PATH_PROPERTIES_ICON |
static String |
PATH_PROPERTIES_LAYER |
static String |
PATH_TYPE |
static String |
VALUE_GEOMETRY_TYPE_POLYGON |
static String |
VALUE_GEOMETRY_TYPE_POLYLINE |
static String |
VALUE_TYPE |
static String |
XML_ICON |
static String |
XML_LAT |
static String |
XML_LAYER |
static String |
XML_LON |
static String |
XML_ROOT |
| Constructor and Description |
|---|
GeolocItemPolygon() |
| Modifier and Type | Method and Description |
|---|---|
static GeolocItemPolygon |
fromJSON(String strJson)
Parses a geojson string to build a GeolocItem Object.
|
Map<String,Object> |
getGeometry()
Returns the Geometry
|
String |
getIcon()
Returns the Icon
|
double |
getLat()
Returns the Lat
|
String |
getLayer()
Returns the Layer
|
double |
getLon()
Returns the Lon
|
List<Double> |
getLonLat()
Returns the LonLat
|
Map<String,Object> |
getProperties()
Returns the Properties
|
String |
getType()
Returns the Type
|
String |
getTypegeometry() |
void |
setGeometry(Map<String,Object> geometry)
Sets the Geometry
|
void |
setIcon(String icon)
Sets the Icon
|
void |
setProperties(Map<String,Object> properties)
Sets the Properties
|
void |
setTypegeometry(String _typegeometry) |
String |
toJSON()
Writes the geojson to a String
|
String |
toXML()
Writes the xml to a String.
|
public static final String PATH_TYPE
public static final String PATH_GEOMETRY
public static final String PATH_GEOMETRY_TYPE
public static final String PATH_GEOMETRY_COORDINATES
public static final String PATH_PROPERTIES
public static final String PATH_PROPERTIES_ICON
public static final String PATH_PROPERTIES_LAYER
public static final String XML_ROOT
public static final String XML_LON
public static final String XML_LAT
public static final String XML_ICON
public static final String XML_LAYER
public static final String VALUE_TYPE
public static final String VALUE_GEOMETRY_TYPE_POLYGON
public static final String VALUE_GEOMETRY_TYPE_POLYLINE
public void setGeometry(Map<String,Object> geometry)
geometry - the geometrypublic void setProperties(Map<String,Object> properties)
properties - the geometrypublic String getType()
public Map<String,Object> getProperties()
public double getLon()
public double getLat()
public String getIcon()
public String getLayer()
public void setIcon(String icon)
icon - the iconpublic String toJSON()
public String toXML()
public static GeolocItemPolygon fromJSON(String strJson) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic String getTypegeometry()
public void setTypegeometry(String _typegeometry)
Copyright © 2023 City of Paris. All rights reserved.