User Tools

Site Tools


thinkgeo.mapsuite.core.projection

This is an old revision of the document!


ThinkGeo.MapSuite.Core.Projection

This class represents a projection that you wish to apply to a FeatureSource.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

Projection

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method is the default protected constructor.

Public Methods

CloneDeep

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:Create a copy of Projection using the deep clone process.

Close

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method closes the projection and gets it ready for serialization if necessary.

ConvertToExternalProjection

ConvertToExternalProjection

ConvertToExternalProjection

  • Parameters:Double,Double
  • DeclaringType:N/A
  • Summary:This method returns a projected vertex based on the coordinates passed in.

ConvertToExternalProjection

  • Parameters:BaseShape
  • DeclaringType:N/A
  • Summary:This method returns a projected BaseShape based on the baseShape passed in.

ConvertToExternalProjection

  • Parameters:Feature
  • DeclaringType:N/A
  • Summary:This method returns a projected Feature based on the Feature passed in.

ConvertToExternalProjection

  • Parameters:RectangleShape
  • DeclaringType:N/A
  • Summary:This method returns a projected rectangle based on the rectangle passed in.

ConvertToExternalProjection

  • Parameters:IEnumerable<Vertex>
  • DeclaringType:N/A
  • Summary:This method returns projected vertices based on the coordinates passed in.

ConvertToInternalProjection

  • Parameters:RectangleShape
  • DeclaringType:N/A
  • Summary:This method returns a de-projected rectangle based on the rectangle passed in.

ConvertToInternalProjection

  • Parameters:IEnumerable<Vertex>
  • DeclaringType:N/A
  • Summary:This method returns de-projected vertices based on the coordinates passed in.

ConvertToInternalProjection

  • Parameters:Feature
  • DeclaringType:N/A
  • Summary:This method returns a de-projected Feature based on the Feature passed in.

ConvertToInternalProjection

  • Parameters:Double,Double
  • DeclaringType:N/A
  • Summary:This method returns a de-projected vertex based on the coordinates passed in.

ConvertToInternalProjection

  • Parameters:BaseShape
  • DeclaringType:N/A
  • Summary:This method returns a de-projected BaseShape based on the BaseShape passed in.

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetExternalGeographyUnit

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:N/A

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetInternalGeographyUnit

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:N/A

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Open

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method opens the projection and gets it ready to use.

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Protected Methods

CloneDeepCore

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:Create a copy of GeoCanvas using the deep clone process. The default implementation uses serialization.

CloseCore

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method closes the projection and gets it ready for serialization if necessary.

ConvertToExternalProjectionCore

ConvertToExternalProjectionCore

