User Tools

Site Tools


thinkgeo.mapsuite.silverlightcore.projnetprojection

ThinkGeo.MapSuite.SilverlightCore.ProjNetProjection

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This projection class uses the Proj4 engine to project data from one Srid to another.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.SilverlightCore.Projection
      • ThinkGeo.MapSuite.SilverlightCore.ProjNetProjection

Members Summary

Public Constructors

ProjNetProjection()

  • 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

ProjNetProjection(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
  • internalProjectionParametersString
    • Type:String
    • Description:This parameter is the projection parameters describing the data.
  • externalProjectionParametersString
    • Type:String
    • Description:This parameter is the projection parameters describing the projection you want to go to.

ProjNetProjection(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
  • internalEpsgSrid
    • Type:Int32
    • Description:This parameter is the projection srid parameter describing the data.
  • externalEpsgSrid
    • Type:Int32
    • Description:This parameter is the projection srid parameter describing the projection you want to go to.

Protected Constructors

Public Methods

Dispose()

  • This is the dispose method for the class.
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

Open()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

Close()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

ConvertToExternalProjection(Double,Double)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • x
    • Type:Double
    • Description:N/A
  • y
    • Type:Double
    • Description:N/A

ConvertToExternalProjection(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

ConvertToExternalProjection(Feature)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • feature

ConvertToExternalProjection(RectangleShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

ConvertToInternalProjection(Double,Double)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • x
    • Type:Double
    • Description:N/A
  • y
    • Type:Double
    • Description:N/A

ConvertToInternalProjection(BaseShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

ConvertToInternalProjection(Feature)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • feature

ConvertToInternalProjection(RectangleShape)

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetInternalGeographyUnit()

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetExternalGeographyUnit()

  • N/A
Remarks
  • N/A
Return Value
Parameters

ToString()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

ConvertToExternalProjectionCore(Double[],Double[])

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • x
    • Type:Double[]
    • Description:N/A
  • y
    • Type:Double[]
    • Description:N/A

ConvertToInternalProjectionCore(Double[],Double[])

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • x
    • Type:Double[]
    • Description:N/A
  • y
    • Type:Double[]
    • Description:N/A

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

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

0RM=(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • feature

0hM=(Feature)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • feature

GetInternalGeographyUnitCore()

  • N/A
Remarks
  • N/A
Return Value
Parameters

GetExternalGeographyUnitCore()

  • N/A
Remarks
  • N/A
Return Value
Parameters

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

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”.

Remarks

N/A

Return Value
  • Type:String

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”.

Remarks

N/A

Return Value
  • Type:String

IsOpen

N/A

Remarks

N/A

Return Value
  • Type:Boolean

Protected Properties

CanReproject

N/A

Remarks

N/A

Return Value
  • Type:Boolean

Public Events

thinkgeo.mapsuite.silverlightcore.projnetprojection.txt · Last modified: 2017/03/16 21:59 (external edit)