This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo.mapsuite.portablecore.proj4projection [2015/09/21 08:16] admin |
thinkgeo.mapsuite.portablecore.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 78: | Line 51: | ||
** {{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 90: | Line 63: | ||
** {{wiki:PublicMethod.gif|}} CloneDeep() ** | ** {{wiki:PublicMethod.gif|}} CloneDeep() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 102: | Line 75: | ||
** {{wiki:PublicMethod.gif|}} Open() ** | ** {{wiki:PublicMethod.gif|}} Open() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 114: | Line 87: | ||
** {{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 134: | Line 107: | ||
** {{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 158: | Line 131: | ||
** {{wiki:PublicMethod.gif|}} Close() ** | ** {{wiki:PublicMethod.gif|}} Close() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 170: | Line 143: | ||
** {{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 190: | Line 163: | ||
** {{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 206: | Line 179: | ||
** {{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 222: | Line 195: | ||
** {{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 233: | Line 206: | ||
* //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 254: | Line 211: | ||
** {{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 274: | Line 231: | ||
** {{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 290: | Line 247: | ||
** {{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 301: | Line 258: | ||
* //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 322: | Line 263: | ||
** {{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 338: | Line 279: | ||
** {{wiki:PublicMethod.gif|}} GetInternalGeographyUnit() ** | ** {{wiki:PublicMethod.gif|}} GetInternalGeographyUnit() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 350: | Line 291: | ||
** {{wiki:PublicMethod.gif|}} GetExternalGeographyUnit() ** | ** {{wiki:PublicMethod.gif|}} GetExternalGeographyUnit() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 362: | Line 303: | ||
** {{wiki:PublicMethod.gif|}} ToString() ** | ** {{wiki:PublicMethod.gif|}} ToString() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 374: | Line 315: | ||
** {{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 390: | Line 331: | ||
** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 402: | Line 343: | ||
** {{wiki:PublicMethod.gif|}} GetType() ** | ** {{wiki:PublicMethod.gif|}} GetType() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 411: | Line 352: | ||
== 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 458: | Line 367: | ||
** {{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 470: | Line 379: | ||
** {{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 486: | Line 395: | ||
** {{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 498: | Line 407: | ||
** {{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 510: | Line 419: | ||
** {{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 522: | Line 431: | ||
** {{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 538: | Line 447: | ||
** {{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 548: | Line 457: | ||
== Parameters == | == Parameters == | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneParametersString(Double,Double) ** | + | ** {{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 == | ||
Line 559: | Line 468: | ||
== 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:N/A | + | * Description:Epsg number that reprents this projection |
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneParametersString(BaseShape,String) ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertProj4ToPrj(String) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 619: | Line 484: | ||
== Parameters == | == Parameters == | ||
- | * //shape// | + | * //proj4String// |
- | * 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|}} GetLocalUtmZoneParametersString(BaseShape,Int32) ** | + | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertPrjToProj4(String) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 639: | Line 500: | ||
== Parameters == | == Parameters == | ||
- | * //shape// | + | * //prjString// |
- | * Type:[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] | + | * Type:String |
- | * Description:N/A | + | |
- | + | ||
- | * //srid// | + | |
- | * Type:Int32 | + | |
* Description:N/A | * Description:N/A | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Double,Double) ** | + | ==== Protected Methods ==== |
+ | ** {{wiki:ProtectedMethod.gif|}} OpenCore() ** | ||
- | N/A | + | * //This method open the projection and gets it ready to use.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //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 Value == | ||
- | * Type:Int32 | + | * Type:Void |
- | * Description:N/A | + | * Description:None |
== Parameters == | == Parameters == | ||
- | * //latitude// | ||
- | * Type:Double | ||
- | * Description:N/A | ||
- | |||
- | * //longitude// | ||
- | * Type:Double | ||
- | * Description:N/A | ||
- | |||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Feature,String) ** | + | ** {{wiki:ProtectedMethod.gif|}} CloseCore() ** |
- | N/A | + | * //This method closes the projection and gets it ready to serialization if necessary.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //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 Value == | ||
- | * Type:Int32 | + | * Type:Void |
- | * Description:N/A | + | * Description:None |
== 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:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Feature,Int32) ** | + | ** {{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 == | == Return Value == | ||
- | * Type:Int32 | + | * Type:[[ThinkGeo.MapSuite.Core.Vertex[]|Vertex[]]] |
- | * Description:N/A | + | * Description:This method returns a projected vertices based on the coordinates passed in. |
== Parameters == | == Parameters == | ||
- | * //feature// | + | * //x// |
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | + | * Type:Double[] |
- | * Description:N/A | + | * Description:This parameter is the X values of the points that will be projected. |
- | * //srid// | + | * //y// |
- | * Type:Int32 | + | * Type:Double[] |
- | * Description:N/A | + | * Description:This parameter is the Y values of the points that will be projected. |
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(BaseShape,String) ** | + | ** {{wiki:ProtectedMethod.gif|}} ConvertToInternalProjectionCore(Double[],Double[]) ** |
- | N/A | + | * //This method returns a de-projected vertex based on the coordinates passed in.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //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 Value == | ||
- | * Type:Int32 | + | * Type:[[ThinkGeo.MapSuite.Core.Vertex[]|Vertex[]]] |
- | * Description:N/A | + | * Description:This method returns a de-projected vertices based on the coordinates passed in. |
== Parameters == | == Parameters == | ||
- | * //shape// | + | * //x// |
- | * Type:[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]] | + | * Type:Double[] |
- | * Description:N/A | + | * Description:This parameter is the X values of the points that will be de-projected. |
- | * //proj4ProjectionParameters// | + | * //y// |
- | * Type:String | + | * Type:Double[] |
- | * Description:N/A | + | * Description:This parameter is the Y values of the points that will be de-projected. |
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(BaseShape,Int32) ** | + | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:Int32 | + | * Type:Void |
* 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:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertEpsgToPrj(Int32) ** | + | ** {{wiki:ProtectedMethod.gif|}} GetInternalGeographyUnitCore() ** |
- | 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 == | ||
- | * Type:String | + | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] |
* 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:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertProj4ToPrj(String) ** | + | ** {{wiki:ProtectedMethod.gif|}} GetExternalGeographyUnitCore() ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:String | + | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] |
* Description:N/A | * Description:N/A | ||
== Parameters == | == Parameters == | ||
- | * //proj4String// | ||
- | * Type:String | ||
- | * Description:N/A | ||
- | |||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertPrjToProj4(String) ** | + | ** {{wiki:ProtectedMethod.gif|}} CloneDeepCore() ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
- | * Type:String | + | * Type:[[ThinkGeo.MapSuite.Core.Projection|Projection]] |
* 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 823: | Line 620: | ||
** {{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 843: | Line 640: | ||
** {{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 865: | Line 662: | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(Double[],Double[]) ** | + | ** {{wiki:ProtectedMethod.gif|}} UpdateToExternalProjection(Feature) ** |
- | + | ||
- | 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 == | + | |
- | * 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 == | + | |
- | * Type:Void | + | |
- | * Description:N/A | + | |
- | + | ||
- | == Parameters == | + | |
- | <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|}} SzE=(Feature) ** | + | |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 969: | Line 678: | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} TDE=(Feature) ** | + | ** {{wiki:ProtectedMethod.gif|}} UpdateToInternalProjection(Feature) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 987: | Line 696: | ||
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 1000: | Line 709: | ||
** {{wiki:PublicProperty.gif|}} MemoryMode ** | ** {{wiki:PublicProperty.gif|}} MemoryMode ** | ||
- | Gets or sets a valude indicating in which way we read the projection informaion. | + | * //Gets or sets a valude indicating in which way we read the projection informaion.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
* Type:[[ThinkGeo.MapSuite.Core.Proj4MemoryMode|Proj4MemoryMode]] | * Type:[[ThinkGeo.MapSuite.Core.Proj4MemoryMode|Proj4MemoryMode]] | ||
Line 1008: | Line 717: | ||
** {{wiki:PublicProperty.gif|}} DecimalDegreeBoundary ** | ** {{wiki:PublicProperty.gif|}} DecimalDegreeBoundary ** | ||
- | This property specifies the Boundary for decimaldegree values. | + | * //This property specifies the Boundary for decimaldegree values.// |
== Remarks == | == 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. | + | * //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 Value == | ||
* Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
Line 1016: | Line 725: | ||
** {{wiki:PublicProperty.gif|}} InternalProjectionParametersString ** | ** {{wiki:PublicProperty.gif|}} 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". | + | * //Gets or sets the Proj4 text parameter for the from projection. This parameter typically look like "+Proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs".// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
* Type:String | * Type:String | ||
Line 1024: | Line 733: | ||
** {{wiki:PublicProperty.gif|}} ExternalProjectionParametersString ** | ** {{wiki:PublicProperty.gif|}} 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". | + | * //Gets or sets the Proj4 text parameter for the to projection. This parameter typically look like "+proj=utm +zone=33 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs".// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
* Type:String | * Type:String | ||
Line 1032: | Line 741: | ||
** {{wiki:PublicProperty.gif|}} IsOpen ** | ** {{wiki:PublicProperty.gif|}} IsOpen ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
* Type:Boolean | * Type:Boolean | ||
Line 1040: | Line 749: | ||
** {{wiki:PublicProperty.gif|}} CanConvertRasterToExternalProjection ** | ** {{wiki:PublicProperty.gif|}} CanConvertRasterToExternalProjection ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
* Type:Boolean | * Type:Boolean | ||
Line 1049: | Line 758: | ||
** {{wiki:ProtectedProperty.gif|}} CanReproject ** | ** {{wiki:ProtectedProperty.gif|}} CanReproject ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
* Type:Boolean | * Type:Boolean |