ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
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.
This conctructor pass nothing. After this cconstructor , you should set the InternalProjectionParametersString property and ExternalProjectionParametersString property before open to use.
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.
UnmanagedProj4Projection(Int32,Int32)
This is a constructor for the class.
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.
UnmanagedProj4Projection(String,Int32)
N/A
N/A
UnmanagedProj4Projection(Int32,String)
N/A
N/A
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.
N/A
N/A
N/A
ConvertToExternalProjection(GeoImage,RectangleShape,RectangleShape)
N/A
N/A
N/A
N/A
N/A
ConvertToExternalProjection(BaseShape)
N/A
N/A
N/A
N/A
ConvertToExternalProjection(IEnumerable<Vertex>)
N/A
N/A
N/A
ConvertToInternalProjection(BaseShape)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
GetEpsgParametersString(Int32)
This method is a static API to get a projection text from EPSG(European Petroleum Survey Group).
More information about it can reference to EPSG.rtf in the documentation.
GetEsriParametersString(Int32)
This method is a static API to get a projection text from ERSI.
More information about it can reference to ERSI.rtf in the documentation.
GetGoogleMapParametersString()
This method is a static API to get a projection used by GoogleMap.
N/A
This method is a static API to get a projection text from World projections.
More information about it can reference to EPSG.rtf in the documentation.
N/A
N/A
N/A
GetLocalUtmZoneParametersString(Feature,String)
N/A
N/A
GetLocalUtmZoneParametersString(Feature,Int32)
N/A
N/A
GetLocalUtmZoneParametersString(BaseShape,String)
N/A
N/A
GetLocalUtmZoneParametersString(BaseShape,Int32)
N/A
N/A
GetLocalUtmZoneNumber(Double,Double)
N/A
N/A
GetLocalUtmZoneNumber(Feature,String)
N/A
N/A
GetLocalUtmZoneNumber(Feature,Int32)
N/A
N/A
GetLocalUtmZoneNumber(BaseShape,String)
N/A
N/A
GetLocalUtmZoneNumber(BaseShape,Int32)
N/A
N/A
GetGeographyUnitFromPrj(String)
N/A
N/A
N/A
This method is a static API to get a Prj string by Epsg number
N/A
N/A
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.
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.
ConvertToExternalProjectionCore(Double[],Double[])
This method returns a projected vertex based on the coordinates passed in.
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.
ConvertToInternalProjectionCore(Double[],Double[])
This method returns a de-projected vertex based on the coordinates passed in.
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.
ConvertToExternalProjectionCore(GeoImage,RectangleShape)
N/A
N/A
ConvertToExternalProjectionCore(GeoImage,RectangleShape,RectangleShape)
N/A
N/A
This is the dispose method for the class.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
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.
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”.
N/A
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”.
N/A
N/A
N/A
N/A