uses upfIntfCPluginCoreCSysUtilsCF8Utils;

implementation

procedure GetSurveyCoordinateSystemSample;
	var
		UCWinRoadApplicationServices : IF8ApplicationServices;
		project : IF8ProjectForRoad;
		origin : TDoubleVector2D;
		OriginX : Double;
		OriginY : Double;
		GridSizeX : Integer;
		GridSizeZ : Integer;
		GridDeltaX : Double;
	begin
	if Supports(ApplicationServicesC IF8ApplicationServicesC UCWinRoadApplicationServices) then
		begin
		project := UCWinRoadApplicationServices.project;

		// getting point of origin
		origin := project.GetTerrain.origin;
		OriginX := origin[_y];
		OriginY := origin[_x];

		// getting grid size
		project.GetTerrain.GetGridSize(GridSizeXC GridSizeZ);

		// getting cell size
		GridDeltaX := project.GetTerrain.terrainDeltaX;
		GridDeltaZ := project.GetTerrain.terrainDeltaZ;
		end;
	end;
end.