This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
thinkgeo.mapsuite.core.managedproj4projection [2015/08/20 03:08] 127.0.0.1 external edit |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ThinkGeo.MapSuite.Core.ManagedProj4Projection ====== | ||
- | |||
- | |||
- | |||
- | <!-- Class --> | ||
- | This projection class uses the Proj4 engine to project data from one Srid to another. | ||
- | === Remarks === | ||
- | This projection class uses the Proj4 engine to project data from one Srid to another. Proj4 is a very popular projection library the support thousands for projections. It uses a special text format to feed in parameters about the to and from projection. Though it uses its own format many organizations have recognized it and provide their projection definition in this format. Within this class we support the latest EPSG (European Petroleum Survey Group) SRID (Spatial Reference System Identifiers) list. You can find more information about these on the web. The SRID list is very popular and we include a text version with in our install. | ||
- | |||
- | Note that one thing that confuses people is that when they go to or from latitude and longitude they do not know what SRID to use. The proper SRID is 4326 for WGS84 pair coordinates in degrees with Greenwich as the central meridian. | ||
- | ===== Inheritance Hierarchy ===== | ||
- | *System.Object | ||
- | **[[ThinkGeo.MapSuite.Core.Projection]] | ||
- | ***[[ThinkGeo.MapSuite.Core.ManagedProj4Projection]] | ||
- | ===== Members Summary ===== | ||
- | ==== Public Constructors ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ManagedProj4Projection()|ManagedProj4Projection]] | | | This is the default constructor for this class. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ManagedProj4Projection(String, String)|ManagedProj4Projection]] | String, String | | This is a constructor for the class. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ManagedProj4Projection(Int32, Int32)|ManagedProj4Projection]] | Int32, Int32 | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ManagedProj4Projection(String, Int32)|ManagedProj4Projection]] | String, Int32 | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ManagedProj4Projection(Int32, String)|ManagedProj4Projection]] | Int32, String | | | | ||
- | |||
- | ==== Protected Constructors ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
- | |||
- | ==== Public Methods ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#CloneDeep()|CloneDeep]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | Create a copy of Projection using the deep clone process. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#Close()|Close]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method closes the projection and gets it ready for serialization if necessary. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ConvertEpsgToPrj(Int32)|ConvertEpsgToPrj]] | Int32 | | This method is a static API to get a Prj string by Epsg number | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ConvertPrjToProj4(String)|ConvertPrjToProj4]] | String | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#ConvertProj4ToPrj(String)|ConvertProj4ToPrj]] | String | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToExternalProjection(Feature)|ConvertToExternalProjection]] | [[ThinkGeo.MapSuite.Core.Feature|Feature]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns a projected Feature based on the Feature passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToExternalProjection(BaseShape)|ConvertToExternalProjection]] | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns a projected BaseShape based on the baseShape passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToExternalProjection(Double, Double)|ConvertToExternalProjection]] | Double, Double | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns a projected vertex based on the coordinates passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToExternalProjection(GeoImage, RectangleShape)|ConvertToExternalProjection]] | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]], [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToExternalProjection(RectangleShape)|ConvertToExternalProjection]] | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns a projected rectangle based on the rectangle passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToExternalProjection(GeoImage, RectangleShape, RectangleShape)|ConvertToExternalProjection]] | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]], [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]], [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToExternalProjection(IEnumerable<Vertex>)|ConvertToExternalProjection]] | IEnumerable<[[ThinkGeo.MapSuite.Core.Vertex|Vertex]]> | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns projected vertices based on the coordinates passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToInternalProjection(BaseShape)|ConvertToInternalProjection]] | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns a de-projected BaseShape based on the BaseShape passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToInternalProjection(Feature)|ConvertToInternalProjection]] | [[ThinkGeo.MapSuite.Core.Feature|Feature]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns a de-projected Feature based on the Feature passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToInternalProjection(IEnumerable<Vertex>)|ConvertToInternalProjection]] | IEnumerable<[[ThinkGeo.MapSuite.Core.Vertex|Vertex]]> | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns de-projected vertices based on the coordinates passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToInternalProjection(RectangleShape)|ConvertToInternalProjection]] | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns a de-projected rectangle based on the rectangle passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ConvertToInternalProjection(Double, Double)|ConvertToInternalProjection]] | Double, Double | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method returns a de-projected vertex based on the coordinates passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetBingMapParametersString()|GetBingMapParametersString]] | | | This method is a static API to get a projection used by BingMaps. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetDecimalDegreesParametersString()|GetDecimalDegreesParametersString]] | | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetEpsgParametersString(Int32)|GetEpsgParametersString]] | Int32 | | This method is a static API to get a projection text from EPSG(European Petroleum Survey Group). | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetEsriParametersString(Int32)|GetEsriParametersString]] | Int32 | | This method is a static API to get a projection text from ERSI. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetExternalGeographyUnit()|GetExternalGeographyUnit]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetGeographyUnitFromPrj(String)|GetGeographyUnitFromPrj]] | String | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetGeographyUnitFromProj4(String)|GetGeographyUnitFromProj4]] | String | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetGoogleMapParametersString()|GetGoogleMapParametersString]] | | | This method is a static API to get a projection used by GoogleMap. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetInternalGeographyUnit()|GetInternalGeographyUnit]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLatLongParametersString()|GetLatLongParametersString]] | | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneNumber(BaseShape, String)|GetLocalUtmZoneNumber]] | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]], String | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneNumber(Feature, Int32)|GetLocalUtmZoneNumber]] | [[ThinkGeo.MapSuite.Core.Feature|Feature]], Int32 | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneNumber(Feature, String)|GetLocalUtmZoneNumber]] | [[ThinkGeo.MapSuite.Core.Feature|Feature]], String | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneNumber(Double, Double)|GetLocalUtmZoneNumber]] | Double, Double | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneNumber(BaseShape, Int32)|GetLocalUtmZoneNumber]] | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]], Int32 | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneParametersString(BaseShape, Int32)|GetLocalUtmZoneParametersString]] | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]], Int32 | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneParametersString(Feature, Int32)|GetLocalUtmZoneParametersString]] | [[ThinkGeo.MapSuite.Core.Feature|Feature]], Int32 | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneParametersString(Feature, String)|GetLocalUtmZoneParametersString]] | [[ThinkGeo.MapSuite.Core.Feature|Feature]], String | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneParametersString(Double, Double)|GetLocalUtmZoneParametersString]] | Double, Double | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetLocalUtmZoneParametersString(BaseShape, String)|GetLocalUtmZoneParametersString]] | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]], String | | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetSphericalMercatorParametersString()|GetSphericalMercatorParametersString]] | | | This method is a static API to get a projection of SphericalMercator. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}{{wiki:Static.gif|Static Member}}[[#GetWgs84ParametersString()|GetWgs84ParametersString]] | | | This method is a static API to get a projection text from WGS84. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#Open()|Open]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This method opens the projection and gets it ready to use. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ToString()|ToString]] | | Object | | | ||
- | |||
- | ==== Protected Methods ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#CloneDeepCore()|CloneDeepCore]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | Create a copy of GeoCanvas using the deep clone process. The default implementation uses serialization. | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#CloseCore()|CloseCore]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | This method closes the projection and gets it ready to serialization if necessary. | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ConvertToExternalProjectionCore(GeoImage, RectangleShape, RectangleShape)|ConvertToExternalProjectionCore]] | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]], [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]], [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ConvertToExternalProjectionCore(GeoImage, RectangleShape)|ConvertToExternalProjectionCore]] | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]], [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ConvertToExternalProjectionCore(Double[], Double[])|ConvertToExternalProjectionCore]] | Double[], Double[] | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | This method returns a projected vertex based on the coordinates passed in. | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ConvertToInternalProjectionCore(Double[], Double[])|ConvertToInternalProjectionCore]] | Double[], Double[] | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | This method returns a de-projected vertex based on the coordinates passed in. | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#Finalize()|Finalize]] | | Object | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetExternalGeographyUnitCore()|GetExternalGeographyUnitCore]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetInternalGeographyUnitCore()|GetInternalGeographyUnitCore]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#OpenCore()|OpenCore]] | | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | This method open the projection and gets it ready to use. | | ||
- | |||
- | ==== Public Properties ==== | ||
- | ^ Name ^ Return ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#CanConvertRasterToExternalProjection|CanConvertRasterToExternalProjection]] | Boolean | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#DecimalDegreeBoundary|DecimalDegreeBoundary]] | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | | This property specifies the Boundary for decimaldegree values. | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#ExternalProjectionParametersString|ExternalProjectionParametersString]] | String | | 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". | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#InternalProjectionParametersString|InternalProjectionParametersString]] | String | | Gets or sets the Proj4 text parameter for the from projection. This parameter typically look like "+Proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs". | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#IsOpen|IsOpen]] | Boolean | [[ThinkGeo.MapSuite.Core.Projection|Projection]] | This property gets the state of the projection (whether it is opened or closed). | | ||
- | |||
- | ==== Protected Properties ==== | ||
- | ^ Name ^ Return ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:ProtectedProperty.gif|Protected Property}}[[#CanReproject|CanReproject]] | Boolean | [[ThinkGeo.MapSuite.Core.Projection|Projection]](overriden) | This property indicates whether this projection should be used. | | ||
- | |||
- | ==== Public Events ==== | ||
- | ^ Name ^ Event Arguments ^ DeclaringType ^ Summary ^ | ||
- | |||
- | ===== Public Constructors ===== | ||
- | ==== ManagedProj4Projection() ==== | ||
- | 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 === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | [[#Public Constructors|Go Back]] | ||
- | ==== ManagedProj4Projection(String, String) ==== | ||
- | This is a constructor for the class. | ||
- | === Overloads === | ||
- | 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" | ||
- | === 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 === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | internalProjectionParameters | String<!-- System.String --> | | | ||
- | | externalProjectionParameters | String<!-- System.String --> | | | ||
- | |||
- | [[#Public Constructors|Go Back]] | ||
- | ==== ManagedProj4Projection(Int32, Int32) ==== | ||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | internalEpsgSrid | Int32<!-- System.Int32 --> | | | ||
- | | externalEpsgSrid | Int32<!-- System.Int32 --> | | | ||
- | |||
- | [[#Public Constructors|Go Back]] | ||
- | ==== ManagedProj4Projection(String, Int32) ==== | ||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | internalProjectionParameters | String<!-- System.String --> | | | ||
- | | externalEpsgSrid | Int32<!-- System.Int32 --> | | | ||
- | |||
- | [[#Public Constructors|Go Back]] | ||
- | ==== ManagedProj4Projection(Int32, String) ==== | ||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | internalEpsgSrid | Int32<!-- System.Int32 --> | | | ||
- | | externalProjectionParameters | String<!-- System.String --> | | | ||
- | |||
- | [[#Public Constructors|Go Back]] | ||
- | ===== Protected Constructors ===== | ||
- | ===== 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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Projection|Projection]]<!-- ThinkGeo.MapSuite.Core.Projection --> | A cloned Projection. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#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 ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== ConvertEpsgToPrj(Int32) ==== | ||
- | <!-- static --> | ||
- | This method is a static API to get a Prj string by Epsg number | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | srid | Int32<!-- System.Int32 --> | Epsg number that reprents this projection | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== ConvertPrjToProj4(String) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | prjString | String<!-- System.String --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== ConvertProj4ToPrj(String) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | proj4String | String<!-- System.String --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Feature|Feature]]<!-- ThinkGeo.MapSuite.Core.Feature --> | This method returns a projected Feature for the passed-in Feature. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | feature | [[ThinkGeo.MapSuite.Core.Feature|Feature]]<!-- ThinkGeo.MapSuite.Core.Feature --> | This parameter is the Feature that contains a BaseShape in decimalDegreesValue to be projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]<!-- ThinkGeo.MapSuite.Core.BaseShape --> | This method returns a projected baseShape for the passed-in BaseShape. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | baseShape | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]<!-- ThinkGeo.MapSuite.Core.BaseShape --> | This parameter is the baseShape (in decimalDegreesValue) to be projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Vertex|Vertex]]<!-- ThinkGeo.MapSuite.Core.Vertex --> | This method returns a projected vertex based on the coordinates passed in. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | x | Double<!-- System.Double --> | This parameter is the X decimalDegreesValue of the point that will be projected. | | ||
- | | y | Double<!-- System.Double --> | This parameter is the Y decimalDegreesValue of the point that will be projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== ConvertToExternalProjection(GeoImage, RectangleShape) ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.RasterProjectionResult|RasterProjectionResult]]<!-- ThinkGeo.MapSuite.Core.RasterProjectionResult --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | image | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.Core.GeoImage --> | | | ||
- | | imageExtent | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | This method returns a projected rectangle based on the rectangle passed in. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | rectangleShape | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | This parameter represents the rectangle you want to project. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== ConvertToExternalProjection(GeoImage, RectangleShape, RectangleShape) ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.RasterProjectionResult|RasterProjectionResult]]<!-- ThinkGeo.MapSuite.Core.RasterProjectionResult --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | image | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.Core.GeoImage --> | | | ||
- | | imageExtent | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | | | ||
- | | targetExtent | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Vertex|Vertex]][]<!-- ThinkGeo.MapSuite.Core.Vertex[[]] --> | This method returns projected vertices based on the coordinates passed in. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | vertices | IEnumerable<[[ThinkGeo.MapSuite.Core.Vertex|Vertex]]><!-- System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.Core.Vertex} --> | This parameter is the vertices that will be projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]<!-- ThinkGeo.MapSuite.Core.BaseShape --> | This method returns a de-projected BaseShape for the passed in BaseShape. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | baseShape | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]<!-- ThinkGeo.MapSuite.Core.BaseShape --> | This parameter is the baseShape (in decimalDegreesValue) to be de-projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Feature|Feature]]<!-- ThinkGeo.MapSuite.Core.Feature --> | This method returns a de-projected Feature for the passed-in Feature. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | feature | [[ThinkGeo.MapSuite.Core.Feature|Feature]]<!-- ThinkGeo.MapSuite.Core.Feature --> | This parameter is the Feature that contains a BaseShape in decimalDegreesValue to be de-projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Vertex|Vertex]][]<!-- ThinkGeo.MapSuite.Core.Vertex[[]] --> | This method returns de-projected vertices based on the coordinates passed in. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | vertices | IEnumerable<[[ThinkGeo.MapSuite.Core.Vertex|Vertex]]><!-- System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.Core.Vertex} --> | This parameter is the vertices that will be de-projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | This method returns a de-projected rectangle based on the rectangle passed in. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | rectangleShape | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | This parameter represents the rectangle you want to de-project. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Vertex|Vertex]]<!-- ThinkGeo.MapSuite.Core.Vertex --> | This method returns a de-projected vertex based on the coordinates passed in. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | x | Double<!-- System.Double --> | This parameter is the X decimalDegreesValue of the point that will be de-projected. | | ||
- | | y | Double<!-- System.Double --> | This parameter is the Y decimalDegreesValue of the point that will be de-projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== Equals(Object) ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Boolean<!-- System.Boolean --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | obj | Object<!-- System.Object --> | | | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetBingMapParametersString() ==== | ||
- | <!-- static --> | ||
- | This method is a static API to get a projection used by BingMaps. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | A text for a projection used by BingMaps , it should like this "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetDecimalDegreesParametersString() ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetEpsgParametersString(Int32) ==== | ||
- | <!-- static --> | ||
- | This method is a static API to get a projection text from EPSG(European Petroleum Survey Group). | ||
- | === Remarks === | ||
- | More information about it can reference to EPSG.rtf in the documentation. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | The project text corresponding to the srid. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | srid | Int32<!-- System.Int32 --> | The target Srid infromation to get the projection text from. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetEsriParametersString(Int32) ==== | ||
- | <!-- static --> | ||
- | This method is a static API to get a projection text from ERSI. | ||
- | === Remarks === | ||
- | More information about it can reference to ERSI.rtf in the documentation. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | The project text corresponding to the srid. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | srid | Int32<!-- System.Int32 --> | The target Srid infromation to get the projection text from. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetExternalGeographyUnit() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]]<!-- ThinkGeo.MapSuite.Core.GeographyUnit --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetGeographyUnitFromPrj(String) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]]<!-- ThinkGeo.MapSuite.Core.GeographyUnit --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | prjString | String<!-- System.String --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetGeographyUnitFromProj4(String) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]]<!-- ThinkGeo.MapSuite.Core.GeographyUnit --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | proj4String | String<!-- System.String --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetGoogleMapParametersString() ==== | ||
- | <!-- static --> | ||
- | This method is a static API to get a projection used by GoogleMap. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | A text for a projection used by GoogleMap , it should like this "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetHashCode() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Int32<!-- System.Int32 --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetInternalGeographyUnit() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]]<!-- ThinkGeo.MapSuite.Core.GeographyUnit --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLatLongParametersString() ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneNumber(BaseShape, String) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Int32<!-- System.Int32 --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | shape | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]<!-- ThinkGeo.MapSuite.Core.BaseShape --> | | | ||
- | | proj4ProjectionParameters | String<!-- System.String --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneNumber(Feature, Int32) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Int32<!-- System.Int32 --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | feature | [[ThinkGeo.MapSuite.Core.Feature|Feature]]<!-- ThinkGeo.MapSuite.Core.Feature --> | | | ||
- | | srid | Int32<!-- System.Int32 --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneNumber(Feature, String) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Int32<!-- System.Int32 --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | feature | [[ThinkGeo.MapSuite.Core.Feature|Feature]]<!-- ThinkGeo.MapSuite.Core.Feature --> | | | ||
- | | proj4ProjectionParameters | String<!-- System.String --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneNumber(Double, Double) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Int32<!-- System.Int32 --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | latitude | Double<!-- System.Double --> | | | ||
- | | longitude | Double<!-- System.Double --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneNumber(BaseShape, Int32) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Int32<!-- System.Int32 --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | shape | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]<!-- ThinkGeo.MapSuite.Core.BaseShape --> | | | ||
- | | srid | Int32<!-- System.Int32 --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneParametersString(BaseShape, Int32) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | shape | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]<!-- ThinkGeo.MapSuite.Core.BaseShape --> | | | ||
- | | srid | Int32<!-- System.Int32 --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneParametersString(Feature, Int32) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | feature | [[ThinkGeo.MapSuite.Core.Feature|Feature]]<!-- ThinkGeo.MapSuite.Core.Feature --> | | | ||
- | | srid | Int32<!-- System.Int32 --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneParametersString(Feature, String) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | feature | [[ThinkGeo.MapSuite.Core.Feature|Feature]]<!-- ThinkGeo.MapSuite.Core.Feature --> | | | ||
- | | proj4ProjectionParameters | String<!-- System.String --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneParametersString(Double, Double) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | longitude | Double<!-- System.Double --> | | | ||
- | | latitude | Double<!-- System.Double --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetLocalUtmZoneParametersString(BaseShape, String) ==== | ||
- | <!-- static --> | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | shape | [[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]<!-- ThinkGeo.MapSuite.Core.BaseShape --> | | | ||
- | | proj4ProjectionParameters | String<!-- System.String --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetSphericalMercatorParametersString() ==== | ||
- | <!-- static --> | ||
- | This method is a static API to get a projection of SphericalMercator. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | A text for a SphericalMercator projection, it should like this "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetType() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Type<!-- System.Type --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetWgs84ParametersString() ==== | ||
- | <!-- static --> | ||
- | This method is a static API to get a projection text from WGS84. | ||
- | === Remarks === | ||
- | More information about it can reference to EPSG.rtf in the documentation. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | The project text corresponding to the srid. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Methods|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 ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== ToString() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Public Methods|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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Projection|Projection]]<!-- ThinkGeo.MapSuite.Core.Projection --> | A cloned GeoCanvas. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== CloseCore() ==== | ||
- | This method closes the projection and gets it ready to serialization if necessary. | ||
- | === Remarks === | ||
- | As this is the core version of the Close method it is intended to be overridden in inherited version of the class. When overriding you will be responsible freeing any state you have maintained and getting the class ready to 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 tiles without any ill effects. | ||
- | |||
- | In this override we call the Proj4 methods get release the handles and memory. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== ConvertToExternalProjectionCore(GeoImage, RectangleShape, RectangleShape) ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.RasterProjectionResult|RasterProjectionResult]]<!-- ThinkGeo.MapSuite.Core.RasterProjectionResult --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | image | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.Core.GeoImage --> | | | ||
- | | imageExtent | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | | | ||
- | | targetExtent | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== ConvertToExternalProjectionCore(GeoImage, RectangleShape) ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.RasterProjectionResult|RasterProjectionResult]]<!-- ThinkGeo.MapSuite.Core.RasterProjectionResult --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | image | [[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.Core.GeoImage --> | | | ||
- | | imageExtent | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== ConvertToExternalProjectionCore(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. 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 ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Vertex|Vertex]][]<!-- ThinkGeo.MapSuite.Core.Vertex[[]] --> | This method returns a projected vertices based on the coordinates passed in. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | x | Double[]<!-- System.Double[[]] --> | This parameter is the X values of the points that will be projected. | | ||
- | | y | Double[]<!-- System.Double[[]] --> | This parameter is the Y values of the points that will be projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== ConvertToInternalProjectionCore(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. 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 to to and from various projections. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.Vertex|Vertex]][]<!-- ThinkGeo.MapSuite.Core.Vertex[[]] --> | This method returns a de-projected vertices based on the coordinates passed in. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | x | Double[]<!-- System.Double[[]] --> | This parameter is the X values of the points that will be de-projected. | | ||
- | | y | Double[]<!-- System.Double[[]] --> | This parameter is the Y values of the points that will be de-projected. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== Finalize() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== GetExternalGeographyUnitCore() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]]<!-- ThinkGeo.MapSuite.Core.GeographyUnit --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== GetInternalGeographyUnitCore() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]]<!-- ThinkGeo.MapSuite.Core.GeographyUnit --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== MemberwiseClone() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Object<!-- System.Object --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== OpenCore() ==== | ||
- | This method open 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 inherited version of the class. When overriding you will be responsible for getting the projection classes state ready for doing projections. | ||
- | |||
- | In this override we call the Proj4 methods get it ready for projection. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ===== Public Properties ===== | ||
- | ==== CanConvertRasterToExternalProjection ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | Boolean<!-- System.Boolean --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== DecimalDegreeBoundary ==== | ||
- | This property specifies the Boundary for decimaldegree values. | ||
- | === Remarks === | ||
- | The default boundary is(-179.9, 89.9, 179.9, -89.9). That means when I want to project a PointShape(-179,91,89.91) out, in fact what it projects is (-179.9,89.9) because of its out of boundary. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | [[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.Core.RectangleShape --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== ExternalProjectionParametersString ==== | ||
- | 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". | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | String<!-- System.String --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== InternalProjectionParametersString ==== | ||
- | Gets or sets the Proj4 text parameter for the from projection. This parameter typically look like "+Proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs". | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | String<!-- System.String --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.ManagedProj4Projection --> | ||
- | [[#Public Properties|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<!-- System.Boolean --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ===== Protected Properties ===== | ||
- | ==== CanReproject ==== | ||
- | This property indicates whether this projection should be used. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | Boolean<!-- System.Boolean --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.Core.Projection(overriden) --> | ||
- | [[#Protected Properties|Go Back]] | ||
- | ===== Public Events ===== | ||
- | __NOTOC__ | ||
- | [[Category:MapSuiteCore]] | ||
- | [[Category:ThinkGeo.MapSuite.Core]] | ||
- | [[Category:UpdateDocumentation]] | ||
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.