Skip to content

ProjectionConverter

Inheritance Hierarchy

Members Summary

Public Constructors Summary

Name
ProjectionConverter()
ProjectionConverter(String,String)
ProjectionConverter(Int32,Int32)
ProjectionConverter(String,Int32)
ProjectionConverter(Int32,String)
ProjectionConverter(Projection,Projection)

Protected Constructors Summary

Name
N/A

Public Properties Summary

Name Return Type Description
CanConvertRasterToExternalProjection Boolean N/A
DecimalDegreeBoundary RectangleShape N/A
ExternalProjection Projection Gets or sets the Proj4 text parameter for the to projection. This parameter typically look like "+proj=utm +zone=33 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs".
InternalProjection Projection Gets or sets the Proj4 text parameter for the from projection. This parameter typically look like "+Proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs".
IsOpen Boolean This property gets the state of the projection (whether it is opened or closed).

Protected Properties Summary

Name Return Type Description
N/A N/A N/A

Public Methods Summary

Name
Close()
ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape,Int32,Int32)
ConvertToExternalProjection(GeoImage,RectangleShape)
ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape)
ConvertToExternalProjection(Double,Double)
ConvertToExternalProjection(BaseShape)
ConvertToExternalProjection(Feature)
ConvertToExternalProjection(IEnumerable<Feature>)
ConvertToExternalProjection(RectangleShape)
ConvertToExternalProjection(IEnumerable<Vertex>)
ConvertToInternalProjection(Double,Double)
ConvertToInternalProjection(BaseShape)
ConvertToInternalProjection(Feature)
ConvertToInternalProjection(IEnumerable<Vertex>)
ConvertToInternalProjection(RectangleShape)
Equals(Object)
GetHashCode()
GetType()
Open()
ToString()

Protected Methods Summary

Name
CloseCore()
ConvertToExternalProjectionCore(GeoImage,RectangleShape,RectangleShape,Int32,Int32)
ConvertToExternalProjectionCore(IEnumerable<Vertex>)
ConvertToInternalProjectionCore(IEnumerable<Vertex>)
Finalize()
MemberwiseClone()
OpenCore()
UpdateToExternalProjection(Feature)
UpdateToInternalProjection(Feature)

Public Events Summary

Name Event Arguments Description
N/A N/A N/A

Members Detail

Public Constructors

Name
ProjectionConverter()
ProjectionConverter(String,String)
ProjectionConverter(Int32,Int32)
ProjectionConverter(String,Int32)
ProjectionConverter(Int32,String)
ProjectionConverter(Projection,Projection)

Protected Constructors

Public Properties

CanConvertRasterToExternalProjection

Summary

N/A

Remarks

N/A

Return Value

Boolean


DecimalDegreeBoundary

Summary

N/A

Remarks

N/A

Return Value

RectangleShape


ExternalProjection

Summary

Gets or sets the Proj4 text parameter for the to projection. This parameter typically look like "+proj=utm +zone=33 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs".

Remarks

N/A

Return Value

Projection


InternalProjection

Summary

Gets or sets the Proj4 text parameter for the from projection. This parameter typically look like "+Proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs".

Remarks

N/A

Return Value

Projection


IsOpen

Summary

This property gets the state of the projection (whether it is opened or closed).

Remarks

This method will reflect whether the projection is opened or closed. It is set in the concrete methods Open and Close, so if you inherit from this class and override OpenCore or CloseCore, you will not need to be concerned with setting this property.

Return Value

Boolean


Protected Properties

Public Methods

Close()

Summary

This method closes the projection and gets it ready for serialization if necessary.

Remarks

This method closes the projection and gets it ready for serialization if necessary. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Type Description
Void None

Parameters

Name Type Description
N/A N/A N/A

ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape,Int32,Int32)

Summary

N/A

Remarks

N/A

Return Value

Type Description
RasterProjectionResult N/A

Parameters

Name Type Description
image GeoImage N/A
imageExtent RectangleShape N/A
targetExtent RectangleShape N/A
width Int32 N/A
height Int32 N/A

ConvertToExternalProjection(GeoImage,RectangleShape)

Summary

N/A

Remarks

N/A

Return Value

Type Description
RasterProjectionResult N/A

Parameters

Name Type Description
image GeoImage N/A
imageExtent RectangleShape N/A

ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape)

Summary

N/A

Remarks

N/A

Return Value

Type Description
RasterProjectionResult N/A

Parameters

Name Type Description
image GeoImage N/A
imageExtent RectangleShape N/A
targetExtent RectangleShape N/A

ConvertToExternalProjection(Double,Double)

Summary

This method returns a projected vertex based on the coordinates passed in.

Remarks

This method returns a projected vertex based on the coordinates passed in. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Type Description
Vertex This method returns a projected vertex based on the coordinates passed in.

Parameters

Name Type Description
x Double This parameter is the X decimalDegreesValue of the point that will be projected.
y Double This parameter is the Y decimalDegreesValue of the point that will be projected.

ConvertToExternalProjection(BaseShape)

Summary

This method returns a projected BaseShape based on the baseShape passed in.

Remarks

This method returns a projected baseShape based on the BaseShape passed in. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Type Description
BaseShape This method returns a projected baseShape for the passed-in BaseShape.

Parameters

Name Type Description
baseShape BaseShape This parameter is the baseShape (in decimalDegreesValue) to be projected.

ConvertToExternalProjection(Feature)

Summary

This method returns a projected Feature based on the Feature passed in.

Remarks

This method returns a projected Feature based on the Feature passed in. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Type Description
Feature This method returns a projected Feature for the passed-in Feature.

Parameters

Name Type Description
feature Feature This parameter is the Feature that contains a BaseShape in decimalDegreesValue to be projected.

ConvertToExternalProjection(IEnumerable<Feature>)

Summary

N/A

Remarks

N/A

Return Value

Type Description
Collection<Feature> N/A

Parameters

Name Type Description
features IEnumerable<Feature> N/A

ConvertToExternalProjection(RectangleShape)

Summary

This method returns a projected rectangle based on the rectangle passed in.

Remarks

This method returns a projected rectangle based on the rectangle passed in.

Return Value

Type Description
RectangleShape This method returns a projected rectangle based on the rectangle passed in.

Parameters

Name Type Description
rectangleShape RectangleShape This parameter represents the rectangle you want to project.

ConvertToExternalProjection(IEnumerable<Vertex>)

Summary

This method returns projected vertices based on the coordinates passed in.

Remarks

This method returns a projected vertex based on the coordinates passed in. You will need to override this method for the Projection class. Typically, you can call the projection utility library that has interfaces for dozens of different types of projections.

Return Value

Type Description
Collection<Vertex> This method returns projected vertices based on the coordinates passed in.

Parameters

Name Type Description
vertices IEnumerable<Vertex> This parameter is the vertices that will be projected.

ConvertToInternalProjection(Double,Double)

Summary

This method returns a de-projected vertex based on the coordinates passed in.

Remarks

This method returns a de-projected vertex based on the coordinates passed in. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Type Description
Vertex This method returns a de-projected vertex based on the coordinates passed in.

Parameters

Name Type Description
x Double This parameter is the X decimalDegreesValue of the point that will be de-projected.
y Double This parameter is the Y decimalDegreesValue of the point that will be de-projected.

ConvertToInternalProjection(BaseShape)

Summary

This method returns a de-projected BaseShape based on the BaseShape passed in.

Remarks

This method returns a de-projected BaseShape based on the BaseShape passed in. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Type Description
BaseShape This method returns a de-projected BaseShape for the passed in BaseShape.

Parameters

Name Type Description
baseShape BaseShape This parameter is the baseShape (in decimalDegreesValue) to be de-projected.

ConvertToInternalProjection(Feature)

Summary

This method returns a de-projected Feature based on the Feature passed in.

Remarks

This method returns a de-projected Feature based on the Feature passed in. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Type Description
Feature This method returns a de-projected Feature for the passed-in Feature.

Parameters

Name Type Description
feature Feature This parameter is the Feature that contains a BaseShape in decimalDegreesValue to be de-projected.

ConvertToInternalProjection(IEnumerable<Vertex>)

Summary

This method returns de-projected vertices based on the coordinates passed in.

Remarks

This method returns a de-projected vertex based on the coordinates passed in. The de-projection is important because, inside of the FeatureSource, you will in many cases go to and from various projections.

Return Value

Type Description
Collection<Vertex> This method returns de-projected vertices based on the coordinates passed in.

Parameters

Name Type Description
vertices IEnumerable<Vertex> This parameter is the vertices that will be de-projected.

ConvertToInternalProjection(RectangleShape)

