User Tools

Site Tools


thinkgeo.mapsuite.core.shapefilefeaturelayer

ThinkGeo.MapSuite.Core.ShapeFileFeatureLayer

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 class represents a Layer backed by a Shape File.

Inheritance Hierarchy

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

Members Summary

Public Constructors

ShapeFileFeatureLayer()

  • This is a constructor for the class.
Remarks
  • This is the default constructor. If you use this constructor, then you should set the required methods manually.
Parameters

ShapeFileFeatureLayer(String)

  • This is a constructor for the class.
Remarks
  • None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter is the Shape File path and filename.

ShapeFileFeatureLayer(String,ShapeFileReadWriteMode)

  • This is a constructor for the class.
Remarks
  • None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter is the Shape File path and filename.
  • readWriteMode
    • Description:This parameter specifies whether the file will be opened in read-only or read/write mode.

ShapeFileFeatureLayer(String,String)

  • This is a constructor for the class.
Remarks
  • None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter is the Shape File path and filename.
  • indexPathFilename
    • Type:String
    • Description:This parameter is the index file path and filename.

ShapeFileFeatureLayer(String,String,ShapeFileReadWriteMode)

  • This is a constructor for the class.
Remarks
  • None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter is the Shape File path and filename.
  • indexPathFilename
    • Type:String
    • Description:This parameter is the index file path and filename.
  • readWriteMode
    • Description:This parameter specifies whether the file will be opened in read-only or read/write mode.

ShapeFileFeatureLayer(String,String,ShapeFileReadWriteMode,Encoding)

  • This is a constructor for the class.
Remarks
  • None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter is the Shape File path and filename.
  • indexPathFilename
    • Type:String
    • Description:This parameter is the index file path and filename.
  • readWriteMode
    • Description:This parameter specifies whether the file will be opened in read-only or read/write mode.
  • encoding
    • Type:Encoding
    • Description:This parameter specifies the encoding of the data.

Protected Constructors

Public Methods

GetShapeFileType()

  • Get the Shape File type for the Shape File FeatureSource.
Remarks
  • N/A
Return Value
  • Description:The ShapeFileType for the ShapeFile FeatureSource.
Parameters

Validate()

  • This method checks all features in a shapefile is supported by Mapsuite or not.
Remarks
  • N/A
Return Value
  • Type:Dictionary<String,String>
  • Description:A dictionary which contains all the unsupported features. The key is the Indexs which failed to pass the check, the value contains the reason for its failure.
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

GetThreadSafetyLevel()

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

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

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

Rebuild(String)

  • This method rebuilds the SHP, SHX, DBF, IDX and IDS files for the given shape file.
Remarks
  • This method rebuilds the SHP, SHX, DBF, IDX and IDS files for the given shape file. When we do editing we have optimized the updates so that we do not need to rebuild the entire shape file. This leads to the shape file being out of order which may cause it not to open in other tools. One optimization is if you update a record instead of rebuilding a new shape file we mark the old record as null and add the edited record at the end of the shape file. This greatly increases the speed of committing shape file changes but will over time unorder the shape file. In addition we do a delete the DBF file will simply mark the record deleted and not compact the space. Rebuilding the shape file will correctly order the SPX and SHX along with compacting the DBF file and rebuild any index with the same any of the shape file if it exists. Note that if you have build custom index files where the name of the index differs from that of the shape file you will need to rebuild those manually using the BuildIndex methods.
Return Value
  • Type:Void
  • Description:None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter is the shape file you want to rebuild.

Rebuild(String,ShapeFileSortingMode,Int32)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • shapePathFilename
    • Type:String
    • Description:N/A
  • sridForSorting
    • Type:Int32
    • Description:N/A

