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.
ProgressiveDrawingRecordsCount
This is a constructor for the class.
This is the default constructor. If you use this constructor, then you should set the required methods manually.
This is a constructor for the class.
None
shapePathFilename
readWriteMode
indexPathFilename
indexPathFilename
This is a constructor for the class.
None
shapePathFilename
readWriteMode
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.
Return Value
shapePathFilename
indexPathFilename
projection
columnName
regularExpression
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.
Return Value
shapePathFilename
indexPathFilename
buildIndexMode
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.
Return Value
features
indexPathFilename
projection
This method builds a spatial index for the layer.
This overload allows you to pass in the Shape File.
Return Value
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.
Return Value
features
indexPathFilename
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.
Return Value
features
indexPathFilename
projection
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.
Return Value
shapePathFilename
indexPathFilename
columnName
regularExpression
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.
Return Value
pathFilename
rebuildExistingIndexMode
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.
Return Value
features
indexPathFilename
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.
Return Value
shapePathFilename
indexPathFilename
projection
columnName
regularExpression
buildIndexMode
encoding
Static API used to build RecordId. The Id will start from 0.
N/A
Return Value
shapeFilename
fieldname
rebuildNeeded
Static API used to build RecordId from the specified starting Id number.
N/A
Return Value
shapeFilename
fieldname
rebuildNeeded
startNumber
Static API used to build RecordId from the specified starting Id number.
N/A
Return Value
shapeFilename
fieldname
rebuildNeeded
startNumber
encoding
N/A
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
Return Value
sourceShapePathFilename
targetShapePathFilename
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.
Return Value
sourceShapePathFilename
targetShapePathFilename
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.
Return Value
sourceShapePathFilename
targetShapePathFilename
overwriteMode
encoding
N/A
N/A
Return Value
Static API to create a new Shape File.
N/A
Return Value
shapeType
pathFilename
databaseColumns
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.
Return Value
shapeType
pathFilename
databaseColumns
encoding
overwriteMode
Static API to create a new Shape File.
N/A
Return Value
shapeType
pathFilename
databaseColumns
encoding
N/A
N/A
Return Value
canvas
labelsInAllLayers
N/A
N/A
Return Value
N/A
N/A
N/A
Return Value
Get the Shape File type for the Shape File FeatureSource.
N/A
Return Value
N/A
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
N/A
N/A
Return Value
N/A
N/A
Return Value
shapePathFilename
sortingMode
sridForSorting
This method rebuilds the SHP, SHX, DBF, IDX and IDS files for the given shape file.
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
shapePathFilename
N/A
N/A
Return Value
extentToRefresh
bufferTime
bufferTimeType
N/A
N/A
Return Value
N/A
N/A
Return Value
extentsToRefresh
bufferTime
bufferTimeType
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
extentsToRefresh
bufferTime
N/A
N/A
Return Value
bufferTime
bufferTimeType
This API provide a easy way to project features in a shape file into another projection and save it to shape file.
N/A
Return Value
sourceShapeFile
targetShapeFile
projection
overwriteMode
N/A
N/A
Return Value
This method checks all features in a shapefile is supported by Mapsuite or not.
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
canvas
featuresForFilters
labelsInAllLayers
currentZoomLevel
marginWorldExtent
N/A
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
canvas
labelsInAllLayers
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Value
N/A
N/A
Return Type:String
N/A
N/A
Return Type:Single
N/A
N/A
Return Type:DrawingExceptionMode
N/A
N/A
Return Type:Single
N/A
N/A
Return Type:Double
N/A
N/A
Return Type:DrawingQuality
N/A
N/A
Return Type:TimeSpan
N/A
N/A
This property gets and sets the encoding information for the DBF.
N/A
Return Type:Encoding
N/A
N/A
Return Type:Collection<String>
N/A
N/A
Return Type:FeatureSource
N/A
N/A
Return Type:GeometryValidationMode
N/A
N/A
Return Type:Single
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.
Return Type:Boolean
This property returns the path and filename of the index file you want to represent.
None
Return Type:String
N/A
N/A
Return Type:Boolean
N/A
N/A
Return Type:Boolean
N/A
N/A
Return Type:Boolean
N/A
N/A
Return Type:Boolean
N/A
N/A
N/A
N/A
Return Type:Int32
N/A
N/A
Return Type:String
N/A
N/A
Return Type:Int32
N/A
N/A
Return Type:QueryTools
N/A
N/A
Return Type:ShapeFileReadWriteMode
N/A
N/A
Return Type:Single
N/A
N/A
Return Type:TimeSpan
This property gets and sets whether an index is required when reading data. The default value is true.
N/A
Return Type:Boolean
This property returns the path and filename of the Shape File you want to represent.
None
Return Type:String
N/A
N/A
Return Type:Int32
N/A
N/A
Return Type:Single
This property gets whether the Shape File FeatureSource has an index or not.
N/A
Return Type:Boolean
N/A
N/A
Return Type:RectangleShape
N/A
N/A
Return Type:WrappingMode
N/A
N/A
Return Type:ZoomLevelSet
N/A
N/A
Return Type:TimeSpan
N/A
N/A
Return Type:TimeSpan
N/A
N/A
Return Type:Boolean
N/A
N/A
Return Type:Int64
N/A
N/A
Return Type:Int64
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
This event allows you to pass in your own stream to represent the files.
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