User Tools

Site Tools


12.0:apis:thinkgeo.core.sqlserverfeaturelayer

ThinkGeo.Core.SqlServerFeatureLayer

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.Core.Layer
      • ThinkGeo.Core.FeatureLayer
        • ThinkGeo.Core.SqlServerFeatureLayer

Members Summary

Public Constructors

SqlServerFeatureLayer()

  • This is the constructor for the class.
Remarks
  • N/A
Parameters

SqlServerFeatureLayer(String,String,String)

  • This is the constructor for the class.
Remarks
  • None
Parameters
  • connectionString
    • Type:String
    • Description:This parameter represents the connection string that will be used to connect to the server.
  • tableName
    • Type:String
    • Description:This parameter represents the table name being accessed.
  • featureIdColumn
    • Type:String
    • Description:This parameter represents the name of the column that holds the unique feature Id.

SqlServerFeatureLayer(String,String,String,DatabaseConnectionMode)

  • N/A
Remarks
  • N/A
Parameters
  • connectionString
    • Type:String
    • Description:N/A
  • tableName
    • Type:String
    • Description:N/A
  • featureIdColumn
    • Type:String
    • Description:N/A

SqlServerFeatureLayer(String,String,String,Int32)

  • This is the constructor for the class.
Remarks
  • None
Parameters
  • connectionString
    • Type:String
    • Description:This parameter represents the connection string that will be used to connect to the server.
  • tableName
    • Type:String
    • Description:This parameter represents the table name being accessed.
  • featureIdColumn
    • Type:String
    • Description:This parameter represents the name of the column that holds the unique feature Id.
  • srid
    • Type:Int32
    • Description:Specify what kind srid data to be used.

SqlServerFeatureLayer(String,String,String,Int32,String)

  • N/A
Remarks
  • N/A
Parameters
  • connectionString
    • Type:String
    • Description:N/A
  • tableName
    • Type:String
    • Description:N/A
  • featureIdColumn
    • Type:String
    • Description:N/A
  • srid
    • Type:Int32
    • Description:N/A
  • schemaName
    • Type:String
    • Description:N/A

SqlServerFeatureLayer(String,String,String,Int32,DatabaseConnectionMode)

  • N/A
Remarks
  • N/A
Parameters
  • connectionString
    • Type:String
    • Description:N/A
  • tableName
    • Type:String
    • Description:N/A
  • featureIdColumn
    • Type:String
    • Description:N/A
  • srid
    • Type:Int32
    • Description:N/A

SqlServerFeatureLayer(String,String,String,Int32,String,DatabaseConnectionMode)

  • N/A
Remarks
  • N/A
Parameters
  • connectionString
    • Type:String
    • Description:N/A
  • tableName
    • Type:String
    • Description:N/A
  • featureIdColumn
    • Type:String
    • Description:N/A
  • srid
    • Type:Int32
    • Description:N/A
  • schemaName
    • Type:String
    • Description:N/A

Protected Constructors

Public Methods

Validate()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Dictionary<String,String>
  • Description:If all geometry are valid, the count of the returning dictionary is 0.
Parameters

BuildIndex(BuildIndexMode)

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

MakeAllGeometriesValid()

  • N/A
Remarks
  • This function will check whether the geometry is valid for spatial query, if it is not, then the function will make it valid and save it back to the table. For example: Here's a invalid LineString LINESTRING(0 2,1 1,1 0,1 1,2 2)) which is overlaps itself, it's invalid. After use this function, it will be MULTILINESTRING1)
Return Value
  • Type:Void
  • Description:N/A
Parameters

GetFirstGeometryType()

  • N/A
Remarks
  • N/A
Return Value
  • Description:The shape type of the first record.
Parameters

ExecuteNonQuery(String)

  • N/A
Remarks
  • This methods executes a query that has no results.
Return Value
  • Type:Int32
  • Description:None
Parameters
  • sqlStatement
    • Type:String
    • Description:This parameter represents the SQL statement that will be executed.

CloneDeep()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Layer
  • 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

RequestDrawing()

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

RequestDrawing(RectangleShape)

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

RequestDrawing(IEnumerable<RectangleShape>)

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

RequestDrawing(TimeSpan)

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

RequestDrawing(TimeSpan,RequestDrawingBufferTimeType)

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

RequestDrawing(RectangleShape,TimeSpan)

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

RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)

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

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)

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

RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)

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

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • 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

CreateTable(String,String,MsSqlSpatialDataType)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • connectionString
    • Type:String
    • Description:Represents the connection string to the database
  • tableName
    • Type:String
    • Description:Represents the name for the table
  • spatialDataType
    • Description:Represents the Spatial Data Type for the Spatial Data column

