Function CoordSysFromGML(value As String) As ICoordSys
function CoordSysFromGML(const value: WideString): ICoordSys;
The CoordSysFromGML method retrieves the ICoordSys object that is described in the specified GML file. The method takes a single argument, which gives a string that provides the path to the file containing the GML definition for the coordinate reference system. The ICoordSys object that corresponds to the coordinate reference system defined in the GML file is returned by this method.
Sub DataSource_CoordSysFromGML(data As DataSource, gmlPath As String)
On Error GoTo GMLError
Dim cs As ICoordSys
Set cs = data.CoordSysFromGML(gmlPath)
Exit Sub
GMLError:
MsgBox (err.Description)
End Sub
procedure DataSource_CoordSysFromGML(data : DataSource; gmlPath : WideString);
var
cs : ICoordSys;
begin
try
cs := data.CoordSysFromGML(gmlPath);
except
on e : EOleException do ShowMessage(e.Message);
end;
end;