ThinkGeo.MapSuite.Core.InMemoryFeatureLayer
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.
This layer is backed by memory and is typically used for temporary features.
Inheritance Hierarchy
Members Summary
Public Constructors
InMemoryFeatureLayer()
Parameters
InMemoryFeatureLayer(IEnumerable<FeatureSourceColumn>,IEnumerable<Feature>)
Parameters
InMemoryFeatureLayer(IEnumerable<FeatureSourceColumn>,IEnumerable<BaseShape>)
Parameters
Protected Constructors
Public Methods
GetColumns()
You should set the column names for the data that the InternalFeatures will hold. For example, if you have some features that represent road signs, then one column you may want to add is “Sign Type”. Then, for every Feature you add to the layer, you need to add the “Sign Type” and a value to the InternalFeatures' ColumnValues dictionary. If you provide this information, then you can use things like ValueStyles, Labeling, etc. based on the columns you have defined.
Return Value
Parameters
BuildIndex()
Return Value
Type:Void
Description:N/A
Parameters
Clear()
Return Value
Type:Void
Description:N/A
Parameters
RequestDrawing()
Return Value
Type:Void
Description:N/A
Parameters
RequestDrawing(RectangleShape)
Return Value
Type:Void
Description:N/A
Parameters
RequestDrawing(IEnumerable<RectangleShape>)
Return Value
Type:Void
Description:N/A
Parameters
RequestDrawing(TimeSpan)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
RequestDrawing(TimeSpan,RequestDrawingBufferTimeType)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
RequestDrawing(RectangleShape,TimeSpan)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)
Return Value
Type:Void
Description:N/A
Parameters
bufferTime
Type:TimeSpan
Description:N/A
GetThreadSafetyLevel()
Return Value
Parameters
CloneDeep()
Return Value
Parameters
Open()
Return Value
Type:Void
Description:N/A
Parameters
Close()
Return Value
Type:Void
Description:N/A
Parameters
GetBoundingBox()
Return Value
Parameters
Draw(GeoCanvas,Collection<SimpleCandidate>)
Return Value
Type:Void
Description:N/A
Parameters
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters
Protected Methods
OpenCore()
This abstract method is called from the concrete public method Open. The open method plays an important role, as it is responsible for initializing the Layer. Most methods on the Layer will throw an exception if the state of the Layer is not opened. When the map draws each layer, the layer will be opened as one of its first steps; then, after it is finished drawing with that layer, it will close it. In this way, we are sure to release all resources used by the Layer. When implementing the abstract method, consider opening the FeatureSource or RasterSource. You will get a chance to close these in the Close method of the Layer.
Return Value
Type:Void
Description:None
Parameters
RequireLinkProcess(IEnumerable<String>)
Return Value
Type:Boolean
Description:N/A
Parameters
returningColumnNames
Type:IEnumerable<String>
Description:N/A
DrawFeaturesWithStyleFilters(GeoCanvas,Dictionary<String,Collection<Feature»,Collection<SimpleCandidate>,ZoomLevel,RectangleShape)
Return Value
Type:Void
Description:N/A
Parameters
featuresForFilters
Type:Dictionary<String,Collection<
Feature»
Description:N/A
OnDrawingFeatures(DrawingFeaturesEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnDrawingWrappingFeatures(DrawingWrappingFeaturesFeatureLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
DrawCore(GeoCanvas,Collection<SimpleCandidate>)
Return Value
Type:Void
Description:N/A
Parameters
SetupTools()
Return Value
Type:Void
Description:N/A
Parameters
SetupToolsCore()
Return Value
Type:Void
Description:N/A
Parameters
CloseCore()
Return Value
Type:Void
Description:N/A
Parameters
GetBoundingBoxCore()
Return Value
Parameters
OnRequestedDrawing(RequestedDrawingLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnRequestingDrawing(RequestingDrawingLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
GetThreadSafetyLevelCore()
Return Value
Parameters
CloneDeepCore()
Return Value
Parameters
DrawException(GeoCanvas,Exception)
Return Value
Type:Void
Description:N/A
Parameters
e
Type:Exception
Description:N/A
DrawExceptionCore(GeoCanvas,Exception)
Return Value
Type:Void
Description:N/A
Parameters
e
Type:Exception
Description:N/A
OnDrawingException(DrawingExceptionLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnDrawnException(DrawnExceptionLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
DrawAttributionCore(GeoCanvas,String)
Return Value
Type:Void
Description:N/A
Parameters
attribution
Type:String
Description:N/A
OnDrawingAttribution(DrawingAttributionLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnDrawnAttribution(DrawnAttributionLayerEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnDrawingProgressChanged(DrawingProgressChangedEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
Columns
This property gets the columns of data for the InternalFeatures in this Layer.
You should set the column names for the data that the InternalFeatures will hold. For example, if you have some features that represent road signs, then one column you may want to add is “Sign Type”. Then, for every Feature you add to the layer, you need to add the “Sign Type” and a value to the InternalFeatures' ColumnValues dictionary. If you provide this information, then you can use things like ValueStyles, Labeling, etc. based on the columns you have defined.
Return Value
InternalFeatures
This property gets the dictionary that holds your InternalFeatures.
The dictionary is a quick way to access your InternalFeatures. You can easily add, remove or edit features in this dictionary and they instantly take effect in the layer. You can always use the EditTools to do the same thing, but this is a shortcut, as the data is backed in memory so it is very pliable.
Return Value
HasBoundingBox
This property checks to see if a Layer has a BoundingBox or not. If it has no BoundingBox, it will throw an exception when you call the GetBoundingBox() and GetFullExtent() APIs. In InMemoryFeatureLayer, we override this API and mark it as true.
The default implementation in the base class returns false.
Return Value
WrappingExtent
N/A
Return Value
WrappingMode
N/A
Return Value
EditTools
N/A
Return Value
FeatureIdsToExclude
N/A
Return Value
QueryTools
N/A
Return Value
MaxRecordsToDraw
N/A
Return Value
FeatureSource
N/A
Return Value
DrawingQuality
N/A
Return Value
ZoomLevelSet
N/A
Return Value
DrawingMarginPercentage
N/A
Return Value
DrawingMarginInPixel
N/A
Return Value
GeometryValidationMode
N/A
Return Value
RequestDrawingInterval
N/A
Return Value
IsOpen
N/A
Return Value
DrawingTime
N/A
Return Value
Name
N/A
Return Value
Attribution
N/A
Return Value
IsVisible
N/A
Return Value
Transparency
N/A
Return Value
BlueTranslation
N/A
Return Value
RedTranslation
N/A
Return Value
GreenTranslation
N/A
Return Value
KeyColors
N/A
Return Value
IsNegative
N/A
Return Value
IsGrayscale
N/A
Return Value
DrawingExceptionMode
N/A
Return Value
Protected Properties
FetchedCount
N/A
Return Value
FetchedBytes
N/A
Return Value
StyleTime
N/A
Return Value
FetchTime
N/A
Return Value
IsOpenCore
N/A
Return Value
Public Events
DrawingFeatures
N/A