CreateShapeFile(ShapeFileType,String,IEnumerable<DbfColumn>)

  • Static API to create a new Shape File.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • shapeType
    • Description:This parameter specifies the the Shape File type for the target Shape File.
  • pathFilename
    • Type:String
    • Description:This parameter specifies the Shape filename for the target Shape File.
  • databaseColumns
    • Type:IEnumerable<DbfColumn>
    • Description:This parameter specifies the DBF column information for the target Shape File.

CreateShapeFile(ShapeFileType,String,IEnumerable<DbfColumn>,Encoding)

  • Static API to create a new Shape File.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • shapeType
    • Description:This parameter specifies the the Shape File type for the target Shape File.
  • pathFilename
    • Type:String
    • Description:This parameter specifies the Shape filename for the target Shape File.
  • databaseColumns
    • Type:IEnumerable<DbfColumn>
    • Description:This parameter specifies the DBF column information for the target Shape File.
  • encoding
    • Type:Encoding
    • Description:This parameter specifies the DBF encoding infromation for the target Shape File.

CreateShapeFile(ShapeFileType,String,IEnumerable<DbfColumn>,Encoding,OverwriteMode)

  • Static API to create a new Shape File.
Remarks
  • An exception will be thown when the target Shape File does not exist while the overwrite mode is set to DoNotOverwrite.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • shapeType
    • Description:This parameter specifies the the Shape File type for the target Shape File.
  • pathFilename
    • Type:String
    • Description:This parameter specifies the Shape filename for the target Shape File.
  • databaseColumns
    • Type:IEnumerable<DbfColumn>
    • Description:This parameter specifies the DBF column information for the target Shape File.
  • encoding
    • Type:Encoding
    • Description:This parameter specifies the DBF encoding infromation for the target Shape File.
  • overwriteMode
    • Description:This parameter specifies the override mode when the target Shape File exists.

BuildIndexFile(String)

  • This method builds a spatial index for the layer.
Remarks
  • This overload allows you to pass in the Shape File.
Return Value
  • Type:Void
  • Description:None
Parameters
  • pathFilename
    • Type:String
    • Description:The path and filename to the Shape File.

BuildIndexFile(String,String,BuildIndexMode)

  • This method build a spatial index for the shape file which increases accessspeed.
Remarks
  • This overload builds an index file with the same name as the shape file with only the extension being different. You can also specify if you want to rebuild an existing index file.
Return Value
  • Type:Void
  • Description:None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter is the shape file name and path that you want to build an index for.
  • indexPathFilename
    • Type:String
    • Description:This parameter specifies the index file name.
  • buildIndexMode
    • Description:This parameter determines what will happen if there is an existing index file.

BuildIndexFile(String,BuildIndexMode)

  • This method builds a spatial index for the layer.
Remarks
  • This overload allows you to pass in the Shape File and determines if we rebuild an index file that already exists.
Return Value
  • Type:Void
  • Description:None
Parameters
  • pathFilename
    • Type:String
    • Description:This parameter is the matching pattern that defines which Shape Files to include.
  • rebuildExistingIndexMode
    • Description:This parameter determines whether an index file will be rebuilt if it already exists.

BuildIndexFile(IEnumerable<Feature>,String)

  • This method builds a spatial index for the specified group of features.
Remarks
  • This overload allows you to pass in a group of features and specify the index filename to use.
Return Value
  • Type:Void
  • Description:None
Parameters
  • features
    • Type:IEnumerable<Feature>
    • Description:This parameter specifies the features for which to build the index.
  • indexPathFilename
    • Type:String
    • Description:This parameter specifies the target index path and filename.

BuildIndexFile(IEnumerable<Feature>,String,Projection)

  • This method builds a spatial index for the specified group of features and target projection.
Remarks
  • This overload allows you to pass in a group of features and specify a target projection and the index filename to use.
Return Value
  • Type:Void
  • Description:None
Parameters
  • features
    • Type:IEnumerable<Feature>
    • Description:This parameter specifies the features for which to build the index.
  • indexPathFilename
    • Type:String
    • Description:This parameter specifies the target index path and filename.
  • projection
    • Description:This parameter specifies the projection to build index against those features.

