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
horizontalResolution
doubleThis parameter specifies the size of pixels in the x direction.
rotationRow
doubleThis parameter specifies the rotation term for row.
rotationColumn
doubleThis parameter specifes the rotation term for column.
verticalResolution
doubleThis parameter specifies the size of pixels in the y direction.
upperLeftX
doubleThis parameter represents the x coordinate of the center of the upper-leftmost pixel in map units.
upperLeftY
doubleThis 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
horizontalResolution
floatThis parameter specifies the size of pixels in the x direction.
rotationRow
floatThis parameter specifies the rotation term for row.
rotationColumn
floatThis parameter specifes the rotation term for column.
verticalResolution
floatThis parameter specifies the size of pixels in the y direction.
upperLeftX
floatThis parameter represents the x coordinate of the center of the upper-leftmost pixel in map units.
upperLeftY
floatThis 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
worldFileText
stringThe 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
worldExtent
RectangleShapeThis parameter specifies the World Coordinate Extent for the image.
imageWidth
floatThis parameter specifies the image width for the image.
imageHeight
floatThis 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
pathFilename
string