User Tools

Site Tools


thinkgeo.mapsuite.core.inmemoryfeaturelayer

This is an old revision of the document!


Table of Contents

ThinkGeo.MapSuite.Core.InMemoryFeatureLayer

This layer is backed by memory and is typically used for temporary features.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.Layer
      • ThinkGeo.MapSuite.Core.FeatureLayer
        • ThinkGeo.MapSuite.Core.InMemoryFeatureLayer

Members Summary

Public Constructors

InMemoryFeatureLayer

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This is a constructor for the class.

InMemoryFeatureLayer

InMemoryFeatureLayer

Protected Constructors

Public Methods

BuildIndex

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method build a spatial index for a passed group of featurs which increases access speed.

Clear

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method will clear all the features included in the feature source.

CloneDeep

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

Close

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

Draw

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetBoundingBox

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

GetColumns

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method returns the columns of data for the InternalFeatures in this Layer.

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetThreadSafetyLevel

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Open

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

RequestDrawing

RequestDrawing

  • Parameters:TimeSpan
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

RequestDrawing

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Protected Methods

1BU=

  • Parameters:IEnumerable<String>
  • DeclaringType:FeatureLayer
  • Summary:N/A

1xU=

CloneDeepCore

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

CloseCore

DrawAttributionCore

DrawCore

DrawException

DrawExceptionCore

Finalize

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetBoundingBoxCore

GetThreadSafetyLevelCore

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

MemberwiseClone

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

OnDrawingAttribution

OnDrawingException

OnDrawingFeatures

OnDrawingProgressChanged

OnDrawnAttribution

OnDrawnException

OnRequestedDrawing

OnRequestingDrawing

OpenCore

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method opens the Layer so that it is initialized and ready to use.

SetupTools

SetupToolsCore

Public Properties

Attribution

  • Return:String
  • Summary:N/A

BlueTranslation

  • Return:Single
  • Summary:N/A

Columns

  • Return:Collection<FeatureSourceColumn>
  • Summary:This property gets the columns of data for the InternalFeatures in this Layer.

DrawingExceptionMode

DrawingMarginInPixel

  • Return:Single
  • Summary:N/A

DrawingMarginPercentage

  • Return:Double
  • Summary:N/A

DrawingQuality

DrawingTime

  • Return:TimeSpan
  • Summary:N/A

EditTools

FeatureIdsToExclude

  • Return:Collection<String>
  • Summary:N/A

FeatureSource

GeometryValidationMode

GreenTranslation

  • Return:Single
  • Summary:N/A

HasBoundingBox

  • Return:Boolean
  • Summary: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.

InternalFeatures

IsGrayscale

  • Return:Boolean
  • Summary:N/A

IsNegative

  • Return:Boolean
  • Summary:N/A

IsOpen

  • Return:Boolean
  • Summary:N/A

IsVisible

  • Return:Boolean
  • Summary:N/A

KeyColors

  • Return:Collection<GeoColor>
  • Summary:N/A

MaxRecordsToDraw

  • Return:Int32
  • Summary:N/A

Name

  • Return:String
  • Summary:N/A

QueryTools

RedTranslation

  • Return:Single
  • Summary:N/A

RequestDrawingInterval

  • Return:TimeSpan
  • Summary:N/A

Transparency

  • Return:Single
  • Summary:N/A

WrappingExtent

WrappingMode

ZoomLevelSet

Protected Properties

0BU=

  • Return:TimeSpan
  • Summary:N/A

0xU=

  • Return:TimeSpan
  • Summary:N/A

IsOpenCore

  • Return:Boolean
  • Summary:N/A

yhU=

  • Return:Int64
  • Summary:N/A

zRU=

  • Return:Int64
  • Summary:N/A

Public Events

Public Constructors

InMemoryFeatureLayer()

This is a constructor for the class.

Remarks

If you use this constructor, then you need to specify the FeatureSource column manually.

Parameters

InMemoryFeatureLayer(IEnumerable<FeatureSourceColumn>,IEnumerable<Feature>)

This is a constructor for the class.

Remarks

This constructor gets the layer ready to use.

Parameters

featureSourceColumns

  • Type:IEnumerable<FeatureSourceColumn>
  • Description:This parameter is the FeatureSourceColumn in this class that you want to use. features * Type:IEnumerable<Feature> * Description:This parameter represents the features in this class that you want to use.

Go Back

InMemoryFeatureLayer(IEnumerable<FeatureSourceColumn>,IEnumerable<BaseShape>)

This is a constructor for the class.

Remarks

This constructor gets the layer ready to use.

Parameters

featureSourceColumns

  • Type:IEnumerable<FeatureSourceColumn>
  • Description:This parameter is the in this class that you want to use. shapes * Type:IEnumerable<BaseShape> * Description:This parameter represents the shapes in this class that you want to use.

Go Back

Protected Constructors

Public Methods

BuildIndex()

This method build a spatial index for a passed group of featurs which increases access speed.

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

Clear()

This method will clear all the features included in the feature source.

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

CloneDeep()

N/A

Remarks

N/A

Return Value

  • Return Type:Layer
  • Description:N/A

Parameters

Close()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

Draw(GeoCanvas,Collection<SimpleCandidate>)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

labelsInAllLayers

Go Back

Equals(Object)

N/A

Remarks

N/A

Return Value

  • Return Type:Boolean
  • Description:N/A

Parameters

obj

  • Type:Object
  • Description:N/A

Go Back

GetBoundingBox()

N/A

Remarks

N/A

Return Value

Parameters

GetColumns()

This method returns the columns of data for the InternalFeatures in this Layer.

Remarks

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

GetHashCode()

N/A

Remarks

N/A

Return Value

  • Return Type:Int32
  • Description:N/A

Parameters

GetThreadSafetyLevel()

N/A

Remarks

N/A

Return Value

Parameters

GetType()

N/A

Remarks

N/A

Return Value

  • Return Type:Type
  • Description:N/A

Parameters

Open()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentsToRefresh

bufferTime

  • Type:TimeSpan
  • Description:N/A

bufferTimeType

Go Back

RequestDrawing(RectangleShape,TimeSpan)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentToRefresh

bufferTime

  • Type:TimeSpan
  • Description:N/A

Go Back

RequestDrawing(TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

bufferTime

  • Type:TimeSpan
  • Description:N/A

bufferTimeType

Go Back

RequestDrawing(TimeSpan)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

bufferTime

  • Type:TimeSpan
  • Description:N/A

Go Back

RequestDrawing(IEnumerable<RectangleShape>)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentsToRefresh

Go Back

RequestDrawing(RectangleShape)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentToRefresh

Go Back

RequestDrawing()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentToRefresh

bufferTime

  • Type:TimeSpan
  • Description:N/A

bufferTimeType

Go Back

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

extentsToRefresh

bufferTime

  • Type:TimeSpan
  • Description:N/A

Go Back

ToString()

N/A

Remarks

N/A

Return Value

  • Return Type:String
  • Description:N/A

Parameters

Protected Methods

1BU=(IEnumerable<String>)

N/A

Remarks

N/A

Return Value

  • Return Type:Boolean
  • Description:N/A

Parameters

returningColumnNames

  • Type:IEnumerable<String>
  • Description:N/A

Go Back

1xU=(GeoCanvas,Dictionary<String,Collection<Feature>>,Collection<SimpleCandidate>,ZoomLevel,RectangleShape)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

featuresForFilters

  • Type:Dictionary<String,Collection<Feature»
  • Description:N/A

labelsInAllLayers

currentZoomLevel

marginWorldExtent

Go Back

CloneDeepCore()

N/A

Remarks

N/A

Return Value

  • Return Type:Layer
  • Description:N/A

Parameters

CloseCore()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

DrawAttributionCore(GeoCanvas,String)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

attribution

  • Type:String
  • Description:N/A

Go Back

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

labelsInAllLayers

Go Back

DrawException(GeoCanvas,Exception)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

e

  • Type:Exception
  • Description:N/A

Go Back

DrawExceptionCore(GeoCanvas,Exception)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

canvas

e

  • Type:Exception
  • Description:N/A

Go Back

Finalize()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

GetBoundingBoxCore()

N/A

Remarks

N/A

Return Value

Parameters

GetThreadSafetyLevelCore()

N/A

Remarks

N/A

Return Value

Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value

  • Return Type:Object
  • Description:N/A

Parameters

OnDrawingAttribution(DrawingAttributionLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

args

Go Back

OnDrawingException(DrawingExceptionLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

e

Go Back

OnDrawingFeatures(DrawingFeaturesEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

e

Go Back

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

e

Go Back

OnDrawingWrappingFeatures(DrawingWrappingFeaturesFeatureLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

OnDrawnAttribution(DrawnAttributionLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

args

Go Back

OnDrawnException(DrawnExceptionLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

e

Go Back

OnRequestedDrawing(RequestedDrawingLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

eventArgs

Go Back

OnRequestingDrawing(RequestingDrawingLayerEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

eventArgs

Go Back

OpenCore()

This method opens the Layer so that it is initialized and ready to use.

Remarks

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

  • Return Type:Void
  • Description:None

Parameters

SetupTools()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

SetupToolsCore()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

Public Properties

Attribution

N/A

Remarks

N/A

Return Value

Return Type:String

Go Back

BlueTranslation

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

Columns

This property gets the columns of data for the InternalFeatures in this Layer.

Remarks

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

Return Type:Collection<FeatureSourceColumn>

Go Back

DrawingExceptionMode

N/A

Remarks

N/A

Return Value

DrawingMarginInPixel

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

DrawingMarginPercentage

N/A

Remarks

N/A

Return Value

Return Type:Double

Go Back

DrawingQuality

N/A

Remarks

N/A

Return Value

Return Type:DrawingQuality

Go Back

DrawingTime

N/A

Remarks

N/A

Return Value

Return Type:TimeSpan

Go Back

EditTools

N/A

Remarks

N/A

Return Value

Return Type:EditTools

Go Back

FeatureIdsToExclude

N/A

Remarks

N/A

Return Value

Return Type:Collection<String>

Go Back

FeatureSource

N/A

Remarks

N/A

Return Value

Return Type:FeatureSource

Go Back

GeometryValidationMode

N/A

Remarks

N/A

Return Value

GreenTranslation

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

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.

Remarks

The default implementation in the base class returns false.

Return Value

Return Type:Boolean

Go Back

InternalFeatures

This property gets the dictionary that holds your InternalFeatures.

Remarks

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

IsGrayscale

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

IsNegative

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

IsOpen

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

IsVisible

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

KeyColors

N/A

Remarks

N/A

Return Value

Return Type:Collection<GeoColor>

Go Back

MaxRecordsToDraw

N/A

Remarks

N/A

Return Value

Return Type:Int32

Go Back

Name

N/A

Remarks

N/A

Return Value

Return Type:String

Go Back

QueryTools

N/A

Remarks

N/A

Return Value

Return Type:QueryTools

Go Back

RedTranslation

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

RequestDrawingInterval

N/A

Remarks

N/A

Return Value

Return Type:TimeSpan

Go Back

Transparency

N/A

Remarks

N/A

Return Value

Return Type:Single

Go Back

WrappingExtent

N/A

Remarks

N/A

Return Value

Return Type:RectangleShape

Go Back

WrappingMode

N/A

Remarks

N/A

Return Value

Return Type:WrappingMode

Go Back

ZoomLevelSet

N/A

Remarks

N/A

Return Value

Return Type:ZoomLevelSet

Go Back

Protected Properties

0BU=

N/A

Remarks

N/A

Return Value

Return Type:TimeSpan

Go Back

0xU=

N/A

Remarks

N/A

Return Value

Return Type:TimeSpan

Go Back

IsOpenCore

N/A

Remarks

N/A

Return Value

Return Type:Boolean

Go Back

yhU=

N/A

Remarks

N/A

Return Value

Return Type:Int64

Go Back

zRU=

N/A

Remarks

N/A

Return Value

Return Type:Int64

Go Back

Public Events

DrawingAttribution

N/A

Remarks

DrawingException

N/A

Remarks

DrawingFeatures

N/A

Remarks

N/A

Event Arguments:DrawingFeaturesEventArgs

Go Back

DrawingProgressChanged

N/A

Remarks

DrawingWrappingFeatures

N/A

Remarks

DrawnAttribution

N/A

Remarks

DrawnException

N/A

Remarks

RequestedDrawing

N/A

Remarks

RequestingDrawing

N/A

Remarks

thinkgeo.mapsuite.core.inmemoryfeaturelayer.1442485914.txt.gz · Last modified: 2015/09/17 10:31 by admin