BuildIndexFile(IEnumerable<Feature>,String,BuildIndexMode)

  • This method builds a spatial index for the specified group of features.
Remarks
  • This overload allows you to pass in a group of features and specify the index filename to use.
Return Value
  • Type:Void
  • Description:None
Parameters
  • features
    • Type:IEnumerable<Feature>
    • Description:This parameter specifies the features for which to build the index.
  • indexPathFilename
    • Type:String
    • Description:This parameter determines the target index path filename.
  • buildIndexMode
    • Description:This parameter determines whether an index file will be rebuilt if it already exists.

BuildIndexFile(IEnumerable<Feature>,String,Projection,BuildIndexMode)

  • This method builds a spatial index for the specified group of features.
Remarks
  • This overload allows you to pass in a group of features and specify a target projection and the index filename to use.
Return Value
  • Type:Void
  • Description:None
Parameters
  • features
    • Type:IEnumerable<Feature>
    • Description:This parameter specifies the features for which to build the index.
  • indexPathFilename
    • Type:String
    • Description:This parameter determines the target index path filename.
  • projection
    • Description:This parameter determines the Projection to build index against those features.
  • buildIndexMode
    • Description:This parameter determines whether an index file will be rebuilt if it already exists.

BuildIndexFile(String,String,String,String,BuildIndexMode)

  • This method builds a spatial index only for those features that satisfy a regular expression.
Remarks
  • This overload allows you to pass in a Shape File and specify the index filename to use.
Return Value
  • Type:Void
  • Description:None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter specifies the Shape File for which to build the index.
  • indexPathFilename
    • Type:String
    • Description:This parameter determines the target index path filename.
  • columnName
    • Type:String
    • Description:This parameter determines the column name whose values will be tested against the regular expression.
  • regularExpression
    • Type:String
    • Description:This parameter represents the regular expression to test against each feature for inclusion in the index.
  • buildIndexMode
    • Description:This parameter determines whether an index file will be rebuilt if it already exists.

BuildIndexFile(String,String,Projection,String,String,BuildIndexMode)

  • This method builds a spatial index only for those features that satisfy a regular expression, based on a passed-in projection.
Remarks
  • This overload allows you to pass in a Shape File and specify the index filename to use.
Return Value
  • Type:Void
  • Description:None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter specifies the Shape File for which to build the index.
  • indexPathFilename
    • Type:String
    • Description:This parameter determines the target index path filename.
  • projection
    • Description:This parameter determines the projection that will be used to build the index against those features that satisfy the regular expression.
  • columnName
    • Type:String
    • Description:This parameter determines the column name whose values will be tested against the regular expression.
  • regularExpression
    • Type:String
    • Description:This parameter represents the regular expression to test against each feature for inclusion in the index.
  • buildIndexMode
    • Description:This parameter determines whether an index file will be rebuilt if it already exists.

BuildIndexFile(String,String,Projection,String,String,BuildIndexMode,Encoding)

  • This method builds a spatial index only for those features that satisfy a regular expression, based on a passed-in projection.
Remarks
  • This overload allows you to pass in a Shape File and specify the index filename to use.
Return Value
  • Type:Void
  • Description:None
Parameters
  • shapePathFilename
    • Type:String
    • Description:This parameter specifies the Shape File for which to build the index.
  • indexPathFilename
    • Type:String
    • Description:This parameter determines the target index path filename.
  • projection
    • Description:This parameter determines the projection that will be used to build the index against those features that satisfy the regular expression.
  • columnName
    • Type:String
    • Description:This parameter determines the column name whose values will be tested against the regular expression.
  • regularExpression
    • Type:String
    • Description:This parameter represents the regular expression to test against each feature for inclusion in the index.
  • buildIndexMode
    • Description:This parameter determines whether an index file will be rebuilt if it already exists.
  • encoding
    • Type:Encoding
    • Description:This parameter specifies the encoding information used in the source DBF file.

CloneShapeFileStructure(String,String)

  • Clone the structure from the source ShapeFile to the target ShapeFile. After cloning the structure, the target ShapeFile will have the same type and the same DBF columns as the source ShapeFile, but without any records in it.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • sourceShapePathFilename
    • Type:String
    • Description:The source Shape File to be cloned.
  • targetShapePathFilename
    • Type:String
    • Description:The target Shape File, which will have the same structure as the source Shape File after cloning operation is complete.

CloneShapeFileStructure(String,String,OverwriteMode)

  • Clone the structure from the source ShapeFile to the target ShapeFile. After cloning the structure, the target ShapeFile will have the same type and the same DBF columns as the source ShapeFile, but without any records in it.
Remarks
  • An exception will be thown when the target ShapeFile does not exist and the overwrite mode is set to DoNotOverwrite.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • sourceShapePathFilename
    • Type:String
    • Description:The source Shape File to be cloned.
  • targetShapePathFilename
    • Type:String
    • Description:The target Shape File, which will have the same structure as the source Shape File after cloning operation is complete.
  • overwriteMode
    • Description:This parameter specifies the overwrite mode when the target ShapeFile already exists.

CloneShapeFileStructure(String,String,OverwriteMode,Encoding)

  • Clone the structure from the source ShapeFile to the target ShapeFile. After cloning the structure, the target ShapeFile will have the same type and the same DBF columns as the source ShapeFile, but without any records in it.
Remarks
  • An exception will be thown when the target ShapeFile does not exist and the overwrite mode is set to DoNotOverwrite.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • sourceShapePathFilename
    • Type:String
    • Description:The source Shape File to be cloned.
  • targetShapePathFilename
    • Type:String
    • Description:The target Shape File, which will have the same structure as the source Shape File after cloning operation is complete.
  • overwriteMode
    • Description:This parameter specifies the overwrite mode when the target ShapeFile already exists.
  • encoding
    • Type:Encoding
    • Description:This parameter specifies the encoding information in the source Shape File.

BuildRecordIdColumn(String,String,BuildRecordIdMode)

  • Static API used to build RecordId. The Id will start from 0.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • shapeFilename
    • Type:String
    • Description:The name of the target ShapeFile on which to base the newly built RecordId.
  • fieldname
    • Type:String
    • Description:The field name for the RecordId.

BuildRecordIdColumn(String,String,BuildRecordIdMode,Int32)

  • Static API used to build RecordId from the specified starting Id number.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • shapeFilename
    • Type:String
    • Description:The name of the target ShapeFile on which to base the newly built RecordId.
  • fieldname
    • Type:String
    • Description:The field name for the RecordId.
  • startNumber
    • Type:Int32
    • Description:The starting Id number of the RecordId.

BuildRecordIdColumn(String,String,BuildRecordIdMode,Int32,Encoding)

  • Static API used to build RecordId from the specified starting Id number.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • shapeFilename
    • Type:String
    • Description:The name of the target ShapeFile on which to base the newly built RecordId.
  • fieldname
    • Type:String
    • Description:The field name for the RecordId.
  • startNumber
    • Type:Int32
    • Description:The starting Id number of the RecordId.
  • encoding
    • Type:Encoding
    • Description:This parameter specifies the encoding information in the DBF.

SaveToProjection(String,String,Projection,OverwriteMode)

  • This API provide a easy way to project features in a shape file into another projection and save it to shape file.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • sourceShapeFile
    • Type:String
    • Description:This parameter specifies the source shape file to be projected.
  • targetShapeFile
    • Type:String
    • Description:This parameter specifies the target shape file to be saved for the projected features.
  • projection
    • Description:This parameter is the projection to project the source shape file to target shape file. The source Shape file should be in the FromProjection of the Projection prameter, and the targetShapeFile will be in the ToProjection of the Projection.
  • overwriteMode
    • Description:This parameter specifies the override mode when the target shape file exists.

