SimpleFeature Class |
Namespace: Telogis.GeoBase.DataSources
The SimpleFeature type exposes the following members.
Name | Description | |
---|---|---|
SimpleFeature(LatLon, String) |
Construct a new SimpleFeature of a given type.
| |
SimpleFeature(LatLon, String, JSONObject) |
Construct a new SimpleFeature with the given attributes.
|
Name | Description | |
---|---|---|
Location |
The location of the feature.
| |
Metadata |
Other information associated with this feature.
| |
Type |
The type of this feature. Used by the summary function.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FromJSON |
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.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Summarize |
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" } }, ] } | |
ToJSON |
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.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |