====== ThinkGeo.Core.UnmanagedProjectionConverter ======
===== Inheritance Hierarchy =====
*System.Object
*ThinkGeo.Core.ProjectionConverter
***ThinkGeo.Core.UnmanagedProjectionConverter**
===== Members Summary =====
==== Public Constructors ====
** {{wiki:PublicMethod.gif|}} UnmanagedProjectionConverter() **
* //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 ==
** {{wiki:PublicMethod.gif|}} UnmanagedProjectionConverter(String,String) **
* //This is a constructor for the class.//
== Remarks ==
* //This constructor allows you to pass in Proj4 text parameters for the to and from projection. The parameters typically look like "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" You should use this constructor when you know the parameters. If you know the SRID directly you can use the other constructor that takes the SRID.//
== Parameters ==
* //internalProj//
* Type:String
* Description:This parameter is the projection parameters describing the data.
* //externalProj//
* Type:String
* Description:This parameter is the projection parameters describing the projection you want to go to.
** {{wiki:PublicMethod.gif|}} UnmanagedProjectionConverter(Int32,Int32) **
* //This is a constructor for the class.//
== 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.//
== Parameters ==
* //internalSrid//
* Type:Int32
* Description:This parameter is the projection srid parameter describing the data.
* //externalSrid//
* Type:Int32
* Description:This parameter is the projection srid parameter describing the projection you want to go to.
** {{wiki:PublicMethod.gif|}} UnmanagedProjectionConverter(String,Int32) **
* //N/A//
== Remarks ==
* //N/A//
== Parameters ==
* //internalProj//
* Type:String
* Description:N/A
* //externalSrid//
* Type:Int32
* Description:N/A
** {{wiki:PublicMethod.gif|}} UnmanagedProjectionConverter(Int32,String) **
* //N/A//
== Remarks ==
* //N/A//
== Parameters ==
* //internalSrid//
* Type:Int32
* Description:N/A
* //externalProj//
* Type:String
* Description:N/A
==== Protected Constructors ====
==== Public Methods ====
** {{wiki:PublicMethod.gif|}} Dispose() **
* //N/A//
== 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.//
== Return Value ==
* Type:Void
* Description:None
== Parameters ==
** {{wiki:PublicMethod.gif|}} Open() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Void
* Description:N/A
== Parameters ==
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape,Int32,Int32) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.RasterProjectionResult|RasterProjectionResult]]
* Description:N/A
== Parameters ==
* //image//
* Type:[[ThinkGeo.Core.GeoImage|GeoImage]]
* Description:N/A
* //imageExtent//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
* //targetExtent//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
* //width//
* Type:Int32
* Description:N/A
* //height//
* Type:Int32
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(GeoImage,RectangleShape) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.RasterProjectionResult|RasterProjectionResult]]
* Description:N/A
== Parameters ==
* //image//
* Type:[[ThinkGeo.Core.GeoImage|GeoImage]]
* Description:N/A
* //imageExtent//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.RasterProjectionResult|RasterProjectionResult]]
* Description:N/A
== Parameters ==
* //image//
* Type:[[ThinkGeo.Core.GeoImage|GeoImage]]
* Description:N/A
* //imageExtent//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
* //targetExtent//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
** {{wiki:PublicMethod.gif|}} Close() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Void
* Description:N/A
== Parameters ==
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(Double,Double) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.Vertex|Vertex]]
* Description:N/A
== Parameters ==
* //x//
* Type:Double
* Description:N/A
* //y//
* Type:Double
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(BaseShape) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.BaseShape|BaseShape]]
* Description:N/A
== Parameters ==
* //baseShape//
* Type:[[ThinkGeo.Core.BaseShape|BaseShape]]
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(Feature) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
== Parameters ==
* //feature//
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(IEnumerable) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Collection<[[ThinkGeo.Core.Feature|Feature]]>
* Description:N/A
== Parameters ==
* //features//
* Type:IEnumerable<[[ThinkGeo.Core.Feature|Feature]]>
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(RectangleShape) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
== Parameters ==
* //rectangleShape//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToExternalProjection(IEnumerable) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Collection<[[ThinkGeo.Core.Vertex|Vertex]]>
* Description:N/A
== Parameters ==
* //vertices//
* Type:IEnumerable<[[ThinkGeo.Core.Vertex|Vertex]]>
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(Double,Double) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.Vertex|Vertex]]
* Description:N/A
== Parameters ==
* //x//
* Type:Double
* Description:N/A
* //y//
* Type:Double
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(BaseShape) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.BaseShape|BaseShape]]
* Description:N/A
== Parameters ==
* //baseShape//
* Type:[[ThinkGeo.Core.BaseShape|BaseShape]]
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(Feature) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
== Parameters ==
* //feature//
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(IEnumerable) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Collection<[[ThinkGeo.Core.Vertex|Vertex]]>
* Description:N/A
== Parameters ==
* //vertices//
* Type:IEnumerable<[[ThinkGeo.Core.Vertex|Vertex]]>
* Description:N/A
** {{wiki:PublicMethod.gif|}} ConvertToInternalProjection(RectangleShape) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
== Parameters ==
* //rectangleShape//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
** {{wiki:PublicMethod.gif|}} GetType() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Type
* Description:N/A
== Parameters ==
** {{wiki:PublicMethod.gif|}} ToString() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
** {{wiki:PublicMethod.gif|}} Equals(Object) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Boolean
* Description:N/A
== Parameters ==
* //obj//
* Type:Object
* Description:N/A
** {{wiki:PublicMethod.gif|}} GetHashCode() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Int32
* Description:N/A
== Parameters ==
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetGeographyUnitFromWkt(String) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.GeographyUnit|GeographyUnit]]
* Description:N/A
== Parameters ==
* //wkt//
* Type:String
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetGeographyUnitFromProj(String) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.GeographyUnit|GeographyUnit]]
* Description:N/A
== Parameters ==
* //proj//
* Type:String
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertEpsgToWkt(Int32) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:
== Parameters ==
* //srid//
* Type:Int32
* Description:Epsg number that reprents this projection
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertProjToWkt(String) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
* //proj//
* Type:String
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ConvertWktToProj(String) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
* //wkt//
* Type:String
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetProjByEpsgSrid(Int32) **
* //N/A//
== Remarks ==
* //More information about it can reference to EPSG.rtf in the documentation.//
== Return Value ==
* Type:String
* Description:The project text corresponding to the srid.
== Parameters ==
* //srid//
* Type:Int32
* Description:The target Srid infromation to get the projection text from.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetProjByEsriSrid(Int32) **
* //N/A//
== Remarks ==
* //More information about it can reference to ERSI.rtf in the documentation.//
== Return Value ==
* Type:String
* Description:The project text corresponding to the srid.
== Parameters ==
* //srid//
* Type:Int32
* Description:The target Srid infromation to get the projection text from.
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetGoogleMapProj() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description: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 ==
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetWgs84Proj() **
* //N/A//
== Remarks ==
* //More information about it can reference to EPSG.rtf in the documentation.//
== Return Value ==
* Type:String
* Description:The project text corresponding to the srid.
== Parameters ==
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLatLongProj() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDecimalDegreesProj() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneProj(Double,Double) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
* //longitude//
* Type:Double
* Description:N/A
* //latitude//
* Type:Double
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneProj(Feature,String) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
* //feature//
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
* //proj//
* Type:String
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneProj(Feature,Int32) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
* //feature//
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
* //srid//
* Type:Int32
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneProj(BaseShape,String) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
* //shape//
* Type:[[ThinkGeo.Core.BaseShape|BaseShape]]
* Description:N/A
* //proj//
* Type:String
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneProj(BaseShape,Int32) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:String
* Description:N/A
== Parameters ==
* //shape//
* Type:[[ThinkGeo.Core.BaseShape|BaseShape]]
* Description:N/A
* //srid//
* Type:Int32
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Double,Double) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Int32
* Description:N/A
== Parameters ==
* //latitude//
* Type:Double
* Description:N/A
* //longitude//
* Type:Double
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Feature,String) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Int32
* Description:N/A
== Parameters ==
* //feature//
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
* //proj//
* Type:String
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(Feature,Int32) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Int32
* Description:N/A
== Parameters ==
* //feature//
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
* //srid//
* Type:Int32
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(BaseShape,String) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Int32
* Description:N/A
== Parameters ==
* //shape//
* Type:[[ThinkGeo.Core.BaseShape|BaseShape]]
* Description:N/A
* //proj//
* Type:String
* Description:N/A
** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetLocalUtmZoneNumber(BaseShape,Int32) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Int32
* Description:N/A
== Parameters ==
* //shape//
* Type:[[ThinkGeo.Core.BaseShape|BaseShape]]
* Description:N/A
* //srid//
* Type:Int32
* Description:N/A
===== Protected Methods =====
** {{wiki:ProtectedMethod.gif|}} OpenCore() **
* //N/A//
== 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 ==
** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(IEnumerable) **
* //N/A//
== Remarks ==
* //This method returns a projected vertex based on the coordinates passed in. You will need to override this method for the Projection class. Typically you can call the projection utility library that has interfaces for dozens of different types of projections.//
== Return Value ==
* Type:Collection<[[ThinkGeo.Core.Vertex|Vertex]]>
* Description:This method returns a projected vertices based on the coordinates passed in.
== Parameters ==
* //verticies//
* Type:IEnumerable<[[ThinkGeo.Core.Vertex|Vertex]]>
* Description:N/A
** {{wiki:ProtectedMethod.gif|}} ConvertToInternalProjectionCore(IEnumerable) **
* //N/A//
== Remarks ==
* //This method returns a de-projected vertex based on the coordinates passed in. You will need to override this method for the Projection class. Typically you can call the projection utility library that has interfaces for dozens of different types of projections. The de-projection is important because inside of the FeatureSource you will in many cases to to and from various projections.//
== Return Value ==
* Type:Collection<[[ThinkGeo.Core.Vertex|Vertex]]>
* Description:This method returns a de-projected vertices based on the coordinates passed in.
== Parameters ==
* //verticies//
* Type:IEnumerable<[[ThinkGeo.Core.Vertex|Vertex]]>
* Description:N/A
** {{wiki:ProtectedMethod.gif|}} ConvertToExternalProjectionCore(GeoImage,RectangleShape,RectangleShape,Int32,Int32) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.RasterProjectionResult|RasterProjectionResult]]
* Description:N/A
== Parameters ==
* //image//
* Type:[[ThinkGeo.Core.GeoImage|GeoImage]]
* Description:N/A
* //imageExtent//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
* //targetExtent//
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
* Description:N/A
* //width//
* Type:Int32
* Description:N/A
* //height//
* Type:Int32
* Description:N/A
** {{wiki:ProtectedMethod.gif|}} CloseCore() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Void
* Description:N/A
== Parameters ==
** {{wiki:ProtectedMethod.gif|}} UpdateToExternalProjection(Feature) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Void
* Description:N/A
== Parameters ==
* //feature//
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
** {{wiki:ProtectedMethod.gif|}} UpdateToInternalProjection(Feature) **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Void
* Description:N/A
== Parameters ==
* //feature//
* Type:[[ThinkGeo.Core.Feature|Feature]]
* Description:N/A
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Object
* Description:N/A
== Parameters ==
** {{wiki:ProtectedMethod.gif|}} Finalize() **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Void
* Description:N/A
== Parameters ==
==== Public Properties ====
** {{wiki:PublicProperty.gif|}} DecimalDegreeBoundary **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.RectangleShape|RectangleShape]]
** {{wiki:PublicProperty.gif|}} InternalProjection **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.Projection|Projection]]
** {{wiki:PublicProperty.gif|}} ExternalProjection **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:[[ThinkGeo.Core.Projection|Projection]]
** {{wiki:PublicProperty.gif|}} IsOpen **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Boolean
** {{wiki:PublicProperty.gif|}} CanConvertRasterToExternalProjection **
* //N/A//
== Remarks ==
* //N/A//
== Return Value ==
* Type:Boolean
==== Protected Properties ====
==== Public Events ====