GetValidColumns(IEnumerable<DbfColumn>)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • columns
    • Type:IEnumerable<DbfColumn>
    • Description:N/A

GetValidColumns(IEnumerable<DbfColumn>,Encoding)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • columns
    • Type:IEnumerable<DbfColumn>
    • Description:N/A
  • encoding
    • Type:Encoding
    • Description:N/A

GetValidColumnNames(IEnumerable<String>)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<String>
  • Description:N/A
Parameters
  • columnNames
    • Type:IEnumerable<String>
    • Description:N/A

GetValidColumnNames(IEnumerable<String>,Encoding)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<String>
  • Description:N/A
Parameters
  • columnNames
    • Type:IEnumerable<String>
    • Description:N/A
  • encoding
    • Type:Encoding
    • Description:N/A

Protected Methods

CloneDeepCore()

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

DrawCore(GeoCanvas,Collection<SimpleCandidate>)

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

RequireLinkProcess(IEnumerable<String>)

  • N/A
Remarks
  • N/A
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)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • featuresForFilters
    • Type:Dictionary<String,Collection<Feature»
    • Description:N/A
  • currentZoomLevel

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

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

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

GetThreadSafetyLevelCore()

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

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

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 ShapeFileFeatureLayer, we override this API and mark it as true.

Remarks

The default implementation in the base class returns false.

Return Value
  • Type:Boolean

UsingSpatialIndex

This property gets whether the Shape File FeatureSource has an index or not.

Remarks

N/A

Return Value
  • Type:Boolean

Encoding

This property gets and sets the encoding information for the DBF.

Remarks

N/A

Return Value
  • Type:Encoding

ShapePathFileName

This property returns the path and filename of the Shape File you want to represent.

Remarks

None

Return Value
  • Type:String

IndexPathFileName

This property returns the path and filename of the index file you want to represent.

Remarks

None

Return Value
  • Type:String

ReadWriteMode

N/A

Remarks

N/A

Return Value

RequireIndex

This property gets and sets whether an index is required when reading data. The default value is true.

Remarks

N/A

Return Value
  • Type:Boolean

ProgressiveDrawingRecordsCount

N/A

Remarks

N/A

Return Value
  • Type:Int32

SimplificationAreaInPixel

N/A

Remarks

N/A

Return Value
  • Type:Int32

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

DrawingMarginPercentage

N/A

Remarks

N/A

Return Value
  • Type:Double

DrawingMarginInPixel

N/A

Remarks

N/A

Return Value
  • Type:Single

GeometryValidationMode

N/A

Remarks

N/A

Return Value

RequestDrawingInterval

N/A

Remarks

N/A

Return Value
  • Type:TimeSpan

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

DrawingExceptionMode

N/A

Remarks

N/A

Return Value

Protected Properties

FetchedCount

N/A

Remarks

N/A

Return Value
  • Type:Int64

FetchedBytes

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

StreamLoading This event allows you to pass in your own stream to represent the files.

Remarks

If you choose you can pass in your own stream to represent the file. The stream can come from a variety of places such as isolated storage, a compressed file, and encrypted stream. When the Image is finished with the stream it will dispose of it so be sure to keep this in mind when passing the stream in. If you do not pass in a alternate stream the class will attempt to load the file from the file system using the PathFileName property.

Event Arguments:StreamLoadingEventArgs

DrawingFeatures N/A

Remarks

N/A

Event Arguments:DrawingFeaturesEventArgs

DrawingWrappingFeatures N/A

Remarks

N/A

Event Arguments:DrawingWrappingFeaturesFeatureLayerEventArgs

RequestedDrawing N/A

Remarks

N/A

Event Arguments:RequestedDrawingLayerEventArgs

RequestingDrawing N/A

Remarks

N/A

Event Arguments:RequestingDrawingLayerEventArgs

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

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