ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
This class represents a Layer backed by a Shape File.
This is the default constructor. If you use this constructor, then you should set the required methods manually.
None
ShapeFileFeatureLayer(String,ShapeFileReadWriteMode)
This is a constructor for the class.
None
ShapeFileFeatureLayer(String,String)
This is a constructor for the class.
None
ShapeFileFeatureLayer(String,String,ShapeFileReadWriteMode)
This is a constructor for the class.
None
ShapeFileFeatureLayer(String,String,ShapeFileReadWriteMode,Encoding)
This is a constructor for the class.
None
N/A
N/A
N/A
N/A
N/A
N/A
N/A
RequestDrawing(RectangleShape,TimeSpan)
N/A
N/A
RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType)
N/A
N/A
RequestDrawing(IEnumerable<RectangleShape>,TimeSpan)
N/A
N/A
RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
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.
Rebuild(String,ShapeFileSortingMode,Int32)
N/A
N/A
CreateShapeFile(ShapeFileType,String,IEnumerable<DbfColumn>)
Static API to create a new Shape File.
N/A
CreateShapeFile(ShapeFileType,String,IEnumerable<DbfColumn>,Encoding)
Static API to create a new Shape File.
N/A
CreateShapeFile(ShapeFileType,String,IEnumerable<DbfColumn>,Encoding,OverwriteMode)
Static API to create a new Shape File.
An exception will be thown when the target Shape File does not exist while the overwrite mode is set to DoNotOverwrite.
This method builds a spatial index for the layer.
This overload allows you to pass in the Shape File.
BuildIndexFile(String,String,BuildIndexMode)
This method build a spatial index for the shape file which increases accessspeed.
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.
BuildIndexFile(String,BuildIndexMode)
This method builds a spatial index for the layer.
This overload allows you to pass in the Shape File and determines if we rebuild an index file that already exists.
BuildIndexFile(IEnumerable<Feature>,String)
This method builds a spatial index for the specified group of features.
This overload allows you to pass in a group of features and specify the index filename to use.
BuildIndexFile(IEnumerable<Feature>,String,Projection)
This method builds a spatial index for the specified group of features and target projection.
This overload allows you to pass in a group of features and specify a target projection and the index filename to use.
BuildIndexFile(IEnumerable<Feature>,String,BuildIndexMode)
This method builds a spatial index for the specified group of features.
This overload allows you to pass in a group of features and specify the index filename to use.
BuildIndexFile(IEnumerable<Feature>,String,Projection,BuildIndexMode)
This method builds a spatial index for the specified group of features.
This overload allows you to pass in a group of features and specify a target projection and the index filename to use.
BuildIndexFile(String,String,String,String,BuildIndexMode)
This method builds a spatial index only for those features that satisfy a regular expression.
This overload allows you to pass in a Shape File and specify the index filename to use.
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.
This overload allows you to pass in a Shape File and specify the index filename to use.
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.
This overload allows you to pass in a Shape File and specify the index filename to use.
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.
N/A
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.
An exception will be thown when the target ShapeFile does not exist and the overwrite mode is set to DoNotOverwrite.
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.
An exception will be thown when the target ShapeFile does not exist and the overwrite mode is set to DoNotOverwrite.
BuildRecordIdColumn(String,String,BuildRecordIdMode)
Static API used to build RecordId. The Id will start from 0.
N/A
BuildRecordIdColumn(String,String,BuildRecordIdMode,Int32)
Static API used to build RecordId from the specified starting Id number.
N/A
BuildRecordIdColumn(String,String,BuildRecordIdMode,Int32,Encoding)
Static API used to build RecordId from the specified starting Id number.
N/A
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.
N/A
GetValidColumns(IEnumerable<DbfColumn>)
N/A
N/A
GetValidColumns(IEnumerable<DbfColumn>,Encoding)
N/A
N/A
GetValidColumnNames(IEnumerable<String>)
N/A
N/A
GetValidColumnNames(IEnumerable<String>,Encoding)
N/A
N/A
N/A
N/A
N/A
N/A
1xU=(GeoCanvas,Dictionary<String,Collection<Feature»,Collection<SimpleCandidate>,ZoomLevel,RectangleShape)
N/A
N/A
OnDrawingFeatures(DrawingFeaturesEventArgs)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
DrawExceptionCore(GeoCanvas,Exception)
N/A
N/A
OnDrawingException(DrawingExceptionLayerEventArgs)
N/A
N/A
N/A
N/A
OnDrawingAttribution(DrawingAttributionLayerEventArgs)
N/A
N/A
N/A
N/A
N/A
N/A
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.
The default implementation in the base class returns false.
This property gets whether the Shape File FeatureSource has an index or not.
N/A
N/A
This property returns the path and filename of the Shape File you want to represent.
None
This property returns the path and filename of the index file you want to represent.
None
N/A
This property gets and sets whether an index is required when reading data. The default value is true.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
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
N/A
Event Arguments:DrawnAttributionLayerEventArgs