CreateTable(String,String,MsSqlSpatialDataType,IEnumerable<FeatureSourceColumn>)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • connectionString
    • Type:String
    • Description:Represents the connection string to the database
  • tableName
    • Type:String
    • Description:Represents the name for the table
  • spatialDataType
    • Description:Represents the Spatial Data Type for the Spatial Data column
  • columns
    • Type:IEnumerable<FeatureSourceColumn>
    • Description:Represnts information for creating columns besides Spatial Data Column

CreateTable(String,String,MsSqlSpatialDataType,IEnumerable<FeatureSourceColumn>,OverwriteMode)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • connectionString
    • Type:String
    • Description:Represents the connection string to the database
  • tableName
    • Type:String
    • Description:Represents the name for the table
  • spatialDataType
    • Description:Represents the Spatial Data Type for the Spatial Data column
  • columns
    • Type:IEnumerable<FeatureSourceColumn>
    • Description:Represnts information for creating columns besides Spatial Data Column
  • overwriteMode
    • Description:Indicates whether need to overwrite the datatable if there's already an exsited one

Protected Methods

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

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

  • 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

OpenCore()

  • 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

GetWrappingFeaturesForDrawing(WrappingWorldDirection,RectangleShape,Double,Double,IEnumerable<String>,RectangleShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<Feature>
  • Description:N/A
Parameters
  • canvasWidth
    • Type:Double
    • Description:N/A
  • canvasHeight
    • Type:Double
    • Description:N/A
  • returningColumnNames
    • Type:IEnumerable<String>
    • Description:N/A

CloneDeepCore()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Layer
  • 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

OnDrawingException(DrawingExceptionLayerEventArgs)

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

OnDrawnException(DrawnExceptionLayerEventArgs)

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

DrawAttributionCore(GeoCanvas,String)

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

OnDrawingAttribution(DrawingAttributionLayerEventArgs)

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

OnDrawnAttribution(DrawnAttributionLayerEventArgs)

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

OnDrawingProgressChanged(DrawingProgressChangedEventArgs)

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

OnRequestedDrawing(RequestedDrawingLayerEventArgs)

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

OnRequestingDrawing(RequestingDrawingLayerEventArgs)

  • 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

Finalize()

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

Public Properties

CommandTimeout

  • N/A
Remarks
  • You can use this to set a time limit for the query before it times out.
Return Value
  • Type:Int32

DatabaseConnectionMode

  • N/A
Remarks
  • N/A
Return Value

ConnectionString

  • N/A
Remarks
  • None
Return Value
  • Type:String

TableName

  • N/A
Remarks
  • None
Return Value
  • Type:String

WhereClause

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

HasBoundingBox

  • N/A
Remarks
  • The default implementation in the base class returns false.
Return Value
  • Type:Boolean

Srid

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

SchemaName

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

SpatialIndexName

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

FeatureIdColumn

  • N/A
Remarks
  • None
Return Value
  • Type:String

CustomGeometryColumnName

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

Projection

  • N/A
Remarks
  • N/A
Return Value

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

MaxRecordsToDraw

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

FeatureSource

  • N/A
Remarks
  • N/A
Return Value

DrawingQuality

  • N/A
Remarks
  • N/A
Return Value

ZoomLevelSet

  • N/A
Remarks
  • N/A
Return Value

DrawingMarginInPixel

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

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

Attribution

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

IsVisible

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

Transparency

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

BlueTranslation

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

RedTranslation

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

GreenTranslation

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single

KeyColors

  • N/A
Remarks
  • N/A
Return Value

IsNegative

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

IsGrayscale

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

ColorMappings

  • N/A
Remarks
  • N/A
Return Value

DrawingExceptionMode

  • N/A
Remarks
  • N/A
Return Value

ThreadSafe

  • N/A
Remarks
  • N/A
Return Value

RequestDrawingInterval

  • N/A
Remarks
  • N/A
Return Value
  • Type:TimeSpan

Protected Properties

FetchedCount

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int64

StyleTime

  • N/A
Remarks
  • N/A
Return Value
  • Type:TimeSpan

FetchTime

  • N/A
Remarks
  • N/A
Return Value
  • Type:TimeSpan

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

DrawingException

  • N/A
Remarks
  • N/A

Event Arguments:DrawingExceptionLayerEventArgs

DrawnException

  • N/A
Remarks
  • N/A

Event Arguments:DrawnExceptionLayerEventArgs

DrawingAttribution

  • N/A
Remarks
  • N/A

Event Arguments:DrawingAttributionLayerEventArgs

DrawnAttribution

  • N/A
Remarks
  • N/A

Event Arguments:DrawnAttributionLayerEventArgs

RequestedDrawing

  • N/A
Remarks
  • N/A

Event Arguments:RequestedDrawingLayerEventArgs

RequestingDrawing

  • N/A
Remarks
  • N/A

Event Arguments:RequestingDrawingLayerEventArgs

1) 0 2,1 1,2 2),(1 1,1 0
12.0/apis/thinkgeo.core.sqlserverfeaturelayer.txt · Last modified: 2019/09/26 09:44 (external edit)