ConvertToExternalProjectionCore]]** * **Parameters**:Double[],Double[] * **DeclaringType**:N/A * **Summary**:This method returns projected vertices based on the coordinates passed in. </div> <div class_table> **{{wiki:ProtectedMethod.gif|}}[[#ConvertToInternalProjectionCore(Double[],Double[])|ConvertToInternalProjectionCore]]** * **Parameters**:Double[],Double[] * **DeclaringType**:N/A * **Summary**:This method returns de-projected vertices based on the coordinates passed in. </div> <div class_table> **{{wiki:ProtectedMethod.gif|}}[[#Finalize()|Finalize]]** * **Parameters**:N/A * **DeclaringType**:Object * **Summary**:N/A </div> <div class_table> **{{wiki:ProtectedMethod.gif|}}[[#GetExternalGeographyUnitCore()|GetExternalGeographyUnitCore]]** * **Parameters**:N/A * **DeclaringType**:N/A * **Summary**:N/A </div> <div class_table> **{{wiki:ProtectedMethod.gif|}}[[#GetInternalGeographyUnitCore()|GetInternalGeographyUnitCore]]** * **Parameters**:N/A * **DeclaringType**:N/A * **Summary**:N/A </div> <div class_table> **{{wiki:ProtectedMethod.gif|}}[[#MemberwiseClone()|MemberwiseClone]]** * **Parameters**:N/A * **DeclaringType**:Object * **Summary**:N/A </div> <div class_table> **{{wiki:ProtectedMethod.gif|}}[[#OpenCore()|OpenCore]]** * **Parameters**:N/A * **DeclaringType**:N/A * **Summary**:This method opens the projection and gets it ready to use. </div> <div class_table> **{{wiki:ProtectedMethod.gif|}}[[#SzE=(Feature)|SzE=]]** * **Parameters**:[[ThinkGeo.MapSuite.Core.Feature|Feature]] * **DeclaringType**:N/A * **Summary**:N/A </div> <div class_table> **{{wiki:ProtectedMethod.gif|}}[[#TDE=(Feature)|TDE=]]** * **Parameters**:[[ThinkGeo.MapSuite.Core.Feature|Feature]] * **DeclaringType**:N/A * **Summary**:N/A </div> === Public Properties === **{{wiki:PublicProperty.gif|}}[[#CanConvertRasterToExternalProjection|CanConvertRasterToExternalProjection]]** * **Return**:Boolean * **Summary**:N/A **{{wiki:PublicProperty.gif|}}[[#IsOpen|IsOpen]]** * **Return**:Boolean * **Summary**:This property gets the state of the projection (whether it is opened or closed). === Protected Properties === **{{wiki:ProtectedProperty.gif|}}[[#CanReproject|CanReproject]]** * **Return**:Boolean * **Summary**:This property indicates whether this projection should be used. === Public Events === ===== Public Constructors ===== ===== Protected Constructors ===== === Projection() === This method is the default protected constructor. ==== Remarks ==== None ==== Parameters ==== [[#Protected Constructors|Go Back]] ===== Public Methods ===== === CloneDeep() === Create a copy of Projection using the deep clone process. ==== Remarks ==== The difference between deep clone and shallow clone is as follows: In shallow cloning, only the object is copied; the objects within it are not. By contrast, deep cloning copies the cloned object as well as all the objects within. **Return Value** * **Return Type**:[[ThinkGeo.MapSuite.Core.Projection|Projection]] * **Description**:A cloned Projection. ==== Parameters ==== [[#Public Methods|Go Back]] === Close() === 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** * **Return Type**:Void * **Description**:None ==== Parameters ==== [[#Public Methods|Go Back]] === ConvertToExternalProjection(GeoImage,RectangleShape) === N/A ==== Remarks ==== N/A **Return Value** * **Return Type**:[[ThinkGeo.MapSuite.Core.RasterProjectionResult|RasterProjectionResult]] * **Description**:N/A ==== Parameters ==== **image** * **Type**:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] * **Description**:N/A **imageExtent** * **Type**:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * **Description**:N/A [[#Public Methods|Go Back]] === ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape) === N/A ==== Remarks ==== N/A **Return Value** * **Return Type**:[[ThinkGeo.MapSuite.Core.RasterProjectionResult|RasterProjectionResult]] * **Description**:N/A ==== Parameters ==== **image** * **Type**:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] * **Description**:N/A **imageExtent** * **Type**:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * **Description**:N/A **targetExtent** * **Type**:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * **Description**:N/A [[#Public Methods|Go Back]] === ConvertToExternalProjection(Double,Double) === 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** * **Return Type**:[[ThinkGeo.MapSuite.Core.Vertex|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. [[#Public Methods|Go Back]] === ConvertToExternalProjection(BaseShape) === 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** * **Return Type**:[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] * **Description**:This method returns a projected baseShape for the passed-in BaseShape. ==== Parameters ==== **baseShape** * **Type**:[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] * **Description**:This parameter is the baseShape (in decimalDegreesValue) to be projected. [[#Public Methods|Go Back]] === ConvertToExternalProjection(Feature) === 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** * **Return Type**:[[ThinkGeo.MapSuite.Core.Feature|Feature]] * **Description**:This method returns a projected Feature for the passed-in Feature. ==== Parameters ==== **feature** * **Type**:[[ThinkGeo.MapSuite.Core.Feature|Feature]] * **Description**:This parameter is the Feature that contains a BaseShape in decimalDegreesValue to be projected. [[#Public Methods|Go Back]] === ConvertToExternalProjection(RectangleShape) === 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** * **Return Type**:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * **Description**:This method returns a projected rectangle based on the rectangle passed in. ==== Parameters ==== **rectangleShape** * **Type**:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] * **Description**:This parameter represents the rectangle you want to project. [[#Public Methods|Go Back]] === ConvertToExternalProjection(IEnumerable<Vertex>) === 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** * **Return Type**:[[ThinkGeo.MapSuite.Core.Vertex[]|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. Go Back === ConvertToInternalProjection(RectangleShape) === 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 * Return Type:RectangleShape * Description:This method returns a de-projected rectangle based on the rectangle passed in. ==== Parameters ==== rectangleShape * Type:RectangleShape * Description:This parameter represents the rectangle you want to de-project. Go Back === ConvertToInternalProjection(IEnumerable<Vertex>) === 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 * Return Type: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. Go Back === ConvertToInternalProjection(Feature) === 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 * Return 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. Go Back === ConvertToInternalProjection(Double,Double) === 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 * Return 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. Go Back === ConvertToInternalProjection(BaseShape) === 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 * Return 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. Go Back === Equals(Object) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== obj * Type:Object * Description:N/A Go Back === GetExternalGeographyUnit() === N/A ==== Remarks ==== N/A Return Value * Return Type:GeographyUnit * Description:N/A ==== Parameters ==== Go Back === GetHashCode() === N/A ==== Remarks ==== N/A Return Value * Return Type:Int32 * Description:N/A ==== Parameters ==== Go Back === GetInternalGeographyUnit() === N/A ==== Remarks ==== N/A Return Value * Return Type:GeographyUnit * Description:N/A ==== Parameters ==== Go Back === GetType() === N/A ==== Remarks ==== N/A Return Value * Return Type:Type * Description:N/A ==== Parameters ==== Go Back === Open() === 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 * Return Type:Void * Description:None ==== Parameters ==== Go Back === ToString() === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== Go Back ===== Protected Methods ===== === CloneDeepCore() === Create a copy of GeoCanvas using the deep clone process. The default implementation uses serialization. ==== Remarks ==== The difference between deep clone and shallow clone is as follows: In shallow cloning, only the object is copied; the objects within it are not. By contrast, deep cloning copies the cloned object as well as all the objects within. Return Value * Return Type:Projection * Description:A cloned GeoCanvas. ==== Parameters ==== Go Back === CloseCore() === 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 * Return Type:Void * Description:None ==== Parameters ==== Go Back === ConvertToExternalProjectionCore(GeoImage,RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:RasterProjectionResult * Description:N/A ==== Parameters ==== image * Type:GeoImage * Description:N/A imageExtent * Type:RectangleShape * Description:N/A Go Back === ConvertToExternalProjectionCore(GeoImage,RectangleShape,RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:RasterProjectionResult * Description:N/A ==== Parameters ==== image * Type:GeoImage * Description:N/A imageExtent * Type:RectangleShape * Description:N/A targetExtent * Type:RectangleShape * Description:N/A Go Back === ConvertToExternalProjectionCore(Double[],Double[]) === 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 * Return Type:Vertex[] * Description:This method returns projected vertices based on the coordinates passed in. ==== Parameters ==== xArray * Type:Double[] * Description:N/A yArray * Type:Double[] * Description:N/A Go Back === ConvertToInternalProjectionCore(Double[],Double[]) === 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 * Return Type:Vertex[] * Description:This method returns de-projected vertices based on the coordinates passed in. ==== Parameters ==== xArray * Type:Double[] * Description:N/A yArray * Type:Double[] * Description:N/A Go Back === Finalize() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === GetExternalGeographyUnitCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:GeographyUnit * Description:N/A ==== Parameters ==== Go Back === GetInternalGeographyUnitCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:GeographyUnit * Description:N/A ==== Parameters ==== Go Back === MemberwiseClone() === N/A ==== Remarks ==== N/A Return Value * Return Type:Object * Description:N/A ==== Parameters ==== Go Back === OpenCore() === 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 * Return Type:Void * Description:None ==== Parameters ==== Go Back === SzE=(Feature) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== feature * Type:Feature * Description:N/A Go Back === TDE=(Feature) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== feature * Type:Feature * Description:N/A Go Back ===== Public Properties ===== === CanConvertRasterToExternalProjection === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === IsOpen === 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 ==== Return Type:Boolean Go Back ===== Protected Properties ===== === CanReproject === This property indicates whether this projection should be used. ==== Remarks ==== N/A ==== Return Value ==== Return Type**:Boolean

Go Back

Public Events

thinkgeo.mapsuite.core.projection.1442486277.txt.gz · Last modified: 2015/09/17 10:37 by admin