User Tools

Site Tools


thinkgeo.mapsuite.silverlightcore.inmemoryfeaturelayer

ThinkGeo.MapSuite.SilverlightCore.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

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

Members Summary

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.

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 FeatureSourceColumn 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.

Protected Constructors

Public Methods

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

BuildIndex()

  • This method build a spatial index for a passed group of featurs which increases access speed.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

Open()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

Close()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

GetBoundingBox()

  • N/A
Remarks
  • N/A
Return Value
Parameters

Draw(GeoCanvas,Collection<SimpleCandidate>)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

ToString()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

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
  • Type:Void
  • Description:None
Parameters

OnDrawingFeatures(DrawingFeaturesEventArgs)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

OnDrawingWrappingFeatures(DrawingWrappingFeaturesFeatureLayerEventArgs)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

SetupTools()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

SetupToolsCore()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

CloseCore()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

GetBoundingBoxCore()

  • N/A
Remarks
  • N/A
Return Value
Parameters

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

DrawException(GeoCanvas,Exception)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • e
    • Type:Exception
    • Description:N/A

DrawExceptionCore(GeoCanvas,Exception)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • e
    • Type:Exception
    • Description:N/A

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

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

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

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
  • Type:Boolean

WrappingExtent

N/A

Remarks

N/A

Return Value

WrappingMode

N/A

Remarks

N/A

Return Value

EditTools

N/A

Remarks

N/A

Return Value

FeatureIdsToExclude

N/A

Remarks

N/A

Return Value
  • Type:Collection<String>

QueryTools

N/A

Remarks

N/A

Return Value

FeatureSource

N/A

Remarks

N/A

Return Value

ZoomLevelSet

N/A

Remarks

N/A

Return Value

DrawingMarginPercentage

N/A

Remarks

N/A

Return Value
  • Type:Double

IsOpen

N/A

Remarks

N/A

Return Value
  • Type:Boolean

DrawingTime

N/A

Remarks

N/A

Return Value
  • Type:TimeSpan

Name

N/A

Remarks

N/A

Return Value
  • Type:String

IsVisible

N/A

Remarks

N/A

Return Value
  • Type:Boolean

DrawingExceptionMode

N/A

Remarks

N/A

Return Value

Protected Properties

IsOpenCore

N/A

Remarks

N/A

Return Value
  • Type:Boolean

Public Events

DrawingFeatures N/A

Remarks

N/A

Event Arguments:DrawingFeaturesEventArgs

DrawingWrappingFeatures N/A

Remarks

N/A

Event Arguments:DrawingWrappingFeaturesFeatureLayerEventArgs

DrawingProgressChanged N/A

Remarks

N/A

Event Arguments:DrawingProgressChangedEventArgs

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