C# Class Catfood.Shapefile.ShapeFactory

Static factory class to create shape objects from a shape record
Show file Open project: TNOCS/csTouch

Public Methods

Method Description
ParseShape ( byte shapeData, StringDictionary metadata, IDataRecord dataRecord ) : Shape

Creates a Shape object (or derived object) from a shape record

Method Details

ParseShape() public static method

Creates a Shape object (or derived object) from a shape record
Thrown if shapeData or metadata are null Thrown if shapeData is less than 12 bytes long Thrown if an error occurs parsing shapeData
public static ParseShape ( byte shapeData, StringDictionary metadata, IDataRecord dataRecord ) : Shape
shapeData byte The shape record as a byte array
metadata System.Collections.Specialized.StringDictionary Metadata associated with this shape (optional)
dataRecord IDataRecord IDataRecord associated with the metadata
return Shape