User Tools

Site Tools


thinkgeo.mapsuite.windowsphonecore.featurecache

ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> FeatureCache is a cache system used in FeatureSource to speed up the fetching data system.

Remarks

The FeatureCache system uses the BoundingBox as the “Key” to cache the features. For example, if I first get data for a BoundingBox(BoundingBox1) and cache the features within the BoundingBox, in the future if I want to get the features within another BoundingBox(BoundingBox2) which is within BoundingBox1, I will get the features directly from the FeatureCache instead of from FileSystem or DBSystem.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodFeatureCache This is the default constructor that will create a new instance of the FeatureCache.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodAdd RectangleShape, Collection<Feature> This method will add an item to the FeatureCache system by passing a WorldExtent as “Key” and a collection of features as its corresponding cached features.
Public MethodClear This method clears all of the CachedItems in this FeatureCache.
Public MethodClose The default implementation is to do nothing.
Public MethodEquals Object Object
Public MethodGetFeatures RectangleShape This method returns a Collection of Features cached in the FeatureCache system. All of the returning features are within the BoundingBox and were fetched from FileSystem or DBSystem in a previous operation.
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodIsExtentCached RectangleShape This method determines whether the WorldExtent is already cached in the FeatureCache System.
Public MethodOpen The default implementation is to do nothing.
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodAddCore RectangleShape, Collection<Feature> This method will add an item to the FeatureCache system by passing a WorldExtent as “Key” and a collection of features as its corresponding cached features.
Protected MethodCloseCore The default implementation is to do nothing.
Protected MethodFinalize Object
Protected MethodGetFeaturesCore RectangleShape This method returns a Collection of Features cached in the FeatureCache system. All of the returning features are within the BoundingBox and were fetched from FileSystem or DBSystem in a previous operation.
Protected MethodMemberwiseClone Object
Protected MethodOpenCore The default implementation is to do nothing.

Public Properties

Name Return DeclaringType Summary
Public PropertyIsActive Boolean This boolean property sepcifies whether cache system is active or not.

Protected Properties

Name Return DeclaringType Summary
Protected PropertyCachedItems Dictionary<RectangleShape,Collection<Feature» This property specifies the Cached dictionary items in the FeatureCache system.

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

FeatureCache()

This is the default constructor that will create a new instance of the FeatureCache.

Remarks

The cache system is not used by default. If you want to use it, you must set the <strong>IsActive</strong> property to true.

Parameters

Name Type Description

Go Back

Protected Constructors

Public Methods

Add(RectangleShape, Collection<Feature>)

This method will add an item to the FeatureCache system by passing a WorldExtent as “Key” and a collection of features as its corresponding cached features.

Remarks

This method is the concrete wrapper for the virtual method AddCore. It will return whatever is returned by the AddCore method. To determine what the default implementation of the abstract AddCore method is, please see the documentation for it.

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –>
features Collection<Feature><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Feature} –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

Clear()

This method clears all of the CachedItems in this FeatureCache.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

Close()

The default implementation is to do nothing.

Remarks

This method is the concrete wrapper for the virtual method CloseCore. It will return whatever is returned by the CloseCore method. To determine what the default implementation of the abstract CloseCore method is, please see the documentation for it.

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetFeatures(RectangleShape)

This method returns a Collection of Features cached in the FeatureCache system. All of the returning features are within the BoundingBox and were fetched from FileSystem or DBSystem in a previous operation.

Remarks

This method is the concrete wrapper for the virtual method GetFeaturesCore. It will return whatever is returned by the GetBoundingBoxCore method. To determine what the default implementation of the abstract GetBoundingBoxCore method is, please see the documentation for it.

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.

Return Value

Return Type Description
Collection<Feature><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Feature} –> This method returns a Collection of Features cached in the FeatureCache system.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

IsExtentCached(RectangleShape)

This method determines whether the WorldExtent is already cached in the FeatureCache System.

Return Value

Return Type Description
Boolean<!– System.Boolean –> True if the specified WorldExtent is already cached. Otherwise, returns false.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> The target WorldExtent which will be determined as already cached or not.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

Open()

The default implementation is to do nothing.

Remarks

This method is the concrete wrapper for the virtual method OpenCore. It will return whatever is returned by the OpenCore method. To determine what the default implementation of the abstract OpenCore method is, please see the documentation for it.

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

AddCore(RectangleShape, Collection<Feature>)

This method will add an item to the FeatureCache system by passing a WorldExtent as “Key” and a collection of features as its corresponding cached features.

Remarks

This method is the concrete wrapper for the virtual method AddCore. It will return whatever is returned by the AddCore method. To determine what the default implementation of the abstract AddCore method is, please see the documentation for it.

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –>
features Collection<Feature><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Feature} –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

CloseCore()

The default implementation is to do nothing.

Remarks

This method is the concrete wrapper for the virtual method CloseCore. It will return whatever is returned by the CloseCore method. To determine what the default implementation of the abstract CloseCore method is, please see the documentation for it.

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetFeaturesCore(RectangleShape)

This method returns a Collection of Features cached in the FeatureCache system. All of the returning features are within the BoundingBox and were fetched from FileSystem or DBSystem in a previous operation.

Remarks

This method is the concrete wrapper for the virtual method GetFeaturesCore. It will return whatever is returned by the GetBoundingBoxCore method. To determine what the default implementation of the abstract GetBoundingBoxCore method is, please see the documentation for it.

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.

Return Value

Return Type Description
Collection<Feature><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Feature} –> This method returns a Collection of Features cached in the FeatureCache system.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

OpenCore()

The default implementation is to do nothing.

Remarks

This method is the concrete wrapper for the virtual method OpenCore. It will return whatever is returned by the OpenCore method. To determine what the default implementation of the abstract OpenCore method is, please see the documentation for it.

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.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

Public Properties

IsActive

This boolean property sepcifies whether cache system is active or not.

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

Protected Properties

CachedItems

This property specifies the Cached dictionary items in the FeatureCache system.

Return Value

Return Type
Dictionary<RectangleShape,Collection<Feature»<!– System.Collections.Generic.Dictionary{ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape,System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.Feature}} –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.FeatureCache –> Go Back

Public Events

thinkgeo.mapsuite.windowsphonecore.featurecache.txt · Last modified: 2017/03/16 21:59 (external edit)