====== ThinkGeo.MapSuite.Core.ShapeFileFeatureLayer ====== {{section>upgrade_map_suite_to_10.0}} 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 ==== ** {{wiki:PublicMethod.gif|}} 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 ==
** {{wiki:PublicMethod.gif|}} 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.
** {{wiki:PublicMethod.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.ShapeFileReadWriteMode|ShapeFileReadWriteMode]] * Description:This parameter specifies whether the file will be opened in read-only or read/write mode.
** {{wiki:PublicMethod.gif|}} 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.
** {{wiki:PublicMethod.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.ShapeFileReadWriteMode|ShapeFileReadWriteMode]] * Description:This parameter specifies whether the file will be opened in read-only or read/write mode.
** {{wiki:PublicMethod.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.ShapeFileReadWriteMode|ShapeFileReadWriteMode]] * 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 ==== ** {{wiki:PublicMethod.gif|}} GetShapeFileType() ** * //Get the Shape File type for the Shape File FeatureSource.// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Core.ShapeFileType|ShapeFileType]] * Description:The ShapeFileType for the ShapeFile FeatureSource. == Parameters ==
** {{wiki:PublicMethod.gif|}} Validate() ** * //This method checks all features in a shapefile is supported by Mapsuite or not.// == Remarks == * //N/A// == Return Value == * Type:Dictionary * 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 ==
** {{wiki:PublicMethod.gif|}} RequestDrawing() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} RequestDrawing(RectangleShape) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //extentToRefresh// * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * Description:N/A
** {{wiki:PublicMethod.gif|}} RequestDrawing(IEnumerable) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //extentsToRefresh// * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]> * Description:N/A
** {{wiki:PublicMethod.gif|}} RequestDrawing(TimeSpan) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //bufferTime// * Type:TimeSpan * Description:N/A
** {{wiki:PublicMethod.gif|}} RequestDrawing(TimeSpan,RequestDrawingBufferTimeType) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //bufferTime// * Type:TimeSpan * Description:N/A * //bufferTimeType// * Type:[[ThinkGeo.MapSuite.Core.RequestDrawingBufferTimeType|RequestDrawingBufferTimeType]] * Description:N/A
** {{wiki:PublicMethod.gif|}} RequestDrawing(RectangleShape,TimeSpan) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //extentToRefresh// * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * Description:N/A * //bufferTime// * Type:TimeSpan * Description:N/A
** {{wiki:PublicMethod.gif|}} RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //extentToRefresh// * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * Description:N/A * //bufferTime// * Type:TimeSpan * Description:N/A * //bufferTimeType// * Type:[[ThinkGeo.MapSuite.Core.RequestDrawingBufferTimeType|RequestDrawingBufferTimeType]] * Description:N/A
** {{wiki:PublicMethod.gif|}} RequestDrawing(IEnumerable,TimeSpan) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //extentsToRefresh// * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]> * Description:N/A * //bufferTime// * Type:TimeSpan * Description:N/A
** {{wiki:PublicMethod.gif|}} RequestDrawing(IEnumerable,TimeSpan,RequestDrawingBufferTimeType) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //extentsToRefresh// * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]> * Description:N/A * //bufferTime// * Type:TimeSpan * Description:N/A * //bufferTimeType// * Type:[[ThinkGeo.MapSuite.Core.RequestDrawingBufferTimeType|RequestDrawingBufferTimeType]] * Description:N/A
** {{wiki:PublicMethod.gif|}} GetThreadSafetyLevel() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Core.ThreadSafetyLevel|ThreadSafetyLevel]] * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} CloneDeep() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Core.Layer|Layer]] * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} Open() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} Close() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} GetBoundingBox() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} Draw(GeoCanvas,Collection) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //canvas// * Type:[[ThinkGeo.MapSuite.Core.GeoCanvas|GeoCanvas]] * Description:N/A * //labelsInAllLayers// * Type:Collection<[[ThinkGeo.MapSuite.Core.SimpleCandidate|SimpleCandidate]]> * Description:N/A
** {{wiki:PublicMethod.gif|}} ToString() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:String * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} Equals(Object) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Boolean * Description:N/A == Parameters == * //obj// * Type:Object * Description:N/A
** {{wiki:PublicMethod.gif|}} GetHashCode() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Int32 * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} GetType() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Type * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} Rebuild(String,ShapeFileSortingMode,Int32) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //shapePathFilename// * Type:String * Description:N/A * //sortingMode// * Type:[[ThinkGeo.MapSuite.Core.ShapeFileSortingMode|ShapeFileSortingMode]] * Description:N/A * //sridForSorting// * Type:Int32 * Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} CreateShapeFile(ShapeFileType,String,IEnumerable) ** * //Static API to create a new Shape File.// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //shapeType// * Type:[[ThinkGeo.MapSuite.Core.ShapeFileType|ShapeFileType]] * 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<[[ThinkGeo.MapSuite.Core.DbfColumn|DbfColumn]]> * Description:This parameter specifies the DBF column information for the target Shape File.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} CreateShapeFile(ShapeFileType,String,IEnumerable,Encoding) ** * //Static API to create a new Shape File.// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //shapeType// * Type:[[ThinkGeo.MapSuite.Core.ShapeFileType|ShapeFileType]] * 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<[[ThinkGeo.MapSuite.Core.DbfColumn|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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} CreateShapeFile(ShapeFileType,String,IEnumerable,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// * Type:[[ThinkGeo.MapSuite.Core.ShapeFileType|ShapeFileType]] * 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<[[ThinkGeo.MapSuite.Core.DbfColumn|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// * Type:[[ThinkGeo.MapSuite.Core.OverwriteMode|OverwriteMode]] * Description:This parameter specifies the override mode when the target Shape File exists.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.BuildIndexMode|BuildIndexMode]] * Description:This parameter determines what will happen if there is an existing index file.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.BuildIndexMode|BuildIndexMode]] * Description:This parameter determines whether an index file will be rebuilt if it already exists.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} BuildIndexFile(IEnumerable,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<[[ThinkGeo.MapSuite.Core.Feature|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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} BuildIndexFile(IEnumerable,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<[[ThinkGeo.MapSuite.Core.Feature|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// * Type:[[ThinkGeo.MapSuite.Core.Projection|Projection]] * Description:This parameter specifies the projection to build index against those features.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} BuildIndexFile(IEnumerable,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<[[ThinkGeo.MapSuite.Core.Feature|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// * Type:[[ThinkGeo.MapSuite.Core.BuildIndexMode|BuildIndexMode]] * Description:This parameter determines whether an index file will be rebuilt if it already exists.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} BuildIndexFile(IEnumerable,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<[[ThinkGeo.MapSuite.Core.Feature|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// * Type:[[ThinkGeo.MapSuite.Core.Projection|Projection]] * Description:This parameter determines the Projection to build index against those features. * //buildIndexMode// * Type:[[ThinkGeo.MapSuite.Core.BuildIndexMode|BuildIndexMode]] * Description:This parameter determines whether an index file will be rebuilt if it already exists.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.BuildIndexMode|BuildIndexMode]] * Description:This parameter determines whether an index file will be rebuilt if it already exists.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.Projection|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// * Type:[[ThinkGeo.MapSuite.Core.BuildIndexMode|BuildIndexMode]] * Description:This parameter determines whether an index file will be rebuilt if it already exists.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.Projection|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// * Type:[[ThinkGeo.MapSuite.Core.BuildIndexMode|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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.OverwriteMode|OverwriteMode]] * Description:This parameter specifies the overwrite mode when the target ShapeFile already exists.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.OverwriteMode|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.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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. * //rebuildNeeded// * Type:[[ThinkGeo.MapSuite.Core.BuildRecordIdMode|BuildRecordIdMode]] * Description:The RecordId build mode.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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. * //rebuildNeeded// * Type:[[ThinkGeo.MapSuite.Core.BuildRecordIdMode|BuildRecordIdMode]] * Description:The RecordId build mode. * //startNumber// * Type:Int32 * Description:The starting Id number of the RecordId.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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. * //rebuildNeeded// * Type:[[ThinkGeo.MapSuite.Core.BuildRecordIdMode|BuildRecordIdMode]] * Description:The RecordId build mode. * //startNumber// * Type:Int32 * Description:The starting Id number of the RecordId. * //encoding// * Type:Encoding * Description:This parameter specifies the encoding information in the DBF.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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// * Type:[[ThinkGeo.MapSuite.Core.Projection|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// * Type:[[ThinkGeo.MapSuite.Core.OverwriteMode|OverwriteMode]] * Description:This parameter specifies the override mode when the target shape file exists.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetValidColumns(IEnumerable) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Collection<[[ThinkGeo.MapSuite.Core.DbfColumn|DbfColumn]]> * Description:N/A == Parameters == * //columns// * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.DbfColumn|DbfColumn]]> * Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetValidColumns(IEnumerable,Encoding) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Collection<[[ThinkGeo.MapSuite.Core.DbfColumn|DbfColumn]]> * Description:N/A == Parameters == * //columns// * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.DbfColumn|DbfColumn]]> * Description:N/A * //encoding// * Type:Encoding * Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetValidColumnNames(IEnumerable) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Collection * Description:N/A == Parameters == * //columnNames// * Type:IEnumerable * Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetValidColumnNames(IEnumerable,Encoding) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Collection * Description:N/A == Parameters == * //columnNames// * Type:IEnumerable * Description:N/A * //encoding// * Type:Encoding * Description:N/A
==== Protected Methods ==== ** {{wiki:ProtectedMethod.gif|}} CloneDeepCore() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Core.Layer|Layer]] * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} DrawCore(GeoCanvas,Collection) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //canvas// * Type:[[ThinkGeo.MapSuite.Core.GeoCanvas|GeoCanvas]] * Description:N/A * //labelsInAllLayers// * Type:Collection<[[ThinkGeo.MapSuite.Core.SimpleCandidate|SimpleCandidate]]> * Description:N/A
** {{wiki:ProtectedMethod.gif|}} RequireLinkProcess(IEnumerable) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Boolean * Description:N/A == Parameters == * //returningColumnNames// * Type:IEnumerable * Description:N/A
** {{wiki:ProtectedMethod.gif|}} DrawFeaturesWithStyleFilters(GeoCanvas,Dictionary>,Collection,ZoomLevel,RectangleShape) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //canvas// * Type:[[ThinkGeo.MapSuite.Core.GeoCanvas|GeoCanvas]] * Description:N/A * //featuresForFilters// * Type:Dictionary> * Description:N/A * //labelsInAllLayers// * Type:Collection<[[ThinkGeo.MapSuite.Core.SimpleCandidate|SimpleCandidate]]> * Description:N/A * //currentZoomLevel// * Type:[[ThinkGeo.MapSuite.Core.ZoomLevel|ZoomLevel]] * Description:N/A * //marginWorldExtent// * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} OnDrawingFeatures(DrawingFeaturesEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //e// * Type:[[ThinkGeo.MapSuite.Core.DrawingFeaturesEventArgs|DrawingFeaturesEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} OnDrawingWrappingFeatures(DrawingWrappingFeaturesFeatureLayerEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //e// * Type:[[ThinkGeo.MapSuite.Core.DrawingWrappingFeaturesFeatureLayerEventArgs|DrawingWrappingFeaturesFeatureLayerEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} SetupTools() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} SetupToolsCore() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} OpenCore() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} CloseCore() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} GetBoundingBoxCore() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} OnRequestedDrawing(RequestedDrawingLayerEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //eventArgs// * Type:[[ThinkGeo.MapSuite.Core.RequestedDrawingLayerEventArgs|RequestedDrawingLayerEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} OnRequestingDrawing(RequestingDrawingLayerEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //eventArgs// * Type:[[ThinkGeo.MapSuite.Core.RequestingDrawingLayerEventArgs|RequestingDrawingLayerEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} GetThreadSafetyLevelCore() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:[[ThinkGeo.MapSuite.Core.ThreadSafetyLevel|ThreadSafetyLevel]] * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} DrawException(GeoCanvas,Exception) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //canvas// * Type:[[ThinkGeo.MapSuite.Core.GeoCanvas|GeoCanvas]] * Description:N/A * //e// * Type:Exception * Description:N/A
** {{wiki:ProtectedMethod.gif|}} DrawExceptionCore(GeoCanvas,Exception) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //canvas// * Type:[[ThinkGeo.MapSuite.Core.GeoCanvas|GeoCanvas]] * Description:N/A * //e// * Type:Exception * Description:N/A
** {{wiki:ProtectedMethod.gif|}} OnDrawingException(DrawingExceptionLayerEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //e// * Type:[[ThinkGeo.MapSuite.Core.DrawingExceptionLayerEventArgs|DrawingExceptionLayerEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} OnDrawnException(DrawnExceptionLayerEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //e// * Type:[[ThinkGeo.MapSuite.Core.DrawnExceptionLayerEventArgs|DrawnExceptionLayerEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} DrawAttributionCore(GeoCanvas,String) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //canvas// * Type:[[ThinkGeo.MapSuite.Core.GeoCanvas|GeoCanvas]] * Description:N/A * //attribution// * Type:String * Description:N/A
** {{wiki:ProtectedMethod.gif|}} OnDrawingAttribution(DrawingAttributionLayerEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //args// * Type:[[ThinkGeo.MapSuite.Core.DrawingAttributionLayerEventArgs|DrawingAttributionLayerEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} OnDrawnAttribution(DrawnAttributionLayerEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //args// * Type:[[ThinkGeo.MapSuite.Core.DrawnAttributionLayerEventArgs|DrawnAttributionLayerEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} OnDrawingProgressChanged(DrawingProgressChangedEventArgs) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters == * //e// * Type:[[ThinkGeo.MapSuite.Core.DrawingProgressChangedEventArgs|DrawingProgressChangedEventArgs]] * Description:N/A
** {{wiki:ProtectedMethod.gif|}} Finalize() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Object * Description:N/A == Parameters ==
==== Public Properties ==== ** {{wiki:PublicProperty.gif|}} 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 ** {{wiki:PublicProperty.gif|}} UsingSpatialIndex ** This property gets whether the Shape File FeatureSource has an index or not. == Remarks == N/A == Return Value == * Type:Boolean ** {{wiki:PublicProperty.gif|}} Encoding ** This property gets and sets the encoding information for the DBF. == Remarks == N/A == Return Value == * Type:Encoding ** {{wiki:PublicProperty.gif|}} ShapePathFileName ** This property returns the path and filename of the Shape File you want to represent. == Remarks == None == Return Value == * Type:String ** {{wiki:PublicProperty.gif|}} IndexPathFileName ** This property returns the path and filename of the index file you want to represent. == Remarks == None == Return Value == * Type:String ** {{wiki:PublicProperty.gif|}} ReadWriteMode ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.ShapeFileReadWriteMode|ShapeFileReadWriteMode]] ** {{wiki:PublicProperty.gif|}} 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 ** {{wiki:PublicProperty.gif|}} ProgressiveDrawingRecordsCount ** N/A == Remarks == N/A == Return Value == * Type:Int32 ** {{wiki:PublicProperty.gif|}} SimplificationAreaInPixel ** N/A == Remarks == N/A == Return Value == * Type:Int32 ** {{wiki:PublicProperty.gif|}} WrappingExtent ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] ** {{wiki:PublicProperty.gif|}} WrappingMode ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.WrappingMode|WrappingMode]] ** {{wiki:PublicProperty.gif|}} EditTools ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.EditTools|EditTools]] ** {{wiki:PublicProperty.gif|}} FeatureIdsToExclude ** N/A == Remarks == N/A == Return Value == * Type:Collection ** {{wiki:PublicProperty.gif|}} QueryTools ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.QueryTools|QueryTools]] ** {{wiki:PublicProperty.gif|}} MaxRecordsToDraw ** N/A == Remarks == N/A == Return Value == * Type:Int32 ** {{wiki:PublicProperty.gif|}} FeatureSource ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.FeatureSource|FeatureSource]] ** {{wiki:PublicProperty.gif|}} DrawingQuality ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.DrawingQuality|DrawingQuality]] ** {{wiki:PublicProperty.gif|}} ZoomLevelSet ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.ZoomLevelSet|ZoomLevelSet]] ** {{wiki:PublicProperty.gif|}} DrawingMarginPercentage ** N/A == Remarks == N/A == Return Value == * Type:Double ** {{wiki:PublicProperty.gif|}} DrawingMarginInPixel ** N/A == Remarks == N/A == Return Value == * Type:Single ** {{wiki:PublicProperty.gif|}} GeometryValidationMode ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.GeometryValidationMode|GeometryValidationMode]] ** {{wiki:PublicProperty.gif|}} RequestDrawingInterval ** N/A == Remarks == N/A == Return Value == * Type:TimeSpan ** {{wiki:PublicProperty.gif|}} IsOpen ** N/A == Remarks == N/A == Return Value == * Type:Boolean ** {{wiki:PublicProperty.gif|}} DrawingTime ** N/A == Remarks == N/A == Return Value == * Type:TimeSpan ** {{wiki:PublicProperty.gif|}} Name ** N/A == Remarks == N/A == Return Value == * Type:String ** {{wiki:PublicProperty.gif|}} Attribution ** N/A == Remarks == N/A == Return Value == * Type:String ** {{wiki:PublicProperty.gif|}} IsVisible ** N/A == Remarks == N/A == Return Value == * Type:Boolean ** {{wiki:PublicProperty.gif|}} Transparency ** N/A == Remarks == N/A == Return Value == * Type:Single ** {{wiki:PublicProperty.gif|}} BlueTranslation ** N/A == Remarks == N/A == Return Value == * Type:Single ** {{wiki:PublicProperty.gif|}} RedTranslation ** N/A == Remarks == N/A == Return Value == * Type:Single ** {{wiki:PublicProperty.gif|}} GreenTranslation ** N/A == Remarks == N/A == Return Value == * Type:Single ** {{wiki:PublicProperty.gif|}} KeyColors ** N/A == Remarks == N/A == Return Value == * Type:Collection<[[ThinkGeo.MapSuite.Core.GeoColor|GeoColor]]> ** {{wiki:PublicProperty.gif|}} IsNegative ** N/A == Remarks == N/A == Return Value == * Type:Boolean ** {{wiki:PublicProperty.gif|}} IsGrayscale ** N/A == Remarks == N/A == Return Value == * Type:Boolean ** {{wiki:PublicProperty.gif|}} DrawingExceptionMode ** N/A == Remarks == N/A == Return Value == * Type:[[ThinkGeo.MapSuite.Core.DrawingExceptionMode|DrawingExceptionMode]] ==== Protected Properties ==== ** {{wiki:ProtectedProperty.gif|}} FetchedCount ** N/A == Remarks == N/A == Return Value == * Type:Int64 ** {{wiki:ProtectedProperty.gif|}} FetchedBytes ** N/A == Remarks == N/A == Return Value == * Type:Int64 ** {{wiki:ProtectedProperty.gif|}} StyleTime ** N/A == Remarks == N/A == Return Value == * Type:TimeSpan ** {{wiki:ProtectedProperty.gif|}} FetchTime ** N/A == Remarks == N/A == Return Value == * Type:TimeSpan ** {{wiki:ProtectedProperty.gif|}} IsOpenCore ** N/A == Remarks == N/A == Return Value == * Type:Boolean ==== Public Events ==== ** {{wiki:PublicEvent.gif|}} 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:[[ThinkGeo.MapSuite.Core.StreamLoadingEventArgs|StreamLoadingEventArgs]] ** {{wiki:PublicEvent.gif|}} DrawingFeatures ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.DrawingFeaturesEventArgs|DrawingFeaturesEventArgs]] ** {{wiki:PublicEvent.gif|}} DrawingWrappingFeatures ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.DrawingWrappingFeaturesFeatureLayerEventArgs|DrawingWrappingFeaturesFeatureLayerEventArgs]] ** {{wiki:PublicEvent.gif|}} RequestedDrawing ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.RequestedDrawingLayerEventArgs|RequestedDrawingLayerEventArgs]] ** {{wiki:PublicEvent.gif|}} RequestingDrawing ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.RequestingDrawingLayerEventArgs|RequestingDrawingLayerEventArgs]] ** {{wiki:PublicEvent.gif|}} DrawingProgressChanged ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.DrawingProgressChangedEventArgs|DrawingProgressChangedEventArgs]] ** {{wiki:PublicEvent.gif|}} DrawingException ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.DrawingExceptionLayerEventArgs|DrawingExceptionLayerEventArgs]] ** {{wiki:PublicEvent.gif|}} DrawnException ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.DrawnExceptionLayerEventArgs|DrawnExceptionLayerEventArgs]] ** {{wiki:PublicEvent.gif|}} DrawingAttribution ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.DrawingAttributionLayerEventArgs|DrawingAttributionLayerEventArgs]] ** {{wiki:PublicEvent.gif|}} DrawnAttribution ** N/A == Remarks == N/A Event Arguments:[[ThinkGeo.MapSuite.Core.DrawnAttributionLayerEventArgs|DrawnAttributionLayerEventArgs]]