ShapefileValidatorHelper¶
Namespace: ThinkGeo.Core
Provides guard methods that validate shapefile parameters, types, and editability.
public static class ShapefileValidatorHelper
Inheritance object → ShapefileValidatorHelper
Methods¶
7SU=(string, string)¶
internal static void 7SU=(string pathFilename, string parameterName)
Parameters¶
pathFilename string
parameterName string
Returns¶
7iU=(ShapeFileBoundingBox)¶
internal static void 7iU=(ShapeFileBoundingBox shapeFileBoundingBox)
Parameters¶
shapeFileBoundingBox ShapeFileBoundingBox
Returns¶
CheckSqlStatementIsSupported(string)¶
Ensures that the supplied SQL statement is supported (currently only UPDATE statements).
public static void CheckSqlStatementIsSupported(string sqlStatement)
Parameters¶
sqlStatement string
Returns¶
CheckShapeFileIsWriteable(FileAccess, string)¶
Validates that the requested file access mode allows writing.
public static void CheckShapeFileIsWriteable(FileAccess readWriteMode, string parameterName)
Parameters¶
readWriteMode FileAccess
parameterName string
Returns¶
CheckShapeFileTypeIsValid(ShapeFileType, string)¶
Ensures the provided shapefile type enum falls within the supported range.
public static void CheckShapeFileTypeIsValid(ShapeFileType shapeFileType, string parameterName)
Parameters¶
shapeFileType ShapeFileType
parameterName string
Returns¶
CheckDbfColumnsAreEmpty(IEnumerable<DbfColumn>, string)¶
Validates that at least one DBF column is supplied.
public static void CheckDbfColumnsAreEmpty(IEnumerable<DbfColumn> dbfColumns, string parameterName)
Parameters¶
dbfColumns IEnumerable<DbfColumn>
parameterName string
Returns¶
CheckShapeFileIsEditable(ShapeFileType, string)¶
Ensures the shape type supports editing operations.
public static void CheckShapeFileIsEditable(ShapeFileType shapeFileType, string parameterName)
Parameters¶
shapeFileType ShapeFileType
parameterName string
Returns¶
CheckShapeFileTypeIsSupported(ShapeFileType, string)¶
Ensures that the shape type is supported by the current APIs.
public static void CheckShapeFileTypeIsSupported(ShapeFileType shapeFileType, string parameterName)
Parameters¶
shapeFileType ShapeFileType
parameterName string