CoordSysFromGML Method

[VB6]

Function CoordSysFromGML(value As String) As ICoordSys

[Delphi 7]

function CoordSysFromGML(const value: WideString): ICoordSys;

 

Description

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.

 

Example

[VB6]

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

 

[Delphi 7]

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;