This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo.mapsuite.core.proj4projection [2015/09/21 01:08] admin |
thinkgeo.mapsuite.core.proj4projection [2017/03/16 21:59] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ThinkGeo.MapSuite.Core.Proj4Projection ====== | ====== ThinkGeo.MapSuite.Core.Proj4Projection ====== | ||
+ | |||
+ | {{section>upgrade_map_suite_to_10.0}} | ||
+ | |||
This projection class uses the Proj4 to project data from one Srid to another. | This projection class uses the Proj4 to project data from one Srid to another. | ||
===== Inheritance Hierarchy ===== | ===== Inheritance Hierarchy ===== | ||
Line 9: | Line 12: | ||
** {{wiki:PublicMethod.gif|}} Proj4Projection() ** | ** {{wiki:PublicMethod.gif|}} Proj4Projection() ** | ||
- | This is the default constructor for this class. | + | * //This is the default constructor for this class.// |
== Remarks == | == Remarks == | ||
- | This conctructor pass nothing. After this cconstructor , you should set the InternalProjectionParametersString property and ExternalProjectionParametersString property before open to use. | + | * //This conctructor pass nothing. After this cconstructor , you should set the InternalProjectionParametersString property and ExternalProjectionParametersString property before open to use.// |
== Parameters == | == Parameters == | ||
<div newline></div> | <div newline></div> | ||
** {{wiki:PublicMethod.gif|}} Proj4Projection(Int32,Int32) ** | ** {{wiki:PublicMethod.gif|}} Proj4Projection(Int32,Int32) ** | ||
- | This is a constructor for the class. | + | * //This is a constructor for the class.// |
== Remarks == | == Remarks == | ||
- | This constructor allows you to pass in Proj4 srid parameters for the to and from projection. The parameters typically look like 4320 stands for "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" and 4604 stands for " +proj=longlat +ellps=clrk80 +towgs84=174,359,365,0,0,0,0 +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. | + | * //This constructor allows you to pass in Proj4 srid parameters for the to and from projection. The parameters typically look like 4320 stands for "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" and 4604 stands for " +proj=longlat +ellps=clrk80 +towgs84=174,359,365,0,0,0,0 +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 == | == Parameters == | ||
* //internalEpsgSrid// | * //internalEpsgSrid// | ||
Line 31: | Line 34: | ||
** {{wiki:PublicMethod.gif|}} Proj4Projection(String,String) ** | ** {{wiki:PublicMethod.gif|}} Proj4Projection(String,String) ** | ||
- | This is a constructor for the class. | + | * //This is a constructor for the class.// |
== Remarks == | == 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. | + | * //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 == | == Parameters == | ||
* //internalProjectionParametersString// | * //internalProjectionParametersString// | ||
Line 42: | Line 45: | ||
* Type:String | * Type:String | ||
* Description:This parameter is the projection parameters describing the projection you want to go to. | * Description:This parameter is the projection parameters describing the projection you want to go to. | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}} Proj4Projection(String,Int32) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | == Parameters == | ||
+ | * //internalProjectionParametersString// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
+ | * //externalEpsgSrid// | ||
+ | * Type:Int32 | ||
+ | * Description:N/A | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}} Proj4Projection(Int32,String) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | == Parameters == | ||
+ | * //internalEpsgSrid// | ||
+ | * Type:Int32 | ||
+ | * Description:N/A | ||
+ | |||
+ | * //externalProjectionParametersString// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
<div newline></div> | <div newline></div> | ||
Line 48: | Line 81: | ||
** {{wiki:PublicMethod.gif|}} Dispose() ** | ** {{wiki:PublicMethod.gif|}} Dispose() ** | ||
- | This is the dispose method for the class. | + | * //This is the dispose method for the class.// |
== Remarks == | == Remarks == | ||
- | This dispose releases the handles of the Proj4 library. You should normally use Close instead of dispose unless you really want to never use this instance again. Normally when a layer is finished drawing it will call the Close of the projection class. This allows the object to be serialize but used again in the future. You should only use the Dispose method when you do not want to use this class again. | + | * //This dispose releases the handles of the Proj4 library. You should normally use Close instead of dispose unless you really want to never use this instance again. Normally when a layer is finished drawing it will call the Close of the projection class. This allows the object to be serialize but used again in the future. You should only use the Dispose method when you do not want to use this class again.// |
== Return Value == | == Return Value == | ||
Line 60: | Line 93: | ||
** {{wiki:PublicMethod.gif|}} CloneDeep() ** | ** {{wiki:PublicMethod.gif|}} CloneDeep() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 72: | Line 105: | ||
** {{wiki:PublicMethod.gif|}} Open() ** | ** {{wiki:PublicMethod.gif|}} Open() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 84: | Line 117: | ||
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(GeoImage,RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(GeoImage,RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 104: | Line 137: | ||
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 128: | Line 161: | ||
** {{wiki:PublicMethod.gif|}} Close() ** | ** {{wiki:PublicMethod.gif|}} Close() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 140: | Line 173: | ||
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(Double,Double) ** | ** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(Double,Double) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 160: | Line 193: | ||
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(BaseShape) ** | ** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(BaseShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 176: | Line 209: | ||
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(Feature) ** | ** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(Feature) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 192: | Line 225: | ||
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 203: | Line 236: | ||
* //rectangleShape// | * //rectangleShape// | ||
* Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
+ | * Description:N/A | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(IEnumerable<Vertex>) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.Vertex[]|Vertex[]]] | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | * //vertices// | ||
+ | * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.Vertex|Vertex]]> | ||
* Description:N/A | * Description:N/A | ||
Line 208: | Line 257: | ||
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(Double,Double) ** | ** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(Double,Double) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 228: | Line 277: | ||
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(BaseShape) ** | ** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(BaseShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 244: | Line 293: | ||
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(Feature) ** | ** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(Feature) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 255: | Line 304: | ||
* //feature// | * //feature// | ||
* Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
+ | * Description:N/A | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(IEnumerable<Vertex>) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.Vertex[]|Vertex[]]] | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | * //vertices// | ||
+ | * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.Vertex|Vertex]]> | ||
* Description:N/A | * Description:N/A | ||
Line 260: | Line 325: | ||
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 276: | Line 341: | ||
** {{wiki:PublicMethod.gif|}} GetInternalGeographyUnit() ** | ** {{wiki:PublicMethod.gif|}} GetInternalGeographyUnit() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 288: | Line 353: | ||
** {{wiki:PublicMethod.gif|}} GetExternalGeographyUnit() ** | ** {{wiki:PublicMethod.gif|}} GetExternalGeographyUnit() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 300: | Line 365: | ||
** {{wiki:PublicMethod.gif|}} ToString() ** | ** {{wiki:PublicMethod.gif|}} ToString() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 312: | Line 377: | ||
** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 328: | Line 393: | ||
** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 340: | Line 405: | ||
** {{wiki:PublicMethod.gif|}} GetType() ** | ** {{wiki:PublicMethod.gif|}} GetType() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 349: | Line 414: | ||
== Parameters == | == Parameters == | ||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetGeographyUnitFromPrj(String) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | * //prjString// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetGeographyUnitFromProj4(String) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | * //proj4String// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
<div newline></div> | <div newline></div> | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetBingMapParametersString() ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetBingMapParametersString() ** | ||
- | This method is a static API to get a projection used by BingMaps. | + | * //This method is a static API to get a projection used by BingMaps.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 364: | Line 461: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetSphericalMercatorParametersString() ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetSphericalMercatorParametersString() ** | ||
- | This method is a static API to get a projection of SphericalMercator. | + | * //This method is a static API to get a projection of SphericalMercator.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 376: | Line 473: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetEpsgParametersString(Int32) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetEpsgParametersString(Int32) ** | ||
- | This method is a static API to get a projection text from EPSG(European Petroleum Survey Group). | + | * //This method is a static API to get a projection text from EPSG(European Petroleum Survey Group).// |
== Remarks == | == Remarks == | ||
- | More information about it can reference to EPSG.rtf in the documentation. | + | * //More information about it can reference to EPSG.rtf in the documentation.// |
== Return Value == | == Return Value == | ||
Line 392: | Line 489: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetWgs84ParametersString() ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetWgs84ParametersString() ** | ||
- | This method is a static API to get a projection text from WGS84. | + | * //This method is a static API to get a projection text from WGS84.// |
== Remarks == | == Remarks == | ||
- | More information about it can reference to EPSG.rtf in the documentation. | + | * //More information about it can reference to EPSG.rtf in the documentation.// |
== Return Value == | == Return Value == | ||
Line 404: | Line 501: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLatLongParametersString() ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLatLongParametersString() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 416: | Line 513: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreesParametersString() ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreesParametersString() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 428: | Line 525: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetEsriParametersString(Int32) ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetEsriParametersString(Int32) ** | ||
- | This method is a static API to get a projection text from ERSI. | + | * //This method is a static API to get a projection text from ERSI.// |
== Remarks == | == Remarks == | ||
- | More information about it can reference to ERSI.rtf in the documentation. | + | * //More information about it can reference to ERSI.rtf in the documentation.// |
== Return Value == | == Return Value == | ||
Line 444: | Line 541: | ||
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetGoogleMapParametersString() ** | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetGoogleMapParametersString() ** | ||
- | This method is a static API to get a projection used by GoogleMap. | + | * //This method is a static API to get a projection used by GoogleMap.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 454: | Line 551: | ||
== Parameters == | == Parameters == | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertEpsgToPrj(Int32) ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneParametersString(Double,Double) ** |
- | This method is a static API to get a Prj string by Epsg number | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 465: | Line 562: | ||
== Parameters == | == Parameters == | ||
+ | * //longitude// | ||
+ | * Type:Double | ||
+ | * Description:N/A | ||
+ | |||
+ | * //latitude// | ||
+ | * Type:Double | ||
+ | * Description:N/A | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneParametersString(Feature,String) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | * //feature// | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
+ | * Description:N/A | ||
+ | |||
+ | * //proj4ProjectionParameters// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneParametersString(Feature,Int32) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | * //feature// | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
+ | * Description:N/A | ||
+ | |||
* //srid// | * //srid// | ||
* Type:Int32 | * Type:Int32 | ||
- | * Description:Epsg number that reprents this projection | + | * Description:N/A |
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertProj4ToPrj(String) ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneParametersString(BaseShape,String) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 481: | Line 622: | ||
== Parameters == | == Parameters == | ||
- | * //proj4String// | + | * //shape// |
+ | * Type:[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] | ||
+ | * Description:N/A | ||
+ | |||
+ | * //proj4ProjectionParameters// | ||
* Type:String | * Type:String | ||
* Description:N/A | * Description:N/A | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertPrjToProj4(String) ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneParametersString(BaseShape,Int32) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 497: | Line 642: | ||
== Parameters == | == Parameters == | ||
- | * //prjString// | + | * //shape// |
- | * Type:String | + | * Type:[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] |
+ | * Description:N/A | ||
+ | |||
+ | * //srid// | ||
+ | * Type:Int32 | ||
* Description:N/A | * Description:N/A | ||
<div newline></div> | <div newline></div> | ||
- | ==== Protected Methods ==== | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Double,Double) ** |
- | ** {{wiki:ProtectedMethod.gif|}} OpenCore() ** | + | |
- | This method open the projection and gets it ready to use. | + | * //N/A// |
== Remarks == | == 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. | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:Void | + | * Type:Int32 |
- | * Description:None | + | * Description:N/A |
== Parameters == | == Parameters == | ||
+ | * //latitude// | ||
+ | * Type:Double | ||
+ | * Description:N/A | ||
+ | |||
+ | * //longitude// | ||
+ | * Type:Double | ||
+ | * Description:N/A | ||
+ | |||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} CloseCore() ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Feature,String) ** |
- | This method closes the projection and gets it ready to serialization if necessary. | + | * //N/A// |
== Remarks == | == 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. | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:Void | + | * Type:Int32 |
- | * Description:None | + | * Description:N/A |
== Parameters == | == Parameters == | ||
+ | * //feature// | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
+ | * Description:N/A | ||
+ | |||
+ | * //proj4ProjectionParameters// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(Double[],Double[]) ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Feature,Int32) ** |
- | This method returns a projected vertex based on the coordinates passed in. | + | * //N/A// |
== Remarks == | == 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. | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Vertex[]|Vertex[]]] | + | * Type:Int32 |
- | * Description:This method returns a projected vertices based on the coordinates passed in. | + | * Description:N/A |
== Parameters == | == Parameters == | ||
- | * //x// | + | * //feature// |
- | * Type:Double[] | + | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] |
- | * Description:This parameter is the X values of the points that will be projected. | + | * Description:N/A |
- | * //y// | + | * //srid// |
- | * Type:Double[] | + | * Type:Int32 |
- | * Description:This parameter is the Y values of the points that will be projected. | + | * Description:N/A |
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} ConvertToInternalProjectionCore(Double[],Double[]) ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(BaseShape,String) ** |
- | This method returns a de-projected vertex based on the coordinates passed in. | + | * //N/A// |
== Remarks == | == 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. | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Vertex[]|Vertex[]]] | + | * Type:Int32 |
- | * Description:This method returns a de-projected vertices based on the coordinates passed in. | + | * Description:N/A |
== Parameters == | == Parameters == | ||
- | * //x// | + | * //shape// |
- | * Type:Double[] | + | * Type:[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] |
- | * Description:This parameter is the X values of the points that will be de-projected. | + | * Description:N/A |
- | * //y// | + | * //proj4ProjectionParameters// |
- | * Type:Double[] | + | * Type:String |
- | * Description:This parameter is the Y values of the points that will be de-projected. | + | * Description:N/A |
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(BaseShape,Int32) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:Void | + | * Type:Int32 |
* Description:N/A | * Description:N/A | ||
== Parameters == | == Parameters == | ||
+ | * //shape// | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] | ||
+ | * Description:N/A | ||
+ | |||
+ | * //srid// | ||
+ | * Type:Int32 | ||
+ | * Description:N/A | ||
+ | |||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} GetInternalGeographyUnitCore() ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertEpsgToPrj(Int32) ** |
- | N/A | + | * //This method is a static API to get a Prj string by Epsg number// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | + | * Type:String |
* Description:N/A | * Description:N/A | ||
== Parameters == | == Parameters == | ||
+ | * //srid// | ||
+ | * Type:Int32 | ||
+ | * Description:Epsg number that reprents this projection | ||
+ | |||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} GetExternalGeographyUnitCore() ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertProj4ToPrj(String) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | + | * Type:String |
* Description:N/A | * Description:N/A | ||
== Parameters == | == Parameters == | ||
+ | * //proj4String// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} CloneDeepCore() ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertPrjToProj4(String) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Projection|Projection]] | + | * Type:String |
* Description:N/A | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | * //prjString// | ||
+ | * Type:String | ||
+ | * Description:N/A | ||
+ | |||
+ | <div newline></div> | ||
+ | ==== Protected Methods ==== | ||
+ | ** {{wiki:ProtectedMethod.gif|}} 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 == | ||
+ | * Type:Void | ||
+ | * Description:None | ||
+ | |||
+ | == Parameters == | ||
+ | <div newline></div> | ||
+ | ** {{wiki:ProtectedMethod.gif|}} 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 == | ||
+ | * Type:Void | ||
+ | * Description:None | ||
== Parameters == | == Parameters == | ||
Line 617: | Line 826: | ||
** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(GeoImage,RectangleShape) ** | ** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(GeoImage,RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 637: | Line 846: | ||
** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(GeoImage,RectangleShape,RectangleShape) ** | ** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(GeoImage,RectangleShape,RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 659: | Line 868: | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} Xhs=(Feature) ** | + | ** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(Double[],Double[]) ** |
- | N/A | + | * //This method returns a projected vertex based on the coordinates passed in.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //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:[[ThinkGeo.MapSuite.Core.Vertex[]|Vertex[]]] | ||
+ | * Description:This method returns a projected vertices based on the coordinates passed in. | ||
+ | |||
+ | == Parameters == | ||
+ | * //x// | ||
+ | * Type:Double[] | ||
+ | * Description:This parameter is the X values of the points that will be projected. | ||
+ | |||
+ | * //y// | ||
+ | * Type:Double[] | ||
+ | * Description:This parameter is the Y values of the points that will be projected. | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:ProtectedMethod.gif|}} 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 == | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.Vertex[]|Vertex[]]] | ||
+ | * Description:This method returns a de-projected vertices based on the coordinates passed in. | ||
+ | |||
+ | == Parameters == | ||
+ | * //x// | ||
+ | * Type:Double[] | ||
+ | * Description:This parameter is the X values of the points that will be de-projected. | ||
+ | |||
+ | * //y// | ||
+ | * Type:Double[] | ||
+ | * Description:This parameter is the Y values of the points that will be de-projected. | ||
+ | |||
+ | <div newline></div> | ||
+ | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
== Return Value == | == Return Value == | ||
Line 670: | Line 919: | ||
== Parameters == | == Parameters == | ||
- | * //Xxs=// | + | <div newline></div> |
+ | ** {{wiki:ProtectedMethod.gif|}} GetInternalGeographyUnitCore() ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | <div newline></div> | ||
+ | ** {{wiki:ProtectedMethod.gif|}} GetExternalGeographyUnitCore() ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | <div newline></div> | ||
+ | ** {{wiki:ProtectedMethod.gif|}} CloneDeepCore() ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:[[ThinkGeo.MapSuite.Core.Projection|Projection]] | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | <div newline></div> | ||
+ | ** {{wiki:ProtectedMethod.gif|}} UpdateToExternalProjection(Feature) ** | ||
+ | |||
+ | * //N/A// | ||
+ | == Remarks == | ||
+ | * //N/A// | ||
+ | |||
+ | == Return Value == | ||
+ | * Type:Void | ||
+ | * Description:N/A | ||
+ | |||
+ | == Parameters == | ||
+ | * //feature// | ||
* Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
* Description:N/A | * Description:N/A | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} Yxs=(Feature) ** | + | ** {{wiki:ProtectedMethod.gif|}} UpdateToInternalProjection(Feature) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 686: | Line 983: | ||
== Parameters == | == Parameters == | ||
- | * //ZBs=// | + | * //feature// |
* Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
* Description:N/A | * Description:N/A | ||
Line 693: | Line 990: | ||
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == |