User Tools

Site Tools


12.0:apis:thinkgeo.core.projectionconverter

ThinkGeo.Core.ProjectionConverter

Inheritance Hierarchy

Members Summary

Public Constructors

ProjectionConverter()

  • This is the default constructor for this class.
Remarks
  • This conctructor pass nothing. After this cconstructor , you should set the InternalProjectionParametersString property and ExternalProjectionParametersString property before open to use.
Parameters

ProjectionConverter(String,String)

  • N/A
Remarks
  • N/A
Parameters
  • internalProjString
    • Type:String
    • Description:N/A
  • externalProjString
    • Type:String
    • Description:N/A

ProjectionConverter(Int32,Int32)

  • N/A
Remarks
  • N/A
Parameters
  • internalSrid
    • Type:Int32
    • Description:N/A
  • externalSrid
    • Type:Int32
    • Description:N/A

ProjectionConverter(String,Int32)

  • N/A
Remarks
  • N/A
Parameters
  • internalProjString
    • Type:String
    • Description:N/A
  • externalSrid
    • Type:Int32
    • Description:N/A

ProjectionConverter(Int32,String)

  • N/A
Remarks
  • N/A
Parameters
  • internalSridString
    • Type:Int32
    • Description:N/A
  • externalProjString
    • Type:String
    • Description:N/A

ProjectionConverter(Projection,Projection)

  • This is a constructor for the class.
Remarks
  • This constructor allows you to pass in Proj4 text parameters for the to and from projection. The parameters typically look like “+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs” You should use this constructor when you know the parameters. If you know the SRID directly you can use the other constructor that takes the SRID.
Parameters
  • internalProjection
    • Description:This parameter is the projection parameters describing the data.
  • externalProjection
    • Description:This parameter is the projection parameters describing the projection you want to go to.

Protected Constructors

Public Methods

Open()

  • N/A
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:Void
  • Description:None
Parameters

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

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • width
    • Type:Int32
    • Description:N/A
  • height
    • Type:Int32
    • Description:N/A

ConvertToExternalProjection(GeoImage,RectangleShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

Close()

  • N/A
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:Void
  • Description:None
Parameters

ConvertToExternalProjection(Double,Double)

  • N/A
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:Vertex
  • Description:This method returns a projected vertex based on the coordinates passed in.
Parameters
  • x
    • Type:Double
    • Description:This parameter is the X decimalDegreesValue of the point that will be projected.
  • y
    • Type:Double
    • Description:This parameter is the Y decimalDegreesValue of the point that will be projected.

ConvertToExternalProjection(BaseShape)

  • N/A
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:BaseShape
  • Description:This method returns a projected baseShape for the passed-in BaseShape.
Parameters
  • baseShape
    • Type:BaseShape
    • Description:This parameter is the baseShape (in decimalDegreesValue) to be projected.

ConvertToExternalProjection(Feature)

  • N/A
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:Feature
  • Description:This method returns a projected Feature for the passed-in Feature.
Parameters
  • feature
    • Type:Feature
    • Description:This parameter is the Feature that contains a BaseShape in decimalDegreesValue to be projected.

ConvertToExternalProjection(IEnumerable<Feature>)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<Feature>
  • Description:N/A
Parameters
  • features
    • Type:IEnumerable<Feature>
    • Description:N/A

ConvertToExternalProjection(RectangleShape)

  • N/A
Remarks
  • This method returns a projected rectangle based on the rectangle passed in.
Return Value
  • Description:This method returns a projected rectangle based on the rectangle passed in.
Parameters
  • rectangleShape
    • Description:This parameter represents the rectangle you want to project.

ConvertToExternalProjection(IEnumerable<Vertex>)

  • N/A
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:Collection<Vertex>
  • Description:This method returns projected vertices based on the coordinates passed in.
Parameters
  • vertices
    • Type:IEnumerable<Vertex>
    • Description:This parameter is the vertices that will be projected.

ConvertToInternalProjection(Double,Double)

  • N/A
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:Vertex
  • Description:This method returns a de-projected vertex based on the coordinates passed in.
Parameters
  • x
    • Type:Double
    • Description:This parameter is the X decimalDegreesValue of the point that will be de-projected.
  • y
    • Type:Double
    • Description:This parameter is the Y decimalDegreesValue of the point that will be de-projected.

ConvertToInternalProjection(BaseShape)

  • N/A
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:BaseShape
  • Description:This method returns a de-projected BaseShape for the passed in BaseShape.
Parameters
  • baseShape
    • Type:BaseShape
    • Description:This parameter is the baseShape (in decimalDegreesValue) to be de-projected.

ConvertToInternalProjection(Feature)

  • N/A
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:Feature
  • Description:This method returns a de-projected Feature for the passed-in Feature.
Parameters
  • feature
    • Type:Feature
    • Description:This parameter is the Feature that contains a BaseShape in decimalDegreesValue to be de-projected.

ConvertToInternalProjection(IEnumerable<Vertex>)

  • N/A
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:Collection<Vertex>
  • Description:This method returns de-projected vertices based on the coordinates passed in.
Parameters
  • vertices
    • Type:IEnumerable<Vertex>
    • Description:This parameter is the vertices that will be de-projected.

ConvertToInternalProjection(RectangleShape)

  • N/A
Remarks
  • This method returns a de-projected rectangle based on the rectangle passed in.
Return Value
  • Description:This method returns a de-projected rectangle based on the rectangle passed in.
Parameters
  • rectangleShape
    • Description:This parameter represents the rectangle you want to de-project.

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

ToString()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

Protected Methods

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

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • width
    • Type:Int32
    • Description:N/A
  • height
    • Type:Int32
    • Description:N/A

OpenCore()

  • N/A
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:Void
  • Description:None
Parameters

CloseCore()

  • N/A
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:Void
  • Description:None
Parameters

UpdateToExternalProjection(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • feature

ConvertToExternalProjectionCore(IEnumerable<Vertex>)

  • N/A
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:Collection<Vertex>
  • Description:This method returns projected vertices based on the coordinates passed in.
Parameters
  • verticies
    • Type:IEnumerable<Vertex>
    • Description:N/A

ConvertToInternalProjectionCore(IEnumerable<Vertex>)

  • N/A
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:Collection<Vertex>
  • Description:This method returns de-projected vertices based on the coordinates passed in.
Parameters
  • verticies
    • Type:IEnumerable<Vertex>
    • Description:N/A

UpdateToInternalProjection(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • feature

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

Public Properties

DecimalDegreeBoundary

  • N/A
Remarks
  • N/A
Return Value

InternalProjection

  • N/A
Remarks
  • N/A
Return Value

ExternalProjection

  • N/A
Remarks
  • N/A
Return Value

IsOpen

  • N/A
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
  • Type:Boolean

CanConvertRasterToExternalProjection

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

Protected Properties

Public Events

12.0/apis/thinkgeo.core.projectionconverter.txt · Last modified: 2019/09/26 09:32 (external edit)