CoordSysFromGML Method

WRAPPER_API CoordSys *CoordSysFromGML(const BmgChar *string, const BmgChar *schemaLocation = 0)

 

Description

The CoordSysFromGML method retrieves the CoordSys object that is described in the specified GML file.  The first argument to this method is a string that provides the path to the file containing the GML definition for the coordinate reference system.  The second argument is optional, and it specifies the path to the schema file for the GML data.  The CoordSys object that corresponds to the coordinate reference system defined in the GML file is returned by this method.  It is the user's responsibility to free the memory associated with the returned CoordSys.

 

Example

void DataSource_CoordSysFromGML(GEOCALCPBW_NAMESPACE::DataSource & data, const BmgChar * GMLFile)

{

GEOCALCPBW_NAMESPACE::CoordSys * cs = NULL;

if(data.get_IsLoaded())

{

cs = data.CoordSysFromGML(GMLFile);

}

}