Products
Professional Services
Demos and Downloads
Help and Support
Products
Professional Services
Demos and Downloads
Help and Support
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.
N/A
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(BaseShape,IEnumerable<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.
Feature(Vertex,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 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.
Feature(Double,Double,String,IDictionary<String,String>)
N/A
N/A
This will return a copy of the well-known binary that represents the Feature.
N/A
N/A
N/A
N/A
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.
This method returns a stringthat represents the shape in well-known text. Well-known text allows you to describe geometries as a string of text. Well-known text is useful when you want to save a geometry in a format such as a text file, or when you simply want to cut and paste the text between other applications. An alternative to well-known text is well-known binary, which is a binary representation of a geometry object. We have methods that work with well-known binary as well. Below are some samples of what well-known text might look like for various kinds of geometries.POINT(5 17)LINESTRING(4 5,10 50,25 80)POLYGON1)MULTIPOINT(3.7 9.7,4.9 11.6)MULTILINESTRING2)MULTIPOLYGON3),4)) Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.
N/A
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.
N/A
N/A
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.
This method returns the union of the current feature and the target feature, defined as the set of all points in the current feature or the target feature.
This is useful for adding area features together to form a larger area shape.
Buffer(Double,GeographyUnit,DistanceUnit)
This method computes the area containing all of the points within a given distance from this feature.
This method computes the area containing all of the points within a given distance from this feature. In this case, you will be using the rounded RoundedBufferCapStyle and the default 8 quadrant segments. The distance unit is determined by the distanceUnit argument. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
Buffer(Double,Int32,GeographyUnit,DistanceUnit)
This method computes the area containing all of the points within a given distance from this feature.
This method computes the area containing all of the points within a given distance from this feature. In this case, you will be using the rounded RoundedBufferCapStyle. The distance unit is determined by the distanceUnit argument. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
Buffer(Double,Int32,BufferCapType,GeographyUnit,DistanceUnit)
This method computes the area containing all of the points within a given distance from this feature.
This method computes the area containing all of the points within a given distance from this feature. In this case, you will be using the rounded RoundedBufferCapStyle and the default 8 quadrant segments. The distance unit is determined by the distanceUnit argument. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.
This method returns if the targetFeature lies within the interior of the current feature.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
This method returns if the current feature and the targetFeature share some but not all interior points.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
This method returns if the current feature lies within the interior of the targetFeature.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
This method returns if the current feature and the targetFeature have at least one point in common.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
This method returns if the current feature and the targetFeature have no points in common.
None
This method returns if the current feature and the targetFeature are topologically equal.
Topologically equal means that the shapes are essentially the same. For example, let's say you have a line with two points, point A and point B. You also have another line that is made up of point A, point B and point C. Point A of line one shares the same vertex as point A of line two, and point B of line one shares the same vertex as point C of line two. They are both straight lines, so point B of line two would lie on the first line. Essentially the two lines are the same, with line 2 having just one extra point. Topologically they are the same line, so this method would return true. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
This method returns if the current feature and the targetFeature share some but not all points in common.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
This method returns of the current feature and the targetFeature have at least one boundary point in common, but no interior points.
As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.
This method returns the intersection of the current feature and the target feature, defined as the set of all points which lie in both the current feature and the target feature.
None
This method returns the difference between current feature and the specified feature, defined as the set of all points which lie in the current feature but not in the targetFeature.
None
This method returns the convex hull of the feature, defined as the smallest convex ring that contains all of the points in the feature.
This method is useful when you want to create a perimeter around the shape. For example, if you had a MultiPolygon that represented buildings on a campus, you could easily get the convex hull of the buildings and determine the perimeter of all of the buildings together. This also works with MultiPoint shapes, where each point may represent a certain type of person you are doing statistics on. With convex hull, you can get an idea of the regions those points are located in.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
This method returns the union of the specified features.
This is useful for adding area features together to form a larger area feature.
GetWellKnownBinaryCore(RingOrder,WkbByteOrder)
This method returns a byte array that represents the feature in well-known binary.
This method returns a byte array that represents the feature in well-known binary. Well-known binary allows you to describe geometries as a binary array. Well-known binary is useful when you want to save a geometry in an efficient format using as little space as possible. An alternative to well-known binary is well-known text, which is a textual representation of a geometry object. We have methods that work with well known text as well. Overriding: Please ensure that you validate the parameters being passed in and raise the exceptions defined above.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
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.
N/A
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.
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.