Class WorldFile
This class represents the values of a world file.
public class WorldFile
- Inheritance
-
WorldFile
- Inherited Members
Remarks
A world file is an attribute file that is associated with a corresponding image file. Typically, the world file consists of 6 lines of numbers.
Constructors
WorldFile()
This is the default constructor for the WorldFile class.
public WorldFile()
Remarks
None
WorldFile(double, double, double, double, double, double)
This is a constructor that passes 6 attributes in double associated with the corresponding image file.
public WorldFile(double horizontalResolution, double rotationRow, double rotationColumn, double verticalResolution, double upperLeftX, double upperLeftY)
Parameters
horizontalResolutiondoubleThis parameter specifies the size of pixels in the x direction.
rotationRowdoubleThis parameter specifies the rotation term for row.
rotationColumndoubleThis parameter specifes the rotation term for column.
verticalResolutiondoubleThis parameter specifies the size of pixels in the y direction.
upperLeftXdoubleThis parameter represents the x coordinate of the center of the upper-leftmost pixel in map units.
upperLeftYdoubleThis parameter represents the y coordinate of the center of the upper-leftmost pixel in map units.
WorldFile(float, float, float, float, float, float)
This is a constructor that passes 6 attributes in float associated with the corresponding image file.
public WorldFile(float horizontalResolution, float rotationRow, float rotationColumn, float verticalResolution, float upperLeftX, float upperLeftY)
Parameters
horizontalResolutionfloatThis parameter specifies the size of pixels in the x direction.
rotationRowfloatThis parameter specifies the rotation term for row.
rotationColumnfloatThis parameter specifes the rotation term for column.
verticalResolutionfloatThis parameter specifies the size of pixels in the y direction.
upperLeftXfloatThis parameter represents the x coordinate of the center of the upper-leftmost pixel in map units.
upperLeftYfloatThis parameter represents the y coordinate of the center of the upper-leftmost pixel in map units.
WorldFile(string)
This is the constructor that passes the worldFile text.
public WorldFile(string worldFileText)
Parameters
worldFileTextstringThe world file text containing the world file attribute information.
Remarks
The worldFileText is typically read from a world file.
WorldFile(RectangleShape, float, float)
This is the constructor that passes the WorldExtent of the image, the height of the image, and the width of the image.
public WorldFile(RectangleShape worldExtent, float imageWidth, float imageHeight)
Parameters
worldExtentRectangleShapeThis parameter specifies the World Coordinate Extent for the image.
imageWidthfloatThis parameter specifies the image width for the image.
imageHeightfloatThis parameter specifies the image height for the image.
Properties
HorizontalResolution
This property gets the horizontal resolution from the world file.
public float HorizontalResolution { get; }
Property Value
- float
This property gets the horizontal resolution from the world file.
Remarks
None
RotationColumn
This property gets the rotation in column from the world file.
public float RotationColumn { get; }
Property Value
- float
This property gets the rotation in column from the world file.
Remarks
None
RotationRow
This property gets the rotation in row from the world file.
public float RotationRow { get; }
Property Value
- float
This property gets the rotation in row from the world file.
Remarks
None
UpperLeftX
This property gets the upper left Y coordinate from the world file.
public float UpperLeftX { get; }
Property Value
- float
This property gets the upper left Y coordinate from the world file.
Remarks
None
UpperLeftY
This property gets the upper left X coordinate from the world file.
public float UpperLeftY { get; }
Property Value
- float
This property gets the upper left X coordinate from the world file.
Remarks
None
VerticalResolution
This property gets the vertical resolution from the world file.
public float VerticalResolution { get; }
Property Value
- float
This property gets the vertical resolution from the world file.
Remarks
None
Methods
GetBoundingBox(float, float)
public RectangleShape GetBoundingBox(float width, float height)
Parameters
Returns
Save(string)
public void Save(string pathFilename)
Parameters
pathFilenamestring