Knowledge Base Article
KB10321 - How to convert coordinates received from GPS to the Mercator to the projection
The content of this KB is obsolete and can contain inaccurate information
This item is obsolete and relates only to the DK 8.x and IS 8.x versions. Refer to KB10820.
GPS coordinates are usual latitude/longitude in WGS84.
With VB:
Set prj_list = New XGIS_ProjectionList
Set prj = prj_list.FindEx("MER”) 'mercator
Set result = obj_src.Project( my_coordinates )
With VB.NET:
prj_list = New TatukGIS_DK.XGIS_ProjectionList
prj = prj_list.FindEx("MER”) 'mercator
result = prj.Project( my_coordinates )
With Delphi:
prj := ProjectionList.Find(‘MER’) ; // Mercator
result := prj.Project(my_coordinates )
The procedure is this same to reproject – on-the-fly – any vector data layer from its existing coordinate system to a different coordinate system for presentation in the viewer. But, whereas the reprojection of GPS points to a projected coordinate system for presentation is a standard operation, the on-the-fly reprojection of entire layers between coordinate systems will consume computational resources, casing an application to run slower than if all project layers are already converted to the same coordinate system.
Refer to the DK Projection sample (or the Internet Server GPS tracking samples if using the IS product for a web server GPS tracking application) for more guidance.
Created: 2005-09-14, Modified: 2011-02-28
|