Skip to content

ShapefileValidatorHelper

Namespace: ThinkGeo.Core

Provides guard methods that validate shapefile parameters, types, and editability.

public static class ShapefileValidatorHelper

Inheritance objectShapefileValidatorHelper

Methods

7SU=(string, string)

internal static void 7SU=(string pathFilename, string parameterName)

Parameters

pathFilename string

parameterName string

Returns

void

7iU=(ShapeFileBoundingBox)

internal static void 7iU=(ShapeFileBoundingBox shapeFileBoundingBox)

Parameters

shapeFileBoundingBox ShapeFileBoundingBox

Returns

void

CheckSqlStatementIsSupported(string)

Ensures that the supplied SQL statement is supported (currently only UPDATE statements).

public static void CheckSqlStatementIsSupported(string sqlStatement)

Parameters

sqlStatement string

Returns

void

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

void

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

void

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

void

CheckShapeFileIsEditable(ShapeFileType, string)

Ensures the shape type supports editing operations.

public static void CheckShapeFileIsEditable(ShapeFileType shapeFileType, string parameterName)

Parameters

shapeFileType ShapeFileType

parameterName string

Returns

void

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

Returns

void