Projects, unprojects, or reprojects a geometric object using the properties of the CoordSys object.
Set variable = object.Project ( pShape ) |
- pShape
- Required. A variable declared as a Geometric object.
Use the LookupConstant method to lookup the conversion factor (to meters) of unit codes returned by the GeographicUnit and ProjectionUnit properties. For example:
Set CS = Application.Map.CoordinateSystem
MsgBox CS.LookupConstant(CS.ProjectionUnit) & " " & CS.LookupCode(CS.ProjectionUnit) & " = 1 meter"
Set CS = Application.Map.CoordinateSystem
MsgBox CS.LookupConstant(CS.ProjectionUnit) & " " & CS.LookupCode(CS.ProjectionUnit) & " = 1 meter"