ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
The class Feature is the basic unit of which a FeatureSource is composed. A FeatureSource can be taken from a collection of Features stored in a ShapeFile, SQL Server 2008, Oracle, etc.A Feature is the basic data unit structure which is comprised of IDs that mark the identification of the Feature, a shape and a collection of data.
When you create the Feature, specify the ID of the BaseShape you want to use as a basis.
This method is the constructor for the Feature.
This overload allows you to create a feature using well-known binary. The Id for this Feature will be a random GUID.
This method is the constructor for the Feature.
This overload allows you to create a feature using well-known binary and specify the Id.
This method is the constructor for the Feature.
This overload allows you to create a feature using well-known text. The Id for the Feature will be a random GUID.
This method is the constructor for the Feature.
This overload allows you to create the Feature from well-known text and specify the Id.
Feature(BaseShape,IDictionary<String,String>)
N/A
N/A
Feature(String,String,IDictionary<String,String>)
N/A
N/A
Feature(String,String,IEnumerable<String>)
N/A
N/A
Feature(Byte[],String,IEnumerable<String>)
This method is the constructor for the Feature.
This overload allows you to create the Feature from well-known binary and feature ID, as well as specify the column values.
Feature(Byte[],String,IDictionary<String,String>)
N/A
N/A
This method is the constructor for the Feature.
You can use this constructor to create a point Feature easily.
This method is the constructor for the Feature.
You can use this constructor to create a point Feature and specify the Id.
Feature(Vertex,String,IEnumerable<String>)
This method is the constructor for the Feature.
You can use this constructor to create a point Feature and specify the Id as well as the column values.
This method is the constructor for the Feature.
You can use this constructor to create a point Feature based on x and y coordinates.
This method is the constructor for the Feature.
You can use this constructor to create a point Feature based on x and y coordinates and specify the Id.
Feature(Double,Double,String,IEnumerable<String>)
This method is the constructor for the Feature.
You can use this constructor to create a point Feature based on x and y coordinates and specify both the Id and the column values.
This will return a copy of the well-known binary that represents the Feature.
None
This method allows you to get a shape class from a Feature. Because the Feature stores the geometry for itself in well-known binary, it may take some time to generate a shape class if the geometry is complex.
This method allows you to get the well-known text from a Feature. Because the Feature stores the geometry for itself in well-known binary, it may take some time to generate the text if the geometry is complex.
None
CloneDeep(IEnumerable<String>)
This method clones the entire structure, creating a totally separate copy.
This method will return a complete copy of the Feature. As this is a deep clone, there are no shared references between the source and the copy.
CloneDeep(ReturningColumnsType)
This method clones the entire structure, creating a totally separate copy.
This method will return a complete copy of the Feature. As this is a deep clone, there are no shared references between the source and the copy.
This method returns the results of some simple validity tests on the Feature.
This method is used primarily to ensure that a Feature is valid. The reason is, since this is a structure, we cannot control the main constructor that allows you to create a Feature in an invalid state – that state being one with no well-known binary at its core. If you use the constructure set provided, then the state should always be valid. This is a property you may want to check before you work with a Feature.
None
This method returns a semi-unique hash code for the Feature.
None
N/A
N/A
N/A
N/A
The Id is a string that represents the unique identifier for this Feature. If the feature is returned from a FeatureSource, the Id will be the unique field descriptor used by the FeatureSource. For Shape Files this may be an integer, but for spatial databases the Id may be a GUID.
N/A
This property gets a dictionary of values to represent the column data related to this Feature.
This property holds the column data related to this Feature. You can find the values in the dictionary using the column name as the key. Most methods that query and return InternalFeatures allow you to specify which columns of data you want returned with the results. You can also freely add and modify the data, as it is simply an in-memory dictionary. Any values added, deleted or updated will have no effect unless the Feature is part of a transaction.