The ShapeFile type exposes the following members.

Constructors

  NameDescription
Public methodShapeFile()()()()
Empty constructor.
Public methodShapeFile(String)
Constructs a ShapeFile using a path to a .shp shape file

Methods

  NameDescription
Public methodClearRecordsVisibility
Sets all shapefile records to be visible
Public methodClearSelectedRecords
Clears any selected shapefile records
Public methodClose
Closes the underlying stream of the ShapeFile and clears all of the internal data. After calling this method the ShapeFile can no longer be rendered
Public methodConvertExtentToWgs84
Convert source extent to WGS84 extent
Public methodDispose
Disposes of the ShapeFile
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetAttributeFieldNames
Gets all of the Attribute Names contained in the shapefile's DBF file
Public methodGetAttributeFieldValues
Gets all of the Attribute values contained in the shapefile's DBF file
Public methodGetClosestShape(PointD, Double)
Public methodGetClosestShape(PointD, Double, PolylineDistanceInfo%)
Public methodGetClosestShape(PointD, Double, List<(Of <<'(Int32>)>>), PolylineDistanceInfo%)
returns the index of the closest shape in the given collection of records
Public methodGetClosestShape(PointD, Double, ReadOnlyCollection<(Of <<'(Int32>)>>), PolylineDistanceInfo%)
Public methodGetHashCode (Inherited from Object.)
Public methodGetRecords
Gets all of the records at fieldIndex in the DBF file
Public methodGetShapeBounds
Gets the rectangular bounds of an individual shape in the ShapeFile
Public methodGetShapeBoundsD
Gets the rectangular bounds of an individual shape in the ShapeFile in double precision coordinates
Public methodGetShapeData(Int32)
Gets the raw shape data at given record index.
Public methodGetShapeData(Int32, array<Byte>[]()[][])
Gets the raw shape data at given record index, using a supplied dataBuffer to read the data.
Public methodGetShapeDataD(Int32)
Gets the raw shape data in double precision format at given record index.
Public methodGetShapeDataD(Int32, array<Byte>[]()[][])
Gets the raw shape data in double precision format at given record index, using a supplied dataBuffer to read the data.
Public methodGetShapeExtentsD
Gets the rectangular extent of each shape in the shapefile in double precision form
Public methodGetShapeFileEnumerator()()()()
Gets a ShapeFileEnumerator, which can be used to enumerate over all of the records in the ShapeFile
Public methodGetShapeFileEnumerator(RectangleD)
Gets a ShapeFileEnumerator, which can be used to enumerate over all of the records in the ShapeFile, intersecting with a given bounds
Public methodGetShapeFileEnumerator(RectangleF, ShapeFileEnumerator..::..IntersectionType)
Gets a ShapeFileEnumerator, which can be used to enumerate over all of the records in the ShapeFile, intersecting or contained within a given bounds
Public methodGetShapeIndexContainingPoint
returns the index of the shape containing Point pt
Public methodGetShapeIndiciesIntersectingCircle
gets records intersecting a circle
Public methodGetShapeIndiciesIntersectingRect
Gets records intersecting a given rectangle
Public methodGetShapeMDataD(Int32)
Gets the raw shape M(Measures) data in double precision format at given record index, using a supplied dataBuffer to read the data.
Public methodGetShapeMDataD(Int32, array<Byte>[]()[][])
Gets the raw shape M(Measures) data in double precision format at given record index, using a supplied dataBuffer to read the data.
Public methodGetShapeZData(Int32)
Gets the raw shape Z(height) data at given record index.
Public methodGetShapeZData(Int32, array<Byte>[]()[][])
Gets the raw shape Z(height) data at given record index, using a supplied dataBuffer to read the data.
Public methodGetShapeZDataD
Gets the raw shape Z(height) data in double precision format at given record index, using a supplied dataBuffer to read the data.
Public methodGetType (Inherited from Object.)
Public methodIsRecordSelected
returns whether a shapefile record is currently selected
Public methodIsRecordVisible
returns whether a shapefile record is currently visible
Public methodIsVisibleAtZoomLevel
Checks whether the ShapeFile will be visible if rendered at given zoom level, as determined by the ShapeFile RenderSettings
Public methodStatic memberLatLongToProjection
Transforms a point using MercatorProjection
Public methodStatic memberLLExtentToProjectedExtent
Public methodStatic memberLLToMercator
Applys the Mercator projection to a lat long pt and returns the projected point
Public methodLoadFromFile
Loads a ShapeFile using a path to a .shp shape file
Public methodLoadFromFile2
Loads a ShapeFile using a path to a .shp shape file
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberMercatorToLL
Utillity method to translate a Point using a Mercator Projection t its Lat/Long representation.
Public methodStatic memberProjectionToLatLong
Returns a projected point to its Lat Long equivalent
Public methodReadXml
Reads and and loads a ShapeFile from Xml representation of the ShapeFile (as output by WriteXml)
Public methodRender(Graphics, Size, PointD, Double, ProjectionType)
Renders the shapefile centered at given point and zoom
Public methodRender(Graphics, Size, PointD, Double, ProjectionType, ICRS)
Renders the shapefile centered at given point and zoom
Public methodRender(Graphics, Size, PointF, Single, RenderSettings, ProjectionType)
Renders the shapefile centered at given point and zoom
Public methodSelectRecord
Selects or de-selects a shapefile record.
Public methodSetRecordVisibility
Sets the visibility of a shapefile record.
Public methodShapeIntersectsRect
Public methodToString
overridden ToString method
(Overrides Object..::..ToString()()()().)
Public methodWriteXml
Writes an Xml representation of the ShapeFile.

Properties

  NameDescription
Public propertyCoordinateReferenceSystem
The Coordinate Reference System of the ShapeFile as read from the .prj file WKT
Public propertyExtent
Gets the Rectangular extent of the shapefile
Public propertyFilePath
Gets the path to the ShapeFile, not including the .shp file extension
Public propertyIsSelectable
Indicates whether the ShapeFile is selectable.
Public propertyStatic memberMapFilesInMemory
Gets or Sets whether to map files in memory.
Public propertyName
The name of this ShapeFile.
Public propertyProjectionWKT
The WKT representation of the ShapeFile's Coordinate Reference System as read from the .prj file
Public propertyStatic memberQuadTreeMaxLevels
Static property to get/set maximum levels used by internal quad tree data structure
Public propertyRecordCount
Gets the number of records(shapes) in the ShapeFile
Public propertyStatic memberRenderQuality
Gets or Sets the RenderQuality to use when rendering shapefiles
Public propertyRenderSettings
Gets or sets the RenderSettings used by the ShapeFile when Rendering
Public propertySelectedRecordIndices
Returns a collection of all the selected record indices
Public propertyShapeType
Gets the ShapeType of the ShapeFile
Public propertyStatic memberSync
Gets an object that can be used to synchronize access to the ShapeFile
Public propertyVisibleRecordIndices
Returns a collection of all the visible record indices

See Also