Summary

This method returns a de-projected rectangle based on the rectangle passed in.

Remarks

This method returns a de-projected rectangle based on the rectangle passed in.

Return Value

Type Description
RectangleShape This method returns a de-projected rectangle based on the rectangle passed in.

Parameters

Name Type Description
rectangleShape RectangleShape This parameter represents the rectangle you want to de-project.

Equals(Object)

Summary

N/A

Remarks

N/A

Return Value

Type Description
Boolean N/A

Parameters

Name Type Description
obj Object N/A

GetHashCode()

Summary

N/A

Remarks

N/A

Return Value

Type Description
Int32 N/A

Parameters

Name Type Description
N/A N/A N/A

GetType()

Summary

N/A

Remarks

N/A

Return Value

Type Description
Type N/A

Parameters

Name Type Description
N/A N/A N/A

Open()

Summary

This method opens the projection and gets it ready to use.

Remarks

This method opens the projection and gets it ready to use. As this is a concrete public method that wraps a Core method, we reserve the right to add events and other logic to pre- or post-process data returned by the Core version of the method. In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this, please contact our support team as we would be happy to work with you on extending our framework.

Return Value

Type Description
Void None

Parameters

Name Type Description
N/A N/A N/A

ToString()

Summary

N/A

Remarks

N/A

Return Value

Type Description
String N/A

Parameters

Name Type Description
N/A N/A N/A

Protected Methods

CloseCore()

Summary

This method closes the projection and gets it ready for serialization if necessary.

Remarks

As this is the core version of the Close method, it is intended to be overridden in an inherited version of the class. When overriding, you will be responsible freeing any state you have maintained and getting the class ready for serialization if necessary. Note that the object may be opened again, so you want to make sure you can open and close the object multiple times without any ill effects.

Return Value

Type Description
Void None

Parameters

Name Type Description
N/A N/A N/A

ConvertToExternalProjectionCore(GeoImage,RectangleShape,RectangleShape,Int32,Int32)

Summary

N/A

Remarks

N/A

Return Value

Type Description
RasterProjectionResult N/A

Parameters

Name Type Description
image GeoImage N/A
imageExtent RectangleShape N/A
targetExtent RectangleShape N/A
width Int32 N/A
height Int32 N/A

ConvertToExternalProjectionCore(IEnumerable<Vertex>)

Summary

This method returns projected vertices based on the coordinates passed in.

Remarks

This method returns a projected vertex based on the coordinates passed in. You will need to override this method for the Projection class. Typically, you can call the projection utility library that has interfaces for dozens of different types of projections.

Return Value

Type Description
Collection<Vertex> This method returns projected vertices based on the coordinates passed in.

Parameters

Name Type Description
verticies IEnumerable<Vertex> N/A

ConvertToInternalProjectionCore(IEnumerable<Vertex>)

Summary

This method returns de-projected vertices based on the coordinates passed in.

Remarks

This method returns a de-projected vertex based on the coordinates passed in. You will need to override this method for the Projection class. Typically, you can call the projection utility library that has interfaces for dozens of different types of projections. The de-projection is important because, inside of the FeatureSource, you will in many cases go to and from various projections.

Return Value

Type Description
Collection<Vertex> This method returns de-projected vertices based on the coordinates passed in.

Parameters

Name Type Description
verticies IEnumerable<Vertex> N/A

Finalize()

Summary

N/A

Remarks

N/A

Return Value

Type Description
Void N/A

Parameters

Name Type Description
N/A N/A N/A

MemberwiseClone()

Summary

N/A

Remarks

N/A

Return Value

Type Description
Object N/A

Parameters

Name Type Description
N/A N/A N/A

OpenCore()

Summary

This method opens the projection and gets it ready to use.

Remarks

As this is the core version of the Open method, it is intended to be overridden in an inherited version of the class. When overriding, you will be responsible for getting the projection classes' state ready for doing projections.

Return Value

Type Description
Void None

Parameters

Name Type Description
N/A N/A N/A

UpdateToExternalProjection(Feature)

Summary

N/A

Remarks

N/A

Return Value

Type Description
Void N/A

Parameters

Name Type Description
feature Feature N/A

UpdateToInternalProjection(Feature)

Summary

N/A

Remarks

N/A

Return Value

Type Description
Void N/A

Parameters

Name Type Description
feature Feature N/A

Public Events