User Tools

Site Tools


thinkgeo.mapsuite.core.customcolumnfetcheventargs

This is an old revision of the document!


ThinkGeo.MapSuite.Core.CustomColumnFetchEventArgs

This class represents the parameters passed in through the CustomFieldFetch event.

Inheritance Hierarchy

  • System.Object
    • System.EventArgs
      • ThinkGeo.MapSuite.Core.CustomColumnFetchEventArgs

Members Summary

Public Constructors

CustomColumnFetchEventArgs

  • Parameters:String,String
  • DeclaringType:N/A
  • Summary:This is the constructor that allows you to create the event arguments.

Protected Constructors

Public Methods

Equals

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

GetHashCode

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

GetType

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

ToString

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

Protected Methods

Finalize

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

MemberwiseClone

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

Public Properties

ColumnName

  • Return:String
  • Summary:This property returns the column name that you need to return data for.

ColumnValue

  • Return:String
  • Summary:This parameter returns the field decimalDegreesValue that the event is seeking. It is intended to be set in the event.

Id

  • Return:String
  • Summary:This property returns the Id that you need to return data for.

Protected Properties

Public Events

Public Constructors

CustomColumnFetchEventArgs(String,String)

This is the constructor that allows you to create the event arguments.

Remarks

None

Parameters

columnName

  • Type:String
  • Description:The column name you need data for. id * Type:String * Description:The Id of the feature you need data for.

Go Back

Protected Constructors

Public Methods

Equals(Object)

N/A

Remarks

N/A

Return Value

  • Return Type:Boolean
  • Description:N/A

Parameters

obj

  • Type:Object
  • Description:N/A

Go Back

GetHashCode()

N/A

Remarks

N/A

Return Value

  • Return Type:Int32
  • Description:N/A

Parameters

GetType()

N/A

Remarks

N/A

Return Value

  • Return Type:Type
  • Description:N/A

Parameters

ToString()

N/A

Remarks

N/A

Return Value

  • Return Type:String
  • Description:N/A

Parameters

Protected Methods

Finalize()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value

  • Return Type:Object
  • Description:N/A

Parameters

Public Properties

ColumnName

This property returns the column name that you need to return data for.

Remarks

You will need to look up the Id in your external data source and find this column's data. CustomColumnFetch Event Background This event is used primarily when you have data relating to a particular feature or set of features that is not within source of the data. For example, you may have a shape file of the world whose .dbf component describes the area and population of each country. Additionally, in an outside SQL Server table, you may also have data about the countries, and it is this data that you wish to use for determining how you want to color each country. To integrate this SQL data, you simply create a file name that does not exist in the .dbf file. Whenever Map Suite is queried to return records that specifically require this field, the FeatureSource will raise this event and allow you the developer to supply the data. In this way, you can query the SQL table and store the data in some sort of collection, and then when the event is raised, simply supply that data. As this is an event, it will raise for each feature and field combination requested. This means that the event can be raised quite often, and we suggest that you cache the data you wish to supply in memory. We recommend against sending out a new SQL query each time this event is raised. Image that you are supplementing two columns and your query returns 2,000 rows. This means that if you requested those fields, the event would be raised 4,000 times.

Return Value

Return Type:String

Go Back

ColumnValue

This parameter returns the field decimalDegreesValue that the event is seeking. It is intended to be set in the event.

Remarks

When you lookup the Id and FieldName, you should set this property with the data from your external data source. CustomColumnFetch Event Background It is used primarily when you have data relating to a particular feature or set of features that is not within source of the data. For example, you may have a shape file of the world whose .dbf component describes the area and population of each country. Additionally, in an outside SQL Server table, you may also have data about the countries, and it is this data that you wish to use for determining how you want to color each country. To integrate this SQL data, you simply create a file name that does not exist in the .dbf file. Whenever Map Suite is queried to return records that specifically require this field, the FeatureSource will raise this event and allow you the developer to supply the data. In this way, you can query the SQL table and store the data in some sort of collection, and then when the event is raised, simply supply that data. As this is an event, it will raise for each feature and field combination requested. This means that the event can be raised quite often, and we suggest that you cache the data you wish to supply in memory. We recommend against sending out a new SQL query each time this event is raised. Image that you are supplementing two columns and your query returns 2,000 rows. This means that if you requested those fields, the event would be raised 4,000 times.

Return Value

Return Type:String

Go Back

Id

This property returns the Id that you need to return data for.

Remarks

You will need to look up the Id in your external data source and find this field's data. CustomColumnFetch Event Background It is used primarily when you have data relating to a particular feature or set of features that is not within source of the data. For example, you may have a shape file of the world whose .dbf component describes the area and population of each country. Additionally, in an outside SQL Server table, you may also have data about the countries, and it is this data that you wish to use for determining how you want to color each country. To integrate this SQL data, you simply create a file name that does not exist in the .dbf file. Whenever Map Suite is queried to return records that specifically require this field, the FeatureSource will raise this event and allow you the developer to supply the data. In this way, you can query the SQL table and store the data in some sort of collection, and then when the event is raised, simply supply that data. As this is an event, it will raise for each feature and field combination requested. This means that the event can be raised quite often, and we suggest that you cache the data you wish to supply in memory. We recommend against sending out a new SQL query each time this event is raised. Image that you are supplementing two columns and your query returns 2,000 rows. This means that if you requested those fields, the event would be raised 4,000 times.

Return Value

Return Type:String

Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.core.customcolumnfetcheventargs.1442485626.txt.gz · Last modified: 2015/09/17 10:27 by admin