Click or drag to resize

SimpleFeature Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A simple implementation of IPointFeature. A SimpleFeature has a Location, Type and Metadata associated with it. When a cluster is summarized, SimpleFeatures with the same Type are grouped together. For example, if a SimpleFeature represents a vehicle then the Type might represent the vehicle's status: Moving, Idle, Parked, and so on.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.DataSourcesSimpleFeature

Namespace:  Telogis.GeoBase.DataSources
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class SimpleFeature : IPointFeature

The SimpleFeature type exposes the following members.

Constructors
  NameDescription
Public methodSimpleFeature(LatLon, String)
Construct a new SimpleFeature of a given type.
Public methodSimpleFeature(LatLon, String, JSONObject)
Construct a new SimpleFeature with the given attributes.
Top
Properties
  NameDescription
Public propertyLocation
The location of the feature.
Public propertyMetadata
Other information associated with this feature.
Public propertyType
The type of this feature. Used by the summary function.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFromJSON
Populates the feature's data from an object in the format generated by ToJSON(). The object passed in has two key-value pairs representing the location and the tag, and an optional key-value pair representing the metadata.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberSummarize
Creates a summary for one or more SimpleFeature objects. The resulting object will be of the following form - note that "features" will only be populated if there are fewer than 50 features total.
JavaScript
{ "tally" : { "Restaurant" : 2,
              "Jeweler" : 1,
              "ATM" : 1 },
  "features" : [
    { "location" : "33.615575,-117.930215", "type" : "Restaurant", "metadata" : { "Name" : "Rudy's Pub & Grill" } },
    { "location" : "33.615035,-117.930154", "type" : "Restaurant", "metadata" : { "Name" : "Mama D's Italy Kitchen" } },
    { "location" : "33.620420,-117.923972", "type" : "Jeweler",    "metadata" : { "Name" : "William Harold Jewelers" } },
    { "location" : "33.614501,-117.932181", "type" : "ATM",        "metadata" : { "Name" : "Bank of America ATM" } },
  ]
}
Public methodToJSON
Converts the feature into an object that can be easily serialized for transmission over HTTP. The returned object has two key-value pairs representing the location and the tag.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also