Class GeolocItem


  • public class GeolocItem
    extends java.lang.Object
    A geoloc item with methods to translate to/from geojson and to XML
    • Constructor Detail

      • GeolocItem

        public GeolocItem()
    • Method Detail

      • setGeometry

        public void setGeometry​(java.util.Map<java.lang.String,​java.lang.Object> geometry)
        Sets the Geometry
        Parameters:
        geometry - the geometry
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        Sets the Properties
        Parameters:
        properties - the geometry
      • getType

        public java.lang.String getType()
        Returns the Type
        Returns:
        The type
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Returns the Properties
        Returns:
        The properties
      • getGeometry

        public java.util.Map<java.lang.String,​java.lang.Object> getGeometry()
        Returns the Geometry
        Returns:
        The geometry
      • getLonLat

        public java.util.List<java.lang.Double> getLonLat()
        Returns the LonLat
        Returns:
        The LonLat
      • getLon

        public double getLon()
        Returns the Lon
        Returns:
        The Lon
      • getLat

        public double getLat()
        Returns the Lat
        Returns:
        The Lat
      • getAddress

        public java.lang.String getAddress()
        Returns the Address
        Returns:
        The address
      • getIcon

        public java.lang.String getIcon()
        Returns the Icon
        Returns:
        The icon
      • getLayer

        public java.lang.String getLayer()
        Returns the Layer
        Returns:
        The layer
      • setIcon

        public void setIcon​(java.lang.String icon)
        Sets the Icon
        Parameters:
        icon - the icon
      • toJSON

        public java.lang.String toJSON()
        Writes the geojson to a String
        Returns:
        The geojseon String
      • toXML

        public java.lang.String toXML()
        Writes the xml to a String. This is a non standard representation.
        Returns:
        The xml String
      • fromJSON

        public static GeolocItem fromJSON​(java.lang.String strJson)
                                   throws com.fasterxml.jackson.core.JsonParseException,
                                          com.fasterxml.jackson.databind.JsonMappingException,
                                          java.io.IOException
        Parses a geojson string to build a GeolocItem Object.
        Returns:
        The geolocItem object
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        java.io.IOException
      • getTypegeometry

        public java.lang.String getTypegeometry()
      • setTypegeometry

        public void setTypegeometry​(java.lang.String _